parse_xml_annotations_structured: Parse XML annotations into linguistic layers with...

View source: R/KorAPQuery.R

parse_xml_annotations_structuredR Documentation

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)

Arguments

xml_snippet

XML string containing annotation data

Value

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


RKorAPClient documentation built on Sept. 9, 2026, 5:11 p.m.