eta.core.perception
The core process responsible for perceiving and interpreting inputs and adding them to memory.
Functions
Collect all observations from a given perceptual server source. |
|
Observe and interpret inputs from perceptual servers. |
|
Process non-speech observations by parsing them as eventualities. |
|
Process utterances by deriving gist clauses, semantics, pragmatics, and logging each turn. |
- perception_loop(ds)[source]
Observe and interpret inputs from perceptual servers.
The resulting observations are added to dialogue context, as well as to the
observations
andinferences
buffers.In the case where the observed input is speech, this also interprets the input as a gist clause, as well as deriving the underlying semantic and pragmatic meanings. The input is also interpreted as a reply to the previous turn in the conversation log, if any. The observed turn is then added to the conversation log.
- Parameters:
ds (DialogueState) –
- process_utterances(inputs, ds)[source]
Process utterances by deriving gist clauses, semantics, pragmatics, and logging each turn.
- Parameters:
inputs (list[str]) – A list of speech inputs to process as dialogue turns.
ds (DialogueState) –
- Returns:
All eventualities derived from the input utterances.
- Return type:
- process_observations(inputs)[source]
Process non-speech observations by parsing them as eventualities.