pattern_clustering.boost.make_pattern_automata
- make_pattern_automata(lines: list, map_name_dfa: dict, make_mg: Optional[callable] = None) list [source]
Converts input lines to the
PatternAutomaton
C++ instances.- Parameters
lines (list) – A list gathering the input lines (
str
).map_name_dfa (dict) – Maps each pattern name (
str
) with its correspondingAutomaton
.make_mg – A
MultiGrepFunctor
instance.
- Returns
The corresponding list of pattern automata.