Representation of a transcription, the root in our framework.
Transcriptions in SPPAS are represented with:
- metadata: a list of tuple key/value;
- a name (used to identify the transcription);
- a list of tiers;
- a hierarchy between tiers;
- a list of media;
- a list of controlled vocabularies.
Inter-tier relations are managed by establishing alignment or association
links between 2 tiers:
- alignment: annotations of a tier A (child) have only localization
instances included in those of annotations of tier B (parent);
- association: annotations of a tier A have exactly localization
instances included in those of annotations of tier B.
Example
Example
>>> # Create an instance
>>> trs = sppasTranscription("trs name")
Example
>>> # Create a tier
>>> trs.create_tier("tier name")
Example
>>> # Get a tier of a transcription from its index:
>>> tier = trs[0]
Example
>>> # Get a tier of a transcription from its name
>>> tier = trs.find("tier name")
Example
>>> # Get a tier from its identifier
>>> tier = trs.get_object(guid)