powered by
Generate an annotator which computes sentence polarity annotations for English documents using polarity() from package qdap.
polarity()
QDAP_Polarity_Annotator()
A Annotator object giving the generated sentence polarity annotator.
Annotator
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)
Run the code above in your browser using DataLab