Learn R Programming

RKorAPClient (version 1.2.1)

parse_xml_annotations_structured: Parse XML annotations into linguistic layers with left/match/right structure

Description

Internal helper function to extract linguistic annotations (lemma, POS, morphology) from XML annotation snippets returned by the KorAP API, split into left context, match, and right context sections like the tokens field.

Usage

parse_xml_annotations_structured(xml_snippet)

Value

Named list with nested structure containing left/match/right for 'atokens', 'lemma', 'pos', and 'morph'

Arguments

xml_snippet

XML string containing annotation data