polarity: Sentence Polarity Annotator

Description Usage Value Examples

Description

Generate an annotator which computes sentence polarity annotations for English documents using polarity() from package qdap.

Usage

1

Value

A Annotator object giving the generated sentence polarity annotator.

Examples

1
2
3
4
5
6
7
require("NLP")
doc <- readRDS(system.file("texts", "stanford.rds", package = "NLP"))
s <- content(doc)
a <- annotation(doc)

polarity_annotator <- QDAP_Polarity_Annotator()
polarity_annotator(s, a)

NLPutils documentation built on Oct. 18, 2018, 5:05 p.m.