These are the instructions to be followed before running the sentence deconstructor.
-
Clone the repository
-
It is advised to create a virtual environment. The Anaconda command for the same is
conda create --prefix "prefix path to your venv" --name <name of venv>
-
Activate the virtual environment using the command
conda activate <path to your venv>
-
Once activated, all the required libraries need to be installed.
-
Ensure that PyTorch is installed before pip installing the requirements file.
-
After installing PyTorch, install the other required libraries using the command
pip install -r requirements.txt
-
-
After all the libraries have been installed, the deconstructor can be run with the command
python3 sentence-deconstructor.py
-
Each individual component can also be run by navigating to the respective component directory inside the src/app directory and running
python3 <name of file>.py