diversity {NLPutils} | R Documentation |
Document Diversity Annotator
Description
Generate an annotator which computes document diversity annotations
for English documents using diversity()
from package
qdap.
Usage
QDAP_Diversity_Annotator()
Value
A Annotator
object giving the generated document
diversity annotator.
Examples
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)
[Package NLPutils version 0.0-5.1 Index]