Skip to content

Latest commit

 

History

History
83 lines (54 loc) · 1.83 KB

README.rst

File metadata and controls

83 lines (54 loc) · 1.83 KB

NLPIA

The code and data for Natural Language Processing in Action.

Description

A community-developed book about building Natural Language Processing pipelines for prosocial chatbots that contribute to communities.

Getting Started

  1. Install Anaconda
  2. Clone this repository
# git clone https://github.com/totalgood/nlpia.git
# cd nlpia
  1. Use conda-env OR pip to install dependencies

Depending on your OS you may have better luck using conda to install the dependencies

Use conda-env

The environment.yml file creates a conda environment called conda_env_nlpia

# conda env create -f conda/environment.yml
# source activate conda_env_nlpia

Use pip

# 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
  1. Activate this new environment
# source activate nlpia
  1. Install an "editable" nlpia package in this conda environment (also called nlpia)
# pip install -e .
  1. Check out the code examples from the book in nlpia/nlpia/book/examples
# cd nlpia/book/examples
# ls