File: automaton_make_automaton.rst

package info (click to toggle)
python-pyahocorasick 1.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 748 kB
  • sloc: ansic: 4,554; python: 2,823; sh: 312; makefile: 242
file content (6 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
make_automaton()
----------------------------------------------------------------------

Finalize and create the Aho-Corasick automaton based on the keys already added
to the trie. This does not require additional memory. After successful creation
the ``Automaton.kind`` attribute is set to ``ahocorasick.AHOCORASICK``.