Skip to main content
Version: 25.3

templates.KeywordContextTemplateSchema

class templates.KeywordContextTemplateSchema(*args, **kwargs)

Keyword Context template

Label data points if a pattern appears within the specified proximity of the other pattern in a specific data field.

Parameters

NameTypeDefaultInfo
fieldstrField.
regex_pattern_1strRegex pattern.
regex_pattern_2strOther regex pattern.
window_sizeintWindow size.
window_unit{"CHARACTERS", "WORDS"}Window unit.
match_direction{"left", "right", "left or right"}Match direction.
case_sensitiveboolFalseCase sensitive or not.
tokenizeboolTrueTokenize or not.
regexboolTrueIf True, patterns are treated as regex.