Description Usage Arguments Details Value Author(s) See Also
tagChunk
POS tags chunk of text and returns POS counts for the chunk
1 | tagChunk(chunk, chunkNum, sentAnnotator, wordAnnotator, posAnnotator)
|
chunk |
- a chunk (list) of text to be tagged |
chunkNum |
- the chunk number |
sentAnnotator |
- the openNLP sentence annotator |
wordAnnotator |
- the openNLP word annotator |
posAnnotator |
- the openNLP POS annotator |
This function takes as its parameter, the a list of text to be tagged, the chunk number, the POS tags and the sentence, word, and POS annotators from the openNLP package and returns a one-row data frame containing frequences of POS tags for the chunk.
tags - 1 row data frame with frequencies for each feature
John James, j2sdatalab@gmail.com
Other POS Tagging Functions: tagDocument
,
tagSentence
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.