dialoguekit.utils.annotation_converter¶
Annotation converter interface.
As the different modules used for NLU use different formats for training, file converters are needed.
Classes¶
| Annotation converter interface. | 
Module Contents¶
- class dialoguekit.utils.annotation_converter.AnnotationConverter(filepath: str, save_to_path: str | None = None)¶
- Bases: - abc.ABC- Annotation converter interface. - filepath¶
- String path to the original annotation file. 
 - save_to_path¶
- Optional String path to the destination directory. 
 - abstractmethod run() Dict[str, str]¶
- Runs the converter. - The conversion will run and save to ‘save_to_path’ directory. If the converter supports different file outputs, this method will run all the supported conversions. - Returns:
- Dictionary with filename and filepath pairs. 
- Raises:
- NotImplementedError –