Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 951 Bytes

File metadata and controls

23 lines (18 loc) · 951 Bytes

NLP Lab on text classification

if you want to run the notebook locally

  • clone the code:
    • with a ssh key : git clone git@github.com:Deep-NLP-Course/nlp-lab-text-classification.git
    • without a ssh key : git clone https://github.com/Deep-NLP-Course/nlp-lab-text-classification.git
  • create a virtual environment: virtualenv -p python3 nlp-env
  • activate the virtual env: source nlp-env/bin/activate
  • install the required packages: pip install -r requirements.txt
  • register the virtualenv with jupyter: python -m ipykernel install --name=nlp-env
  • run jupyter: jupyter notenook
  • run the notebook and change the kernel to nlp-env
  • start coding

if you want to use Google Colab

  • log in https://colab.research.google.com/
  • in the File menu, Open notebook -> Github
  • copy/paste the github URL
  • open the notebook file and start coding
  • upload the data files in /content/if needed