Usage example for a couple of Natural Language Processing libraries.
- Python version: 3.8
- Initialize a new virtualenv
virtualenv -p 3.8 .virtualenv
- Enter the environment
source .virtualenv/bin/activate
- Install python dependencies
pip install -r requirements.txt
pip install -r torch_requirements.txt -f https://download.pytorch.org/whl/lts/1.8/torch_lts.htm
sudo apt-get install python3-tk -y
- Install system dependency EVALB
wget -O /tmp/EVALB.tgz https://nlp.cs.nyu.edu/evalb/EVALB.tgz
tar zxf /tmp/EVALB.tgz
cd /tmp/EVALB
sudo make
sudo cp -r /tmp/EVALB /usr/local/lib/EVALB
sudo ln -sf /usr/local/lib/EVALB/evalb /usr/local/bin/
- Download spaCy English Model
python -m spacy download en_core_web_md
jupyter notebook
- Elayne Lemos @elaynelemos