Kevin Meza Landeros

script to run CoreNLP with regex NER

1 +echo
2 +echo
3 +echo "==============================Run CoreNLP======================================= ";
4 +echo
5 +echo
6 +
7 +input="/home/kevinml/automatic-extraction-growth-conditions/CoreNLP/input/"
8 +output="/home/kevinml/automatic-extraction-growth-conditions/CoreNLP/output/"
9 +regexfile="/home/kevinml/automatic-extraction-growth-conditions/CoreNLP/input/NER_words_Words_NoGreek.txt"
10 +echo
11 +echo "input file: " $input;
12 +echo
13 +echo "output directory: " $output;
14 +echo
15 +echo "regex file: " $regexfile;
16 +echo
17 +
18 +corenlp.sh -annotators tokenize,ssplit,pos,lemma,regexner -outputFormat conll -file $input -outputDirectory $output -regexner.mapping $regexfile;