diversity: Document Diversity Annotator

diversityR 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)

NLPutils documentation built on May 31, 2023, 8:54 p.m.

Related to diversity in NLPutils...