nlu.annotation.item_constraint¶
The Dialogue Act Item defines the parameters for a Dialogue Act.
It comprises ot the parameters mentioned in the conversation.
Module Contents¶
Classes¶
- class nlu.annotation.item_constraint.ItemConstraint(slot: str, op: moviebot.nlu.annotation.operator.Operator, value: Any, annotation: moviebot.nlu.annotation.semantic_annotation.SemanticAnnotation | None = None)¶
- add_value(value: Any, annotation: moviebot.nlu.annotation.semantic_annotation.SemanticAnnotation | None = None) None¶
Adds value and annotation if any.
- Parameters:
value – Value to add.
annotation – Semantic annotation if adding value is due to annotation. Defaults to None.