eta.transducers.base.AnswerTransducer
- class AnswerTransducer[source]
Bases:
Transducer
Maps a conversation history and relevant knowledge to an answer utterance.
- Parameters:
conversation_log (list[DialogueTurn]) – The conversation history to use as context for the answer.
facts_bg (list[Eventuality]) – A list of “background” knowledge to use for the answer, i.e., knowledge that may impact the resulting answer, but may not be directly included in the answer.
facts_fg (list[Eventuality]) – A list of “foreground” knowledge to use for the answer, i.e., knowledge that should be directly included in the answer.
- Returns:
A list of answers.
- Return type:
Methods
Report cumulative costs of applying this transducer.
- cost()
Report cumulative costs of applying this transducer.