tagChunk: tagChunk

Description Usage Arguments Details Value Author(s) See Also

View source: R/U08.tagChunk.R

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


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