-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDefMiner_clean
More file actions
28 lines (25 loc) · 797 Bytes
/
DefMiner_clean
File metadata and controls
28 lines (25 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
#Args:
# $1 input file path
filepath=$1
filepath=${filepath%.*}
echo filepath
suffix="_defminer"
filepath=$filepath$suffix
filename=$(basename "$filepath")
del="/"
inputpath=$filepath$del$filename
in_suffix=".data"
out_suffix=".out"
annotated_suffix=".annotated"
in_file_path=$inputpath$in_suffix
out_file_path=$inputpath$out_suffix
annotated_path=$inputpath$annotated_suffix
echo Doing Preprocessing ... This may take several minutes.
java -Xmx4g -cp preprocess/integratedParser/bin:preprocess/integratedParser/lib/* main.IntegratedParser $1
echo Extracting features ...
python predict.py -i $inputpath
echo Performing classification ...
CRF++-0.58/crf_test -m models/model $in_file_path > $out_file_path
echo result stored in $annotated_path
python annotate_clean.py $inputpath