Defines objects to create and manipulate raw annotations.
Bases: traits.has_traits.HasStrictTraits
Translate from general annotations files and arrays to pyAnno’s format.
This class exposes a few methods to import data from files and arrays, and converts them to pyAnno’s format:
The converted data can be accessed through the annotations property.
The AnnotationsContainer is also used as the format to store annotations in PyannoDatabase objects.
Create an annotations object from an array or list-of-lists.
Parameters: |
|
---|
Load annotations from a file.
The file is a text file with a columns separated by spaces and/or commas, and rows on different lines.
Parameters: |
|
---|
Save raw annotations to file.
Parameters: |
|
---|
annotations in pyAnno format
list of all labels found in file/array
labels corresponding to a missing value
name of file or array from which the annotations were imported
number of annotators
number of classes found in the annotations
number of annotations
raw annotations, as they are imported from file or array
Load annotations from file.
The file is a text file with a columns separated by spaces and/or commas, and rows on different lines.
Parameters: |
|
---|