stem | R Documentation |
Generate an annotator which computes word stem annotations using
wordStem()
from package SnowballC.
Snowball_Stem_Annotator(language = "porter")
language |
a character string giving the document language.
See the documentation for |
A Annotator
object giving the generated word stem
annotator.
require("NLP")
doc <- readRDS(system.file("texts", "stanford.rds", package = "NLP"))
s <- content(doc)
a <- annotation(doc)
stem_annotator <- Snowball_Stem_Annotator()
stem_annotator(s, a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.