Kaldi Python IO
A python (3.6+) wrapper for Kaldi's data accessing.
Support Type
- Kaldi's binary archives (*.ark)
- Kaldi's scripts (alignments & features, *.scp)
- Kaldi nnet3 data examples in binary (*.egs)
Install
python setup.py install or pip install kaldi-python-io
Usage
-
ArchiveReader && AlignArchiveReader
# allow only sequential index ark_reader = ArchiveReader("copy-feats ark:foo.ark ark:- |") for key, _ in ark_reader: print(key) ali_reader = AlignArchiveReader("gunzip -c foo.ali.gz |") for key, _ in ark_reader: print(key)
-
Nnet3EgsReader
# allow only sequential index egs_reader = Nnet3EgsReader("foo.egs") for key, _ in egs_reader: print(key)
-
ArchiveWriter
with ArchiveWriter("foo.ark", "foo.scp") as writer: for i in range(10): mat = np.random.rand(100, 20) writer.write(f"mat-{i}", mat)
-
ScriptReader && AlignScriptReader
# allow sequential/random index scp_reader = ScriptReader("shuf foo.scp | head -n 2") for key, mat in scp_reader: print(f"{key}: {mat.shape}") ali_reader = AlignScriptReader("foo.ali.scp") for key, ali in ali_reader: print(f"{key}: {ali.shape}")
Metadata
Release files for kaldi-python-io 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| kaldi-python-io-1.2.2.tar.gz | 8.8 kB | Without provenance | Details |
Release files / kaldi-python-io-1.2.2.tar.gz
| Download URL | kaldi-python-io-1.2.2.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ebb4029c6c58296cc0abf96edff02832ba341d290ed37624a8d00105f0f7c00
|
|
BLAKE2b-256 checksum How to use checksums |
8045e3e542ffa8970ebd782fcece35e2295de9c60e8c396c2c1a403410d1b24e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Security for kaldi-python-io 1.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.