stem: Word Stem Annotator

Description Usage Arguments Value Examples

Description

Generate an annotator which computes word stem annotations using wordStem() from package SnowballC.

Usage

1

Arguments

language

a character string giving the document language. See the documentation for wordStem() for more information.

Value

A Annotator object giving the generated word stem annotator.

Examples

1
2
3
4
5
6
7
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)

NLPutils documentation built on May 2, 2019, 9:39 a.m.

Related to stem in NLPutils...