stem {NLPutils} | R Documentation |
Word Stem Annotator
Description
Generate an annotator which computes word stem annotations using
wordStem()
from package SnowballC.
Usage
Snowball_Stem_Annotator(language = "porter")
Arguments
language |
a character string giving the document language.
See the documentation for |
Value
A Annotator
object giving the generated word stem
annotator.
Examples
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)
[Package NLPutils version 0.0-5.1 Index]