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