annotate_text: annotate digital text

View source: R/annotate_text.R

annotate_textR Documentation

annotate digital text

Description

takes a character vector and runs grammar error correction on it requires 'gec_env' to be used, spacy to be instantiated, and sentence.py to have been sourced

Usage

annotate_text(digital_text)

Arguments

digital_text

character vector

Value

a tibble of sentences with columns: 'doc_id', 'original', 'correction_diff_standard' (standard [–] & ++ notation), 'changes' (html 'ins' and 'del' tags)

Examples

#annotate_text("Ma, does ye have any potatos?")

antdurrant/gec.annotation documentation built on July 19, 2023, 5:13 a.m.