polarity: Sentence Polarity Annotator

polarityR Documentation

Sentence Polarity Annotator

Description

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

Usage

QDAP_Polarity_Annotator()

Value

A Annotator object giving the generated sentence polarity annotator.

Examples

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 31, 2023, 8:54 p.m.

Related to polarity in NLPutils...