Pynini: Finite-state grammar development in Python


Red led Version 2.1.4 is now available for download.

Radioactive Pynini is now available on conda-forge. Linux (x86) and MacOS users who already have Conda can install Pynini and all dependencies using the following command: conda install -c conda-forge pynini

Megaphone Linux (x86) users can now install precompiled manylinux wheels for Pynini directly from PyPI. Unlike the conda-forge installation method mentioned above, this does not install OpenFst command-line tools, does not install the Graphviz command-line tools Jupyter uses to generate state diagrams, and does not yet work on MacOS. To install a Pynini wheel use the following command: pip install --only-binary :all: pynini

Strategy When using Pynini from a Jupyter or Colab notebook, logging and error messages sent to standard error are lost. To recover them, install wurlitzer and then add the following at the top of your notebook: %load_ext wurlitzer


OpenGrm Pynini, like Thrax, compiles grammars expressed as strings, regular expressions, and context-dependent rewrite rules into weighted finite-state transducers. It uses the OpenFst library and its Python extension to create, access and manipulate compiled grammars. Pynini is embedded in a Python module, allowing users to write Thrax-like grammars using Python's flexible syntax (including imperative programming constructs not available in Thrax) and powerful toolchain.

It is (loosely) named after Pāṇini (पाणिनि), the renowned Sanskrit grammarian.

For more information about Pynini, see:

Other third-party information:

Edit | Attach | Watch | Print version | History: r71 < r70 < r69 < r68 < r67 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r71 - 2021-11-23 - KyleGorman
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback