stem | R Documentation |
Stem words
stem(corpus, language = "english") ## S3 method for class 'list' stem(corpus, language = "english") ## S3 method for class 'character' stem(corpus, language = "english") ## S3 method for class 'VCorpus' stem(corpus, language = "english") ## Default S3 method: stem(corpus, language = "english")
corpus |
a compatible object storing documents (actually, list (and
corpus-list of (tokened) documents,
character vectors and |
language |
(chr) language to pass to package Snowballc to perform the stemming, default is 'english'. |
an object of the same class of input with documents written with all words stemmed. Names of stemmed tokens are the original un-stemed ones
sample_corpus <- list( c('this is', 'is a', 'a beautiful', 'beautiful day'), c('hello word') )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.