Python Finite Automata library

What would be the most complete finite automata library for Python, which is able to do the basic manipulations such as:

  • Minimization,
  • Determinization of Nondeterministic Finite automata
  • Union, Intersection, and Product of the languages generated by these automata, etc.
  • All the libraries that I'm finding are either incomplete or do not work plug-and-play-wise.


    python-automata seems to be able to do all the things you're asking.

  • What is it missing?
  • Perhaps you'd want to contribute a missing feature yourself?

  • If you don't mind using a underlying C++ library you could try OpenFst with these Python bindings. PyFsa has the optimization algoritms you listed.

    链接地址: http://www.djcxy.com/p/54738.html

    上一篇: 发送文本到笔记

    下一篇: Python有限自动机库