A repository for our group assignment 2 for the HIT137 class.
Due to installation problems with the latest version of scispacy, please try to install scipacy==0.5.2 on a virtual environment using python 3.8.9 instead. This is a known error due to nmslib package. You can read more about it here: https://github.com/allenai/scispacy?tab=readme-ov-file#installation-note-nmslib
-
Create a virtual environment
python -m venv .venv
To address the issues of scispacy installation, please install python 3.8.9 Please do not click add to PATH when installing. It is recommended that you only have one version of python in your PATH variables.
To set up a venv with python 3.8.9:
C:\Users\replace with your username\AppData\Local\Programs\Python\Python38\python.exe -m venv .venv
-
Activate the virtual environment
- On Windows:
Set-ExecutionPolicy Unrestricted -Scope Process .\.venv\Scripts\activate
- On macOS/Linux:
source .venv/bin/activate
Note: If your IDE automatically uses the virtual environment, you may not need to activate it manually. However, if you are using a terminal outside of your IDE, you will need to activate the virtual environment each time you open a new terminal session.
- On Windows:
Install the required Python packages:
pip install -r requirements.txt
If new pip packages are required for the assignment, please install the package and update the requirements.txt
file using the following command:
pip freeze > requirements.txt
A "files/" directory should be created within the local repository. This directory will be ignored by git and be used for storing and accessing the original files provided by the lecturer. We ignore this directory because the file sizes are too large to upload on github.