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.
parse_xml_annotations_structured(xml_snippet)
Named list with nested structure containing left/match/right for 'atokens', 'lemma', 'pos', and 'morph'
XML string containing annotation data