negation_tagger: Tag for Negation

View source: R/negex.R

negation_taggerR Documentation

Tag for Negation

Description

Processes and NLP annotation dataframe and tags negated words based on distance from negation item.

Usage

negation_tagger(annotated_text, negex_depth)

Arguments

annotated_text

Dataframe of NLP annotations.

negex_depth

Maximum distance between word to label and negation term, before or after. Default is 6, as per original paper by Chapman et al.

Value

Dataframe with added negation information.


simon-hans/CEDARS documentation built on Feb. 14, 2024, 3:16 a.m.