-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrunit.sh
executable file
·23 lines (19 loc) · 1.07 KB
/
runit.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# Author: Jonathan Beaulieu
# Use this command to train any of the configurations in the config directory.
# python3 run.py configs/bow_en.json -v
# run 'python3 run.py -h' to print the following help text.
# usage: run.py [-h] [-f FOLD] [-e] [-v] [-r] config
#
# positional arguments:
# config
#
# optional arguments:
# -h, --help show this help message and exit
# -f FOLD, --fold FOLD (Runs a single fold instead of all folds.)
# -e, --examples (This saves a confusion matrix with examples so you can explorer how the tweets are being classified, using the the matrix_explorer.py program.)
# -v, --verbose (This makes enables all logging statements to log not just the essential ones. Good for being able see what is/was going on.)
# -r, --recover (This is an experimental feature)
# This command gets the results from the trained models. (Don't comment out even if you uncomment the above command to train a model, otherwise the results will not update.)
python3 parse_output.py
# ***The above command will dump the results into output/results.txt***