Estefani Gaytan Nunez

up

1 +python3 training_validation_v9.py --inputPath /home/egaytan/automatic-extraction-growth-conditions/CRF/data-sets --trainingFile training-data-set-70_v4.txt --testFile test-data-set-30_v4.txt --outputPath /home/egaytan/automatic-extraction-growth-conditions/CRF/ --Gridname Run1 --version _v1
2 +python3 training_validation_v9.py --inputPath /home/egaytan/automatic-extraction-growth-conditions/CRF/data-sets --trainingFile training-data-set-70_v4.txt --testFile test-data-set-30_v4.txt --outputPath /home/egaytan/automatic-extraction-growth-conditions/CRF/ --Gridname Run2 --version _v1 --S1
3 +python3 training_validation_v9.py --inputPath /home/egaytan/automatic-extraction-growth-conditions/CRF/data-sets --trainingFile training-data-set-70_v4.txt --testFile test-data-set-30_v4.txt --outputPath /home/egaytan/automatic-extraction-growth-conditions/CRF/ --Gridname Run3 --version _v1 --S2
4 +python3 training_validation_v9.py --inputPath /home/egaytan/automatic-extraction-growth-conditions/CRF/data-sets --trainingFile training-data-set-70_v4.txt --testFile test-data-set-30_v4.txt --outputPath /home/egaytan/automatic-extraction-growth-conditions/CRF/ --Gridname Run4 --version _v1 --S1 --S2
5 +python3 training_validation_v9.py --inputPath /home/egaytan/automatic-extraction-growth-conditions/CRF/data-sets --trainingFile training-data-set-70_v4.txt --testFile test-data-set-30_v4.txt --outputPath /home/egaytan/automatic-extraction-growth-conditions/CRF/ --Gridname Run5 --version _v1 --S3
6 +python3 training_validation_v9.py --inputPath /home/egaytan/automatic-extraction-growth-conditions/CRF/data-sets --trainingFile training-data-set-70_v4.txt --testFile test-data-set-30_v4.txt --outputPath /home/egaytan/automatic-extraction-growth-conditions/CRF/ --Gridname Run6 --version _v1 --S1 --S3
7 +python3 training_validation_v9.py --inputPath /home/egaytan/automatic-extraction-growth-conditions/CRF/data-sets --trainingFile training-data-set-70_v4.txt --testFile test-data-set-30_v4.txt --outputPath /home/egaytan/automatic-extraction-growth-conditions/CRF/ --Gridname Run7 --version _v1 --S2 --S3
8 +python3 training_validation_v9.py --inputPath /home/egaytan/automatic-extraction-growth-conditions/CRF/data-sets --trainingFile training-data-set-70_v4.txt --testFile test-data-set-30_v4.txt --outputPath /home/egaytan/automatic-extraction-growth-conditions/CRF/ --Gridname Run8 --version _v1 --S1 --S2 --S3
...@@ -123,6 +123,7 @@ def word2features(sent, i, S1, S2): ...@@ -123,6 +123,7 @@ def word2features(sent, i, S1, S2):
123 '-1:postag': postag1, 123 '-1:postag': postag1,
124 }) 124 })
125 125
126 +
126 if i < len(sent) - 1: 127 if i < len(sent) - 1:
127 listElem = sent[i + 1].split('|') 128 listElem = sent[i + 1].split('|')
128 lemma1 = listElem[1] 129 lemma1 = listElem[1]
...@@ -134,6 +135,35 @@ def word2features(sent, i, S1, S2): ...@@ -134,6 +135,35 @@ def word2features(sent, i, S1, S2):
134 #PostG posterior 135 #PostG posterior
135 '+1:postag': postag1, 136 '+1:postag': postag1,
136 }) 137 })
138 +
139 + '''
140 + #================== S6 ======================#
141 +
142 + if i > 1:
143 + listElem = sent[i - 2].split('|')
144 + lemma1 = listElem[1]
145 + postag1 = listElem[2]
146 +
147 + features.update({
148 + #LemaG posterior
149 + '-2:lemma': lemma1,
150 + #PostG posterior
151 + '-2:postag': postag1,
152 + })
153 +
154 + if len(sent) - 2:
155 + listElem = sent[i + 2].split('|')
156 + lemma1 = listElem[1]
157 + postag1 = listElem[2]
158 +
159 + features.update({
160 + #LemaG posterior
161 + '+2:lemma': lemma1,
162 + #PostG posterior
163 + '+2:postag': postag1,
164 + })
165 +
166 + '''
137 167
138 #====================== S1 ======================# 168 #====================== S1 ======================#
139 if S1: 169 if S1:
......
This diff is collapsed. Click to expand it.
No preview for this file type
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.