pattern_clustering.boost.make_pattern_automaton

make_pattern_automaton(w: str, map_name_dfa: dict, make_mg=None)[source]

Builds a PatternAutomaton C++ instance from a input string.

Parameters
  • w (str) – The string to convert.

  • map_name_dfa (dict) – Maps each pattern name (str) with its corresponding Automaton.

  • make_mg (MultiGrepFunctor) – The strategy used to build the PatternAutomaton, defaults to None.

Returns

The PatternAutomaton C++ instance.