tagSentence: tagSentence

Description Usage Arguments Details Author(s) See Also

Description

tagSentence POS tags a sentence and returns tags and word/tag pairs

Usage

1
tagSentence(sentence, sentAnnotator, wordAnnotator, posAnnotator)

Arguments

sentence

Vector of text comprising a sentence

sentAnnotator

- the openNLP sentence annotator

wordAnnotator

- the openNLP word annotator

posAnnotator

- the openNLP POS annotator

Details

This function takes as its parameters, a sentence to be tagged, as well as the sentence, word and pos tag annotators from the openNLP package and returns the POS tags and word/tag pairs.

Author(s)

John James, j2sdatalab@gmail.com

See Also

Other POS Tagging Functions: tagChunk, tagDocument


j2scode/predictifyR documentation built on May 14, 2019, 10:34 a.m.