single_run_regexNER.sh
1.53 KB
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
29
30
31
32
33
34
35
36
37
38
echo
echo
echo "==============================Run CoreNLP======================================= ";
echo
echo
input="/home/kevinml/automatic-extraction-growth-conditions/CoreNLP/input/raw-metadata-senteneces.txt"
output="/home/kevinml/automatic-extraction-growth-conditions/CoreNLP/output/"
echo
echo "input file: " $input;
echo
echo "output directory: " $output;
regexfile="/home/kevinml/automatic-extraction-growth-conditions/CoreNLP/input/OneWord_Alphanum.txt"
echo
echo "regex file: " $regexfile;
echo
corenlp.sh -annotators tokenize,ssplit,pos,lemma,regexner -outputFormat conll -file $input -outputDirectory $output -regexner.mapping $regexfile;
regexfile="/home/kevinml/automatic-extraction-growth-conditions/CoreNLP/input/MultWord_Alphanum.txt"
echo
echo "regex file: " $regexfile;
echo
corenlp.sh -annotators tokenize,ssplit,pos,lemma,regexner -outputFormat conll -file $input -outputDirectory $output -regexner.mapping $regexfile -noClobber;
regexfile="/home/kevinml/automatic-extraction-growth-conditions/CoreNLP/input/OneWord_NOAlphanum.txt"
echo
echo "regex file: " $regexfile;
echo
corenlp.sh -annotators tokenize,ssplit,pos,lemma,regexner -outputFormat conll -file $input -outputDirectory $output -regexner.mapping $regexfile -noClobber;
regexfile="/home/kevinml/automatic-extraction-growth-conditions/CoreNLP/input/MultWord_NOAlphanum.txt"
echo
echo "regex file: " $regexfile;
echo
corenlp.sh -annotators tokenize,ssplit,pos,lemma,regexner -outputFormat conll -file $input -outputDirectory $output -regexner.mapping $regexfile -noClobber;