Description Usage Value Examples
Generate an annotator which computes sentence polarity annotations for
English documents using polarity()
from package
qdap.
1 |
A Annotator
object giving the generated sentence
polarity annotator.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.