tagSentence: tagSentence

Description Usage Arguments Details Author(s) See Also

View source: R/U09.tagDocument.R

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


DataScienceSalon/predictifyR.3.0 documentation built on May 23, 2019, 8:25 p.m.