templates.UtteranceContextTemplateSchema
- class templates.UtteranceContextTemplateSchema(*args, **kwargs)
Utterance Context template
LF Template specific to conversational use-case. Looks for keywords/regex pattern in specified number of previous or next utterances.
Parameters
Parameters
Name Type Default Info operator {"BEFORE", "AFTER", "BEFORE OR AFTER"}Indicates whether to search before or after the current utterance. window int1How many utterances should we restrict the search window to. speakers {"any", "current", "other", or speakername}List of speakers whose utterances will be considered for matching. value strThe value we should be searching for. regex boolFalseIf this is True, value should be a RegEx Pattern. case_sensitive boolFalseCase sensitive or not. tokenize boolFalseOnly can be True if regex is False, we will search for an exact word match between value and span context and not match on substrings.