Description Usage Arguments Value Examples
View source: R/part_of_speech.R
This function generates statistics about the proportions of following parts of speech in the given column: - verbs - prepositions - adjectives - nouns - articles - etc.
1 2 | get_part_of_speech(df_col,
model_path = "./data/english-ewt-ud-2.4-190531.udpipe")
|
df_col |
a list of values in data.frame column with textual data |
model_path |
a string containing the path to the pretrained POS model. if provided, the function will look at it there, otherwise, the default place is considered to be data/ folder. If the model doesn't exist, it will be downloaded. |
data.frame with one row containing columns verbs, prepositions, adjectives, nouns and articles.
1 2 | ex <- data.frame(text_col = c('Today is a beautiful Monday'))
get_part_of_speech(ex$text_col)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.