negex_token_tagger: Compute Token Series

View source: R/negex.R

negex_token_taggerR Documentation

Compute Token Series

Description

Computes negated token series as a function of index, i.e. position of negation item.

Usage

negex_token_tagger(index, work_df, negex_depth)

Arguments

index

Position of negation item.

work_df

Working dataframe of NLP annotations.

negex_depth

Maximum distance from index to which negation will spread.

Value

Series of token positions within the working dataframe.


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