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
Parameters
Name Type Default Info field strField. regex_pattern_1 strRegex pattern. regex_pattern_2 strOther regex pattern. window_size intWindow size. window_unit {"CHARACTERS", "WORDS"}Window unit. match_direction {"left", "right", "left or right"}Match direction. case_sensitive boolFalseCase sensitive or not. tokenize boolTrueTokenize or not. regex boolTrueIf True, patterns are treated as regex.