pattern_clustering.boost.make_pattern_automaton_python
- make_pattern_automaton_python(w: str, map_name_dfa: dict, make_mg: Optional[MultiGrepFunctor] = None)[source]
PatternAutomaton.__init__
wrapper.- Parameters
w (str) – The string to convert.
map_name_dfa (dict) – Maps each pattern name (
str
) with its correspondingAutomaton
.make_mg (MultiGrepFunctor) – The strategy used to build the PatternAutomaton. Defaults to
None
.
- Returns
The corresponding
PatternAutomaton
python instance.