Analyzes how codes are sequenced in the text by examining transitions between consecutive codes and identifying repeated patterns.
analyze_sequences(annotations)List containing:
transitions: List of transitions between consecutive codes
patterns: List of identified repeated code sequences
Data frame of text annotations with columns:
start: numeric, starting position of annotation
end: numeric, ending position of annotation
code: character, code applied to the annotation