analyze_code_context {textAnnotatoR}R Documentation

Analyze context around code applications

Description

Examines the surrounding context where codes are applied by looking at preceding and following annotations to understand code relationships.

Usage

analyze_code_context(code_anns, all_anns)

Arguments

code_anns

Data frame containing annotations for specific code:

  • start: numeric, starting position

  • end: numeric, ending position

  • code: character, code identifier

all_anns

Data frame containing all annotations in the text

Value

List of contexts for each code instance:


[Package textAnnotatoR version 0.1.4 Index]