tagChunk: tagChunk

Description Usage Arguments Details Value Author(s) See Also

Description

tagChunk POS tags chunk of text and returns POS counts for the chunk

Usage

1
tagChunk(chunk, chunkNum, sentAnnotator, wordAnnotator, posAnnotator)

Arguments

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

Details

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.

Value

tags - 1 row data frame with frequencies for each feature

Author(s)

John James, j2sdatalab@gmail.com

See Also

Other POS Tagging Functions: tagDocument, tagSentence


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