- Python 2.7
- Java
#train
python parser.py train <train_file_name>
#predict
python parser.py predict <test_file_name>
#select features using MI
python parser.py feature
The output predict_pdtb.json is the predict result.
If you want to train from new data, delete all things under /tmp
. If you just want to predict on new data, just delete all files whose name doesn't contains train
or model
under /tmp
.
- generate predict result in file, for later evaluation using
scorer.py
- add command line arguments
- use
Lemma
for word-pair feature - add first-last-firstlast3 feature
- F1 measure up to
42.13%
- parserhelper
- feature extraction
- training
- predicting