In this example, we'll build a small application that can be used to check spelling in a collection of HTML documents. We'll utilize the PyEnchant
library here, which is based upon the Enchant spell-check system.
Step into the virtual environment that we've created for our examples and run the activate script for your platform.
Next, we'll install the
pyenchant
libraries using theeasy_install
utility. The spell-check system is available on PyPI. Note that you must already have the Enchant system installed on your workstation. Ubuntu users can install thelibenchant1c2a
library. Windows users should follow the instructions at http://www.abisource.com/projects/enchant/. There are binary packages available. You may also need to install theen_US
dictionary, which is also covered at the previous URL.Using
easy_install
, we'll add thePyEnchant
libraries to our virtual environment.(text_processing)$ easy_install pyenchant Searching for pyenchant Reading...