stem: Word Stem Annotator

stemR 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 wordStem() for more information.

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)

NLPutils documentation built on May 31, 2023, 8:54 p.m.

Related to stem in NLPutils...