negation_tagger: Tag for Negation

Description Usage Arguments Value

View source: R/negex.R

Description

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

Usage

1
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.


CEDARS documentation built on Feb. 7, 2021, 5:06 p.m.