![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
This is a a Python extension module for compiling, optimizing and applying grammar rules. Rules can be compiled into weighted finite state transducers, pushdown transducers, or multi-pushdown transducers. It uses OpenFst finite-state transducers (FSTs) and FST archives (FArs) as inputs and outputs.
This library is primarily developed by Kyle Gorman.
If you use Pynini in your research, we would appreciate if you cite the following paper:
K. Gorman. 2016. Pynini: A Python library for weighted finite-state grammar compilation. In Proc. ACL Workshop on Statistical NLP and Weighted Automata, 75-80.
(Note that some of the code samples in the paper are now out of date and not expected to work.)
NEWS
for this) built with the grm
extensions (i.e., built with
./configure --enable-grm
) and headersThere are various ways to install Pynini depending on your platform.
While Pynini is neither designed for nor tested on Windows, it can be installed using the Windows Subsystem for Linux (WSL). Simply enter the WSL environment and follow the Linux instructions below.
The pre-compiled library can be installed from
conda-forge
by running conda install -c conda-forge pynini
.
Alternatively, one can build from source from PyPI by
running pip install pynini
.
Finally, one can use Bazel to build from source by
running bazel build //:all
anywhere in the source tree.
The pre-compiled library can be installed from
conda-forge
by running conda install -c conda-forge pynini
.
Alternatively, one can install a pre-compiled
manylinux
wheel from
PyPI by running pip install pynini
. This will install the
pre-compiled manylinux
wheel (if available for the release and compatible with
your platform), and build and install from source if not. Unlike the
conda-forge
option above, which also installs OpenFst
and Graphviz, this does not install the OpenFst or
Graphviz command-line tools. See the enclosed
Dockerfile
for instructions for building and
deploying manylinux
wheels.
Finally, one can use Bazel to build from source by
running bazel build //:all
anywhere in the source tree.
To confirm successful installation, run pip install -r requirements
, then
python tests/pynini_test.py
. If all tests pass, the final line will read OK
;
a successful run will log some errors to STDERR (this is working as expected).
Pynini 2.0.0 and onward support Python 3. Pynini 2.1 versions (onward) drop Python 2 support. The current release supports Python 3.8--3.13.
Pynini is released under the Apache license. See LICENSE
for more
information.
See CONTRIBUTING
for more information.
This is not an official Google product.
FAQs
Finite-state grammar compilation
We found that pynini demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.