Python wrapper for OpenFst and its extensions from Kaldi, e.g.,
fstdeterminizestar
.
Note: It does not depend on Kaldi. You don't need to install Kaldi to use this repo.
Please refer to https://k2-fsa.github.io/kaldifst for installation and usage.
Python wrapper for OpenFST and its extensions from Kaldi. Also support reading/writing ark/scp files
Home Page: https://k2-fsa.github.io/kaldifst/
License: Other
Python wrapper for OpenFst and its extensions from Kaldi, e.g.,
fstdeterminizestar
.
Note: It does not depend on Kaldi. You don't need to install Kaldi to use this repo.
Please refer to https://k2-fsa.github.io/kaldifst for installation and usage.
Building wheels for collected packages: kaldifst
Building wheel for kaldifst (setup.py) ... error
error: subprocess-exited-with-error
_ python setup.py bdist_wheel did not run successfully
Hello, I am having an issue following this code snippet:
https://github.com/csukuangfj/kaldifst/blob/d83a76ecba5e0a198231855910f90e4b24b5c7f5/kaldifst/python/tests/test_k2_converter.py#L5
I was trying to import k2_to_openfst
but it failed. Here is an google colab notebook to reproduce the issue:
https://colab.research.google.com/drive/1MIjTZTgOQOUHaIe_j3IVmrmCRek8b_JT?usp=sharing
Would you mind taking a look, or suggest how to resolve it? Thanks a lot!
Hi,
When I import pytest
with kaldifst
in a code repository and execute the command python3 run_test.py
, it seems like the program gets stuck in a loop and doesn't return any result, nor does it give any errors. I would appreciate your opinion on what to do next. It appears that pytest has an issue with kaldifst—and generally with C++ Python wrappers.
# run_test.py
import kaldifst
import pytest
# Run pytest with coverage and generate reports
pytest.main(['--cov', '--cov-report', 'term', '--cov-report', 'xml:coverage.xml'])
What is shown in the terminal
===================================================================== test session starts =====================================================================
platform linux -- Python 3.8.16, pytest-7.4.4, pluggy-1.3.0
rootdir: /home
plugins: cov-4.1.0, hypothesis-6.92.2, hydra-core-1.1.2
collecting 1190 items
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.