The code and data for Natural Language Processing in Action.
A community-developed book about building Natural Language Processing pipelines for prosocial chatbots that contribute to communities.
- Install Anaconda
- Clone this repository
# git clone https://github.com/totalgood/nlpia.git
# cd nlpia
- Use
conda-env
ORpip
to install dependencies
Depending on your OS you may have better luck using conda to install the dependencies
The environment.yml file creates a conda environment called
conda_env_nlpia
# conda env create -f conda/environment.yml
# source activate conda_env_nlpia
# conda create -y -n conda_env_nlpia
# source activate conda_env_nlpia
# conda install -y pip
# pip install -e .
# pip install -r requirements-deep.txt
The chatbots (including TTS and STT audio drivers) that come with
nlpia
may not be compatible with Windows due to problems install
pycrypto
.If you are on a Linux or Darwin (Mac OSX) system or want to try to
help us debug the pycrypto problem feel free to install the chatbot
requirements:
# pip install -r requirements-chat.txt
# pip install -r requirements-voice.txt
- Activate this new environment
# source activate nlpia
- Install an "editable"
nlpia
package in this conda environment (also called nlpia)
# pip install -e .
- Check out the code examples from the book in
nlpia/nlpia/book/examples
# cd nlpia/book/examples
# ls