The AG format is an XML representation of annotation graph data model, and the official format for annotation graphs.
Load(format, filename,
id, sigInfo, options) returns a list of AGIds loaded |
format: | AG | ||||||||||||
filename: | name of the file to load | ||||||||||||
id: | optional, ignored | ||||||||||||
sigInfo: | optional, ignored | ||||||||||||
options: | optional
|
Store(format, filename,
id, options) returns an empty string |
format: | AG | |||||||||
filename: | name of the file to load | |||||||||
id: | AGId or AGSetId to be stored | |||||||||
options: | optional
|
Load(format, filename,
id, sigInfo, options) returns a list of AGIds loaded |
format: | ATLAS | ||||||||||||
filename: | name of the file to load | ||||||||||||
id: | optional AGSetId. If not given or an empty string is given, ATLAS is assumed. | ||||||||||||
sigInfo: | optional, ignored | ||||||||||||
options: | optional
|
Store(format, filename,
id, options) returns an empty string |
format: | ATLAS | |||||||||||||||||||||||||||
filename: | name of the file to load | |||||||||||||||||||||||||||
id: | AGId or AGSetId to be stored | |||||||||||||||||||||||||||
options: | optional
|
Store2(format, filename,
ids, options) returns an empty string |
format: | ATLAS |
filename: | name of the file to load |
ids: | A list of AGIds to be stored |
options: | See options of Store() |
Annotation graph model of ATLAS format The Atlas format extends annotation graph data model in various ways. Most of all, it generalizes the concept of anchor. Anchor is not just a time mark in Atlas. It is a point in a multi-dimensional space. Region revives in Atlas. It specifies a portion in a signal to be annotated. Region can be expressed in a very complex way, using anchors, annotations and even regions. By restricting the target signals to linear ones, it is still possible to model Atlas format as annotation graph. The restriction coded in ATLAS class is as follows:
Atlas also extends the content model of annotation of annotation graph, and this also needs to be restricted.
Atlas makes the hierarchy of annotations explicit be specifying the annotation's children. In annotation graph, such hierarchy is implicit and incomplete. To solve this problem, Atlas ag model introduces a special annotation feature, _AtlasAnnChil_. There are other special features, and they are summarized below.
|
Load(format, filename,
id, sigInfo, options) returns a list of AGIds loaded |
format: | BAS |
filename: | name of the file to load |
id: | AGId or AGSetId. If the object by the id doesn't exist, the loader will create one. |
sigInfo: | optional. See Load in AGAPI doc for the value. |
options: | optional, ignored |
Load(format, filename,
id, sigInfo, options) returns a list of AGIds loaded |
format: | BU | ||||||
filename: | Common prefix of annotation file set to load | ||||||
id: | AGId or AGSetId. If the object by the id doesn't exist, the loader will create one. | ||||||
sigInfo: | optional. See Load in AGAPI doc for the value. | ||||||
options: | optional,
|
The CAG format has been developed to reduce the size of annotation files while keeping the equivalence with the AG format. The CAG format could be an alternative of the AG format when the storage space matters.
This format can be stored over several files. Dictionary is a part of the format that contains anchors. Annotation is the part that contains annotations. The anchors in Dictionary are referenced by annotations in the Annotation part. An Annotation file should specify the Dictionary file to include in the header. The header is processed by the loader to include appropriate Dictionary files. The Annotation part also can be spread out by annotation types. For example, each type of annotations can be stored in a separate file. Those Annotation files can be included and referenced by other Annotation files.
Load(format, filename,
id, sigInfo, options) returns a list of AGIds loaded |
format: | CAG | ||||||
filename: | name of the file to load | ||||||
id: | optional, ignored | ||||||
sigInfo: | optional, ignored | ||||||
options: | optional
|
Store(format, filename,
id, options) returns an empty string |
format: | CAG | ||||||||||||||||||||||||||||||||||||||
filename: | output filename. Used only when the both dictionary and annotation options are not set. | ||||||||||||||||||||||||||||||||||||||
id: | AGId or AGSetId to be stored | ||||||||||||||||||||||||||||||||||||||
options: | optional
The following combination of options are possible:
|
Store2(format, filename,
ids, options) returns an empty string |
Same as Store(), except that Store2 accepts list of AGIds for ids.
Load(format, filename,
id, sigInfo, options) returns a list of AGIds loaded |
format: | LCF |
filename: | name of the file to load |
id: | AGId or AGSetId. If the object by the id doesn't exist, the loader will create one. |
sigInfo: | optional. See Load in AGAPI doc for the value. |
options: | optional, ignored |
Store(format, filename,
id, options) returns an empty string |
format: | LCF |
filename: | output filename |
id: | AGId or AGSetId to be stored |
options: | optional, ignored |
Store2(format, filename,
ids, options) returns an empty string |
Same as Store(), except that Store2 accepts list of AGIds for ids.
Load(format, filename,
id, sigInfo, options) returns a list of AGIds loaded |
format: | SwitchBoard |
filename: | name of the file to load |
id: | AGId or AGSetId. If the object by the id doesn't exist, the loader will create one. |
sigInfo: | optional. See Load in AGAPI doc for the value. |
options: | optional, ignored |
The TF format is composed of records. Each record is composed of fields that are seperated by a delimiter. The first field is assumed to be the start time, and the second field, end time. The rest are features for the annotation that are identified by the start/end time. TF loader/writer can be used for TDF and CSV formats.
Load(format, filename,
id, sigInfo, options) returns a list of AGIds loaded |
format: | TF | ||||||||||||
filename: | name of the file to load | ||||||||||||
id: | AGId or AGSetId. If the object by the id doesn't exist, the loader will create one. | ||||||||||||
sigInfo: | optional. See Load in AGAPI doc for the value. | ||||||||||||
options: | Required
|
Store(format, filename,
id, options) returns an empty string |
format: | TF | |||||||||
filename: | output filename | |||||||||
id: | AGId or AGSetId to be stored | |||||||||
options: | Required
|
Store2(format, filename,
ids, options) returns an empty string |
Same as Store(), except that Store2 accepts list of AGIds for ids.
Load(format, filename,
id, sigInfo, options) returns a list of AGIds loaded |
format: | TIMIT |
filename: | The common prefix of annotation file set to load. |
id: | AGId or AGSetId. If the object by the id doesn't exist, the loader will create one. |
sigInfo: | optional. See Load in AGAPI doc for the value. |
options: | optional, ignored |
Load(format, filename,
id, sigInfo, options) returns a list of AGIds loaded |
format: | TreeBank | ||||||
filename: |
(1) The file name to load. (2) Treebank string, if input type option is used. | ||||||
id: | AGId or
AGSetId. If the object by the id doesn't exist, the loader will create
one. | ||||||
sigInfo: | optional. See Load in AGAPI doc for the value. | ||||||
options: | optional,
|
Store(format, filename,
id, options) returns an empty string |
format: | TreeBank |
filename: | output filename |
id: | AGId or AGSetId to be stored |
options: | optional, ignored |
Store2(format, filename,
ids, options) returns an empty string |
Same as Store(), except that Store2 accepts list of AGIds for ids.
Load(format, filename,
id, sigInfo, options) returns a list of AGIds loaded |
format: | XLabel |
filename: | The common prefix of annotation file set to load. |
id: | AGId or AGSetId. If the object by the id doesn't exist, the loader will create one. |
sigInfo: | optional. See Load in AGAPI doc for the value. |
options: | optional, ignored |