dialoguekit.nlu.annotator

Interface to annotate an utterance.

Classes

Annotator

Initializes the annotator.

Module Contents

class dialoguekit.nlu.annotator.Annotator

Bases: abc.ABC

Initializes the annotator.

abstract get_annotations(utterance: dialoguekit.core.utterance.Utterance) List[dialoguekit.core.annotation.Annotation]

Annotates an utterance.

Parameters:

utterance – Utterance.

Raises:

NotImplementedError – If the method is not implemented in a subclass.

Returns:

List of annotations.

abstract save_annotator(path: str) None

Saves the annotator to a given path.

Parameters:

path – Path to save the annotator.

Raises:

NotImplementedError – If the method is not implemented in a subclass.

classmethod load_annotator(path: str) Annotator
Abstractmethod:

Loads the annotator from a path.

Parameters:

path – Path to the annotator.

Raises:

NotImplementedError – If the method is not implemented in a subclass.

Returns:

Annotator.