pr_stem_words: Stem a dataframe containing a column with words

Description Usage Arguments Value Examples

View source: R/pr_stem.R

Description

Implementation of the SnowballC stemmer. Note that punctuation and capitals letters are also removed.

Usage

1
pr_stem_words(df, col, language = "french")

Arguments

df

the data.frame containing the sentences

col

the column with the sentences

language

the language of the words Defaut is french. See SnowballC::getStemLanguages() function for a list of supported languages.

Value

a tibble

Examples

1
2
a <- data.frame(words = c("matin", "heure", "fatigu<c3><a9>","sonn<c3><a9>","lois", "tests","fusionner"))
pr_stem_words(a, words)

proustr documentation built on May 2, 2019, 5:08 a.m.