Linear NLP Tutorial

A Natural Language Processing (NLP) case study, to highlight:

  • Reading in a text data set
  • Transforming a text data set
  • Modeling a text data set
  • Storing assets from modeling a text data set

Quick start

To run the Python code, complete the following:

# Install anaconda environment
conda env create -f environment.yml 

# Activate environment
source activate linear_nlp

# Run script
cd bin/
python main.py

Repo structure

  • bin/main.py: Code entry point

Python Environment

Python code in this repo utilizes packages that are not part of the common library. To make sure you have all of the appropriate packages, please install Anaconda, and install the environment described in environment.yml (Instructions here, under Use environment from file, and Change environments (activate/deactivate)).

Contact

Feel free to contact me at 13herger <at> gmail <dot> com