Skip to main content

pub.layers.alignment

Alignment records for parallel structure correspondence. Handles interlinear glossing (Leipzig glossing rules), parallel text alignment (translation), cross-tokenization mapping (word-to-morpheme), audio-text forced alignment, and any many-to-many correspondence between annotation elements or sequences.

Types

alignment

Type: Record

An alignment between two parallel sequences. The sequences can be tokenizations, annotation layers, expressions (for parallel text), or tiers. Links establish many-to-many correspondence between elements indexed by position.

FieldTypeDescription
expressionat-uriPrimary expression context (for within-document alignments).
kindUriat-uriAT-URI of the alignment kind definition node. Community-expandable via knowledge graph.
kindstringAlignment kind slug (fallback). Known values: tokenization-to-tokenization, interlinear, parallel-text, audio-to-text, layer-to-layer, error-to-correction, custom
subkindUriat-uriAT-URI of the alignment subkind definition node. Community-expandable via knowledge graph.
subkindstringAlignment subkind slug (fallback). Known values: word-to-morpheme, word-to-word, sentence-to-sentence, phrase-to-phrase, morpheme-to-gloss, forced-alignment, manual-alignment, custom
sourcerefReference to the source sequence. Ref: pub.layers.defs#objectRef
targetrefReference to the target sequence. Ref: pub.layers.defs#objectRef
sourceLangstringBCP-47 language tag for the source (for parallel text alignment).
targetLangstringBCP-47 language tag for the target.
linksarrayThe alignment links. Array of ref: pub.layers.defs#alignmentLink
metadatarefRef: pub.layers.defs#annotationMetadata
knowledgeRefsarrayKnowledge graph references. Array of ref: pub.layers.defs#knowledgeRef
featuresrefRef: pub.layers.defs#featureMap
createdAtdatetimeRecord creation timestamp.