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 str
Field. regex_pattern_1 str
Regex pattern. regex_pattern_2 str
Other regex pattern. window_size int
Window size. window_unit {"CHARACTERS", "WORDS"}
Window unit. match_direction {"left", "right", "left or right"}
Match direction. case_sensitive bool
False
Case sensitive or not. tokenize bool
True
Tokenize or not. regex bool
True
If True, patterns are treated as regex.