mmif.vocabulary package¶
Package contains Enum-like classes for CLAMS vocabulary.
- class mmif.vocabulary.ThingType(type_uri: str)[source]¶
Bases:
TypesBaseThis class contains the topmost CLAMS thing type defined in the spec version 1.1.0 as a class variable.
- Thing = http://mmif.clams.ai/vocabulary/Thing/v1¶
- class mmif.vocabulary.ClamsTypesBase(type_uri, fuzzymode=True)[source]¶
Bases:
TypesBaseBase class for CLAMS vocabulary types. Main This class adds handling of MMIF specification versions in initializer and comparators.
- class mmif.vocabulary.AnnotationTypesBase(type_uri, fuzzymode=True)[source]¶
Bases:
ClamsTypesBaseInherit from this class to build your own custom annotation vocabularies.
- class mmif.vocabulary.DocumentTypesBase(type_uri, fuzzymode=True)[source]¶
Bases:
ClamsTypesBaseInherit from this class to build your own custom document vocabularies.
- class mmif.vocabulary.AnnotationTypes(type_uri, fuzzymode=True)[source]¶
Bases:
AnnotationTypesBaseThis class contains the CLAMS annotation types defined in the spec version 1.1.0 as class variables.
- Alignment = http://mmif.clams.ai/vocabulary/Alignment/v1¶
- Annotation = http://mmif.clams.ai/vocabulary/Annotation/v6¶
- BoundingBox = http://mmif.clams.ai/vocabulary/BoundingBox/v5¶
- Chapter = http://mmif.clams.ai/vocabulary/Chapter/v6¶
- Interval = http://mmif.clams.ai/vocabulary/Interval/v5¶
- NamedEntity = http://mmif.clams.ai/vocabulary/NamedEntity/v1¶
- NounChunk = http://mmif.clams.ai/vocabulary/NounChunk/v1¶
- Paragraph = http://mmif.clams.ai/vocabulary/Paragraph/v1¶
- Polygon = http://mmif.clams.ai/vocabulary/Polygon/v5¶
- Region = http://mmif.clams.ai/vocabulary/Region/v5¶
- Relation = http://mmif.clams.ai/vocabulary/Relation/v5¶
- Sentence = http://mmif.clams.ai/vocabulary/Sentence/v1¶
- Span = http://mmif.clams.ai/vocabulary/Span/v5¶
- TimeFrame = http://mmif.clams.ai/vocabulary/TimeFrame/v6¶
- TimePoint = http://mmif.clams.ai/vocabulary/TimePoint/v5¶
- Token = http://mmif.clams.ai/vocabulary/Token/v1¶
- VerbChunk = http://mmif.clams.ai/vocabulary/VerbChunk/v1¶
- VideoObject = http://mmif.clams.ai/vocabulary/VideoObject/v5¶
- class mmif.vocabulary.DocumentTypes(type_uri, fuzzymode=True)[source]¶
Bases:
DocumentTypesBaseThis class contains the CLAMS document types defined in the spec version 1.1.0 as class variables.
- AudioDocument = http://mmif.clams.ai/vocabulary/AudioDocument/v1¶
- Document = http://mmif.clams.ai/vocabulary/Document/v1¶
- ImageDocument = http://mmif.clams.ai/vocabulary/ImageDocument/v1¶
- TextDocument = http://mmif.clams.ai/vocabulary/TextDocument/v1¶
- VideoDocument = http://mmif.clams.ai/vocabulary/VideoDocument/v1¶