proustr (version 0.2.1)

pr_stem_sentences: 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

Run this code
# NOT RUN {
a <- proustr::laprisonniere[1:10,]
pr_stem_sentences(a, text)

# }

Run the code above in your browser using DataLab