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 <- annotations(doc)[[1L]]

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

NLPutils documentation built on May 29, 2017, 2:54 p.m.

Related to polarity in NLPutils...