No project description provided
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.0.tar.gz
(935.0 kB
view hashes)
Built Distribution
cmudict-0.1.0-py2.py3-none-any.whl
(939.8 kB
view hashes)
Close
Hashes for cmudict-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65b1f7f58702ea2e2dfe1aa5c1985eafb0eb0955f1946723cd44738920fd207e |
|
MD5 | cce9a91513c3432fe9a8ac3d18c9e585 |
|
BLAKE2b-256 | 4d9ea585a5c28afd155fd9562cda9136b3b5c546ebd9734bdf05021292ed23c3 |