pr_stem_sentences {proustr} | R Documentation |
Stem a dataframe containing a column with sentences
Description
Implementation of the SnowballC stemmer. Note that punctuation and capital letters are removed when processing.
Usage
pr_stem_sentences(df, col, language = "french")
Arguments
df |
the data.frame containing the text |
col |
the column with the text |
language |
the language of the text. Defaut is french. See SnowballC::getStemLanguages() function for a list of supported languages. |
Value
a tibble
Examples
a <- proustr::laprisonniere[1:10,]
pr_stem_sentences(a, text)
[Package proustr version 0.4.0 Index]