Description Usage Arguments Details Author(s) See Also
View source: R/U09.tagDocument.R
tagSentence POS tags a sentence and returns tags and word/tag pairs
1  | tagSentence(sentence, sentAnnotator, wordAnnotator, posAnnotator)
 | 
sentence | 
 Vector of text comprising a sentence  | 
sentAnnotator | 
 - the openNLP sentence annotator  | 
wordAnnotator | 
 - the openNLP word annotator  | 
posAnnotator | 
 - the openNLP POS annotator  | 
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.
John James, j2sdatalab@gmail.com
Other POS Tagging Functions: tagChunk,
tagDocument
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.