lenzo-ka / python-cmuclmtk

Wrapper library for accessing the language model tools for CMU Sphinx (CMUCLMTK)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-cmuclmtk

python-cmuclmtk is a wrapper library for accessing the language model tools for CMU Sphinx (CMUCLMTK). It runs on Python 2 and 3.

Installation

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

Usage

Example

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")

API Reference

You can find the API refence here.

Authors

python-cmuclmtk was created by Jan Holthuis (@Holzhaus).

License

Please see LICENSE file.

About

Wrapper library for accessing the language model tools for CMU Sphinx (CMUCLMTK)

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%