CS376 Team 4 Code Repository (GITHUB)
- Download the raw datasaet from DRESS repository (DRESS_REPO)
- Unzip the file to wikilarge or wikismall folder
- Run
python preprocess_data.py --data wikilarge
for wikilarge,python preprocess_data.py --data wikismall
for wikismall
- Run
conda create --name --file requirements.txt python==3.7
- If you want to run the demo website, install Flask, too.
- If you want to generate EASSE reports, follow the EASSE repository (EASSE_REPO)
ex) with wikilarge dataset
python train.py --data wikilarge --model naive --loss none
ex) with wikilarge dataset, without weighted loss
python train.py --data wikilarge --model feature --loss none
ex) with wikilarge dataset, with weighted loss
python train.py --data wikilarge --model feature --loss weighted
ex) with wikilarge dataset, with weighted loss
python test.py --data wikilarge --model feature --loss weighted --path PATH
if you want to check the output of a specific sentence, use simplify
function
If you have any questions, use Issues