formality: Document Formality Annotator

formalityR Documentation

Document Formality Annotator

Description

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

Usage

QDAP_Formality_Annotator()

Value

A Annotator object giving the generated document formality annotator.

Examples

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)

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

Related to formality in NLPutils...