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, 2021.

Setup with Anaconda

Download and install either Anaconda or Miniconda

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 recommended 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_2022", and required dependencies, 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. Beware that may take some time to create the environment.

Activate the environment

To activate the environment

conda activate in4080_2022

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

conda deactivate

In windows you can choose environment from the start menu.

When running the environment and loading some packages, I got a warning regarding compatibility between numpy and scipy versions. I did not recognize any problems when running the code, though.