Learn R Programming

NLPutils (version 0.0-5.1)

diversity: Document Diversity Annotator

Description

Generate an annotator which computes document diversity annotations for English documents using diversity() from package qdap.

Usage

QDAP_Diversity_Annotator()

Arguments

Value

A Annotator object giving the generated document diversity annotator.

Examples

Run this code
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)

Run the code above in your browser using DataLab