formality | R Documentation |
Generate an annotator which computes document formality annotations
for English documents using formality()
from package
qdap.
QDAP_Formality_Annotator()
A Annotator
object giving the generated document
formality annotator.
require("NLP")
doc <- readRDS(system.file("texts", "stanford.rds", package = "NLP"))
s <- content(doc)
a <- annotation(doc)
formality_annotator <- QDAP_Formality_Annotator()
formality_annotator(s, a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.