Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 2.57 KB

DEVELOPMENT.md

File metadata and controls

42 lines (31 loc) · 2.57 KB

Development

Dependencies

  1. Set up a conda environment:
# OPTION 1 (recommended): using env.yml
conda env create -f env.yml

# OPTION 2: using requirements.txt
conda create --name amalgum python=3.7
conda activate amalgum
pip install -r requirements.txt
  1. (optional) If you have CUDA-capable hardware, add CUDA support: conda install "pytorch<1.6" torchvision cudatoolkit -c pytorch

  2. Download punkt: python -c "import nltk; nltk.download('punkt')"

  3. (For Windows platforms), Download and install the 64-bit JRE and setup the JAVA_HOME environment variable with the location of this JRE (typically in C:\Program Files\Java<your jre folder>)

NLP Pipeline

Invoke nlp_controller.py on the tiny subset to ensure the pipeline is working properly:

python nlp_controller.py target -i out_tiny

Adding an NLPModule