-
Notifications
You must be signed in to change notification settings - Fork 23
/
run-german.sh
38 lines (38 loc) · 1.84 KB
/
run-german.sh
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
java -Dfile.encoding="UTF-8" -cp bin:lib/* deplambda.others.NlpPipeline `# This pipeline runs stanford ner` \
annotators tokenize,ssplit,ner \
tokenize.language de \
ssplit.eolonly true \
ner.model edu/stanford/nlp/models/ner/german.hgc_175m_600.crf.ser.gz \
ner.applyNumericClassifiers false \
ner.useSUTime false \
nthreads 1 \
| java -Dfile.encoding="UTF-8" -cp bin:lib/* deplambda.others.NlpPipeline `# This pipeline uses ner tags from previous steps and annotates entities` \
preprocess.addDateEntities true \
preprocess.addNamedEntities true \
annotators tokenize,ssplit \
tokenize.whitespace true \
ssplit.eolonly true \
nthreads 1 \
| java -Dfile.encoding="UTF-8" -cp bin:lib/* deplambda.others.NlpPipeline `# This pipeline runs UD pos tagger and UD dependency parser` \
preprocess.lowerCase true \
annotators tokenize,ssplit,pos,depparse \
tokenize.whitespace true \
ssplit.eolonly true \
languageCode de \
posTagKey UD \
pos.model lib_data/ud-models-v1.3/de/pos-tagger/utb-caseless-de-bidirectional-glove-distsim-lower.tagger \
depparse.model lib_data/ud-models-v1.3/de/neural-parser/de-lowercase-glove50.lower.nndep.model.txt.gz \
nthreads 1 \
| java -Dfile.encoding="UTF-8" -cp bin:lib/* deplambda.others.NlpPipeline `# This pipeline runs semantic parser` \
annotators tokenize,ssplit \
tokenize.whitespace true \
ssplit.eolonly true \
languageCode de \
deplambda true \
deplambda.definedTypesFile lib_data/ud.types.txt \
deplambda.treeTransformationsFile lib_data/ud-enhancement-rules.proto \
deplambda.relationPrioritiesFile lib_data/ud-obliqueness-hierarchy.proto \
deplambda.lambdaAssignmentRulesFile lib_data/ud-substitution-rules.proto \
deplambda.lexicalizePredicates true \
deplambda.debugToFile debug.txt \
nthreads 1