This guide is for setting up your own machine with the software needed to work through the weekly and mandatory exercises in IN4080 Natural Language Processing, 2020.

Setup with Anaconda

Download and install either Anaconda or Miniconda

Download the python 3.7 installer for your operating system.

Install anaconda by following this guide if you are using linux, or this guide if you are using windows. If you are using windows, or just want more info on how to use conda, see this page. Once you got a working shell with conda installed you can continue the guide.

You should now have access to the conda command. For a quick test execute the conda command without any arguments.

conda

You are resommended to download the conda cheat sheet and keep it at hand.

Create environment

Make sure that you are in the directory with the environment.yml file that came with this setup guide. To create an environment with the name "in4080", and all required dependencies for this course, one command is sufficient

conda env create

If you want to change the name of the environment, you can edit the name in the environment.yml file before executing the command.

Note 1: If you used the Anaconda/Miniconda setup for IN3050/IN4050 in the spring, you may use the same environment and update it with additional packages. Compare the two yaml-files to see the packages. You should update conda and the environment first.

Note 2: You can create the environment for this course from scratch if you want. If you do, make sure to use python 3.7.x as all the material was made with this version of python in mind.

Activate the environment

To activate the environment

conda activate in4080

If you want to get back to you standard python and packages:

conda deactivate