dialoguekit.nlu.dialogue_acts_extractor¶
Interface to extract dialogue acts from an utterance.
Classes¶
Initializes the dialogue acts extractor. |
Module Contents¶
- class dialoguekit.nlu.dialogue_acts_extractor.DialogueActsExtractor¶
Bases:
abc.ABC
Initializes the dialogue acts extractor.
- abstract extract_dialogue_acts(utterance: dialoguekit.core.utterance.Utterance) List[dialoguekit.core.dialogue_act.DialogueAct] ¶
Extracts dialogue acts from an utterance.
- Parameters:
utterance – Utterance.
- Raises:
NotImplementedError – If the method is not implemented in a subclass.
- Returns:
List of dialogue acts.
- abstract save(path: str) None ¶
Saves the dialogue act extractor to a given path.
- Parameters:
path – Path to save the dialogue act extractor.
- Raises:
NotImplementedError – If the method is not implemented in a subclass.
- classmethod load(path: str) DialogueActsExtractor ¶
- Abstractmethod:
Loads the dialogue act extractor from a path.
- Parameters:
path – Path to the dialogue act extractor.
- Raises:
NotImplementedError – If the method is not implemented in a subclass.