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