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 May 2, 2019, 9:39 a.m.

Related to polarity in NLPutils...