You've already forked DataMate
- Updated `update_file_tags` to support both simplified and full tag formats. - Introduced `TagFormatConverter` to handle conversion from simplified external tags to internal storage format. - Added logic to fetch and utilize the appropriate annotation template for conversion. - Improved error handling for missing templates and unknown controls during tag updates. - Created example script demonstrating the usage of the new tag format conversion feature. - Added unit tests for `TagFormatConverter` to ensure correct functionality and edge case handling.
12 lines
297 B
Python
12 lines
297 B
Python
"""
|
|
Annotation Module Utilities
|
|
"""
|
|
from .config_validator import LabelStudioConfigValidator
|
|
from .tag_converter import TagFormatConverter, create_converter_from_template_config
|
|
|
|
__all__ = [
|
|
'LabelStudioConfigValidator',
|
|
'TagFormatConverter',
|
|
'create_converter_from_template_config'
|
|
]
|