forked from recski/HunTag
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstartHunTag.sh
executable file
·22 lines (15 loc) · 1.31 KB
/
startHunTag.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
#train
cat test.maxnp.emmorph | python3 huntag_main.py train --model=modelName --config-file=configs/maxnp.szeged.emmorph.yaml --gold-tag-field 'gold'
#train, featurize (for crfsuite)
cat test.maxnp.emmorph | python3 huntag_main.py train-featurize --model=modelName --config-file=configs/maxnp.szeged.emmorph.yaml --gold-tag-field 'gold' > modelName.CRFsuite.train
#most-informative-features
cat test.maxnp.emmorph | python3 huntag_main.py most-informative-features --model=modelName --config-file=configs/maxnp.szeged.emmorph.yaml --gold-tag-field 'gold' > modelName.mostInformativeFeatures
#transmodel-train:
cat test.maxnp.emmorph | python3 huntag_main.py transmodel-train --model=modelName --gold-tag-field 'gold' # --trans-model-order [2 or 3, default: 3]
#tag
cat test.maxnp.emmorph | python3 huntag_main.py tag --model=modelName --config-file=configs/maxnp.szeged.emmorph.yaml --tag-field 'NP-BIO' > input.tag
#tag, featurize (for crfsuite)
cat test.maxnp.emmorph | python3 huntag_main.py tag-featurize --model=modelName --config-file=configs/maxnp.szeged.emmorph.yaml --tag-field 'NP-BIO' > modelName.CRFsuite.tag
#tag FeatureWeights
cat test.maxnp.emmorph | python3 huntag_main.py print-weights -w 100 --model=modelName --config-file=configs/maxnp.szeged.emmorph.yaml --tag-field 'NP-BIO' > modelName.modelWeights