Wrapper library for accessing the language model tools for CMU Sphinx (CMUCLMTK)
BSD-3-CLAUSE License
python-cmuclmtk is a wrapper library for accessing the language model tools for CMU Sphinx (CMUCLMTK). It runs on Python 2 and 3.
On ArchLinux, python-cmuclmtk can be installed from the AUR:
$ yaourt -S python-cmuclmtk
A universal installation method (that works on Windows, Mac OS X, Linux, ,
and provides the latest version) is to use pip
:
$ pip install python-cmuclmtk
import cmuclmtk
text = "This is a test"
# Create a vocab file from text
cmuclmtk.text2wfreq(text, "test.wfreq")
cmuclmtk.wfreq2vocab("test.wfreq", "test.vocab")
# Shortcut
cmuclmtk.text2vocab(text, "test.vocab")
You can find the API refence here.
python-cmuclmtk was created by Jan Holthuis (@Holzhaus).
Please see LICENSE file.