A versioned python wrapper package for The CMU Pronouncing Dictionary data files.
Project description
CMUdict is a versioned python wrapper package for The CMU Pronouncing Dictionary data files, and takes a similar approach to data bundling as Certifi does with Mozilla’s Root Certificates.
Installation
cmudict is available on PyPI. Simply install it with pip:
$ pip install cmudict
You can also install it from source:
$ git clone https://github.com/prosegrinder/python-cmudict.git Cloning into 'python-cmudict'... ... $ cd python-cmudict $ git submodule update --init --recursive Submodule 'cmudict/data' (https://github.com/cmusphinx/cmudict.git) registered for path 'cmudict/data'... ... $ python setup.py install ...
Usage
To reference the installed cmudict data files, you can use the built-in functions:
>>> import cmudict >>> cmudict.where() '/usr/local/lib/python2.7/site-packages/cmudict/data/cmudict.dict' >>> cmudict.where_license() '/usr/local/lib/python2.7/site-packages/cmudict/data/LICENSE' >>> cmudict.where_phones() '/usr/local/lib/python2.7/site-packages/cmudict/data/cmudict.phones' >>> cmudict.where_symbols() '/usr/local/lib/python2.7/site-packages/cmudict/data/cmudict.symbols' >>> cmudict.where_vp() '/usr/local/lib/python2.7/site-packages/cmudict/data/cmudict.vp'
Credits
Built on the following open source projects:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cmudict-0.1.1.tar.gz
(935.0 kB
view hashes)
Built Distribution
cmudict-0.1.1-py2.py3-none-any.whl
(939.8 kB
view hashes)
Close
Hashes for cmudict-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 992a0c22c3ede8df6aaf552b68f32301705f545e87f11782c03533cf66bec73b |
|
MD5 | 38a604108d69e723fa6d41f7063f6a37 |
|
BLAKE2b-256 | 809856613f471aafe49e931219c292e40c43c7a90039ec89ed50f3607e0c7c0d |