A simple interface for the CMU pronouncing dictionary
Pronouncing is a simple interface for the CMU Pronouncing Dictionary. It’s easy to use and has no external dependencies. For example, here’s how to find rhymes for a given word:
>>> import pronouncing >>> pronouncing.rhymes("climbing") ['diming', 'liming', 'priming', 'rhyming', 'timing']
Read the documentation here: https://pronouncing.readthedocs.org.
I made Pronouncing because I wanted to be able to use the CMU Pronouncing Dictionary in my projects (and teach other people how to use it) without having to install the grand behemoth that is NLTK.
Install with pip like so:
pip install pronouncing
You can also download the source code and install manually:
python setup.py install
The Python code in this module is distributed with a BSD license. A full copy of the CMU Pronouncing Dictionary is included in this distribution. Learn more about the CMU Pronouncing Dictionary here: http://www.speech.cs.cmu.edu/cgi-bin/cmudict
This package was originally developed as part of my Spring 2015 research fellowship at ITP. Thank you to the program and its students for their interest and support!
- Removed dictionary data from this package in favor of a dependency on David L. Day’s very nice cmudict package.
- Many fixes and improvements from hugovk (thanks!)
- Messed up the PyPI upload. Yay!
- Improved performance when retrieving rhyming words. (Based on pull request proposed by WillPiledriver.)
- Various tweaks and performance improvements.
- Pre-compiled regex for improved performance. (Contributed by John Wiseman.)
- First release on PyPI.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pronouncing-0.2.0.tar.gz (17.6 kB)||File type Source||Python version None||Upload date||Hashes View|