Skip to main content

utilities

ModuleSource

Utilities used for managing the data of the annotation results.

Functions

Member
Description
get_data_itemGet an annotation item by its unique ID.
get_data_item_with_defaultGet an annotation item by its unique ID with a default value provided.
get_data_itemsGet one or several annotation items by exactly matching the comment.
get_data_items_by_regexGet one or several annotation items by matching the comment with a regular expression.
get_all_idsGet the list of all IDs in the annotation data. The returne IDs are ordered as the order of the items in data.
get_all_commentsGet the set of all comments in the annotation data. The returned comments are unordered.
compare_anno_marksCompare whether two annotation marks are equivalent or not.
sanitize_data_itemPerform the full sanitization on an annotation item.
sanitize_dataPerform the full sanitization on the annotation data.