These instructions will get you a copy of the project up and running on your local machine for testing purposes.
In order to reproduce our environment with all the packages and versions required:
- Download the file spec-file.txt from polybox [ https://polybox.ethz.ch/index.php/s/m0xJnbNl5iFEPCk]
- Run the following command from the terminal or an Anaconda Prompt:
conda create --name myenv --file spec-file.txt
This will create a conda environment and install all packages needed.
- Activate the environment: On Windows, in your Anaconda Prompt, run:
activate myenv
On macOS and Linux, in your Terminal Window, run:
source activate myenv
- Open a python shell and write the following commands:
import nltk
nltk.download('punkt')
nltk.download('names')
- The unzipped folder 'ChiNet' contains src folder where the code main_test.py is
All data files are available in a zipped folder on polybox:
- Download the zipped folder 'datasets' [https://polybox.ethz.ch/index.php/s/i2az9ljuZt3eGx5] and unzip it. This folder contains:
- The vocab folder created after preprocessing
- The word2vec embeddings folder
- The training, validation and test sets
- Download the zipped folder 'outputs' [https://polybox.ethz.ch/index.php/s/3FOMzOGPZdoAU9k] and unzip it. This folder contains model weights after training.
- Move both unzipped folders to the folder 'ChiNet'
Run main_test.py available in ChiNet\src .