-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathMakefile.tacl2014
258 lines (254 loc) · 8.79 KB
/
Makefile.tacl2014
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
# TACL MWG Baseline
tacl_mwg:
rm -rf ../working/tacl_mwg
mkdir -p ../working/tacl_mwg
java -Xms2048m -cp lib/*:graph-parser.jar in.sivareddy.graphparser.cli.RunGraphToQueryTrainingMain \
--ccgLexiconQuestions lib_data/lexicon_specialCases_questions_vanilla.txt \
-schema data/freebase/schema/business_film_people_schema.txt \
-relationTypesFile lib_data/dummy.txt \
-lexicon data/tacl/grounded_lexicon/tacl_grounded_lexicon.txt \
-domain "http://rdf.freebase.com" \
-typeKey "fb:type.object.type" \
-endpoint localhost \
-nthreads 50 \
-nBestTestSyntacticParses 1 \
-nbestGraphs 100 \
-useSchema true \
-useKB true \
-groundFreeVariables false \
-useEmptyTypes false \
-ignoreTypes true \
-urelGrelFlag true \
-urelPartGrelPartFlag false \
-utypeGtypeFlag true \
-wordGrelPartFlag false \
-eventTypeGrelPartFlag true \
-argGrelPartFlag true \
-stemMatchingFlag true \
-mediatorStemGrelPartMatchingFlag true \
-argumentStemMatchingFlag true \
-argumentStemGrelPartMatchingFlag true \
-graphIsConnectedFlag false \
-graphHasEdgeFlag true \
-countNodesFlag false \
-edgeNodeCountFlag false \
-duplicateEdgesFlag true \
-grelGrelFlag true \
-useLexiconWeightsRel true \
-useLexiconWeightsType false \
-validQueryFlag false \
-initialEdgeWeight 1.0 \
-initialTypeWeight -1.0 \
-initialWordWeight 1.0 \
-stemFeaturesWeight 0.0 \
-devFile data/tacl_splits/webquestions/vanilla_dev.txt \
-testFile data/tacl_splits/webquestions/vanilla_test.txt \
-logFile ../working/tacl_mwg/business_film_people.log.txt \
> ../working/tacl_mwg/business_film_people.txt
# TACL GraphPaser results
tacl_unsupervised:
rm -rf ../working/tacl_unsupervised
mkdir -p ../working/tacl_unsupervised
java -Xms2048m -cp lib/*:graph-parser.jar in.sivareddy.graphparser.cli.RunGraphToQueryTrainingMain \
-schema data/freebase/schema/business_film_people_schema.txt \
-ccgLexiconQuestions lib_data/lexicon_specialCases_questions_vanilla.txt \
-relationTypesFile data/dummy.txt \
-lexicon data/tacl/grounded_lexicon/tacl_grounded_lexicon.txt \
-domain "http://rdf.freebase.com" \
-typeKey "fb:type.object.type" \
-endpoint localhost \
-nthreads 20 \
-trainingSampleSize 500 \
-iterations 80 \
-nBestTrainSyntacticParses 1 \
-nBestTestSyntacticParses 1 \
-nbestGraphs 100 \
-useSchema true \
-useKB true \
-groundFreeVariables false \
-useEmptyTypes false \
-ignoreTypes true \
-urelGrelFlag true \
-urelPartGrelPartFlag false \
-utypeGtypeFlag false \
-gtypeGrelFlag false \
-wordGrelPartFlag false \
-eventTypeGrelPartFlag false \
-argGrelPartFlag false \
-stemMatchingFlag true \
-mediatorStemGrelPartMatchingFlag true \
-argumentStemMatchingFlag true \
-argumentStemGrelPartMatchingFlag true \
-graphIsConnectedFlag false \
-graphHasEdgeFlag true \
-countNodesFlag false \
-edgeNodeCountFlag false \
-duplicateEdgesFlag true \
-grelGrelFlag true \
-useLexiconWeightsRel true \
-useLexiconWeightsType false \
-validQueryFlag true \
-initialEdgeWeight -0.5 \
-initialTypeWeight -2.0 \
-initialWordWeight -0.05 \
-stemFeaturesWeight 0.00 \
-trainingCorpora data/tacl/sentences_training/tacl_training_sentences.txt.gz \
-devFile data/tacl_splits/webquestions/vanilla_dev.txt \
-testFile data/tacl_splits/webquestions/vanilla_test.txt \
-logFile ../working/tacl_unsupervised/business_film_people.log.txt \
> ../working/tacl_unsupervised/business_film_people.txt
tacl_unsupervised_loaded_model:
mkdir -p ../working/tacl_unsupervised_loaded_model
java -Xms2048m -cp lib/*:graph-parser.jar in.sivareddy.graphparser.cli.RunGraphToQueryTrainingMain \
-schema data/freebase/schema/business_film_people_schema.txt \
-ccgLexiconQuestions lib_data/lexicon_specialCases_questions_vanilla.txt \
-relationTypesFile data/dummy.txt \
-lexicon data/tacl/grounded_lexicon/tacl_grounded_lexicon.txt \
-domain "http://rdf.freebase.com" \
-typeKey "fb:type.object.type" \
-endpoint localhost \
-nthreads 30 \
-nBestTrainSyntacticParses 1 \
-nBestTestSyntacticParses 1 \
-nbestGraphs 100 \
-useSchema true \
-useKB true \
-groundFreeVariables false \
-useEmptyTypes false \
-ignoreTypes true \
-urelGrelFlag true \
-urelPartGrelPartFlag false \
-utypeGtypeFlag false \
-gtypeGrelFlag false \
-wordGrelPartFlag false \
-eventTypeGrelPartFlag false \
-argGrelPartFlag false \
-stemMatchingFlag true \
-mediatorStemGrelPartMatchingFlag true \
-argumentStemMatchingFlag true \
-argumentStemGrelPartMatchingFlag true \
-graphIsConnectedFlag false \
-graphHasEdgeFlag true \
-countNodesFlag false \
-edgeNodeCountFlag false \
-duplicateEdgesFlag true \
-grelGrelFlag true \
-useLexiconWeightsRel true \
-useLexiconWeightsType false \
-validQueryFlag true \
-initialEdgeWeight -0.5 \
-initialTypeWeight -2.0 \
-initialWordWeight -0.05 \
-stemFeaturesWeight 0.00 \
-endpoint localhost \
-loadModelFromFile ../working/tacl_unsupervised/business_film_people.log.txt.model.bestIteration \
-groundInputCorpora data/tacl/sentences_training/tacl_training_sentences.txt.gz \
-logFile ../working/tacl_unsupervised_loaded_model/business_film_people.log.txt \
> ../working/tacl_unsupervised_loaded_model/business_film_people.txt
# After tacl experiments
tacl_supervised:
rm -rf ../working/tacl_supervised
mkdir -p ../working/tacl_supervised
java -Xms2048m -cp lib/*:graph-parser.jar in.sivareddy.graphparser.cli.RunGraphToQueryTrainingMain \
-schema data/freebase/schema/business_film_people_schema.txt \
-ccgLexiconQuestions lib_data/lexicon_specialCases_questions_vanilla.txt \
-relationTypesFile data/dummy.txt \
-lexicon lib_data/dummy.txt \
-domain "http://rdf.freebase.com" \
-typeKey "fb:type.object.type" \
-endpoint localhost \
-nthreads 30 \
-trainingSampleSize 500 \
-iterations 10 \
-nBestTrainSyntacticParses 1 \
-nBestTestSyntacticParses 1 \
-nbestGraphs 100 \
-useSchema true \
-useKB true \
-groundFreeVariables false \
-useEmptyTypes false \
-ignoreTypes true \
-ngramLength 2 \
-ngramGrelPartFlag true \
-urelGrelFlag true \
-urelPartGrelPartFlag false \
-utypeGtypeFlag false \
-gtypeGrelFlag false \
-wordGrelPartFlag true \
-eventTypeGrelPartFlag true \
-argGrelPartFlag true \
-stemMatchingFlag true \
-mediatorStemGrelPartMatchingFlag true \
-argumentStemMatchingFlag true \
-argumentStemGrelPartMatchingFlag true \
-graphIsConnectedFlag false \
-graphHasEdgeFlag true \
-countNodesFlag false \
-edgeNodeCountFlag false \
-duplicateEdgesFlag true \
-grelGrelFlag true \
-useLexiconWeightsRel true \
-useLexiconWeightsType false \
-validQueryFlag true \
-initialEdgeWeight -0.5 \
-initialTypeWeight -2.0 \
-initialWordWeight -0.05 \
-stemFeaturesWeight 0.00 \
-supervisedCorpus data/tacl/vanilla_gold/webquestions.examples.train.domains.easyccg.parse.filtered.json.train.915 \
-devFile data/tacl_splits/webquestions/vanilla_dev.txt \
-testFile data/tacl_splits/webquestions/vanilla_test.txt \
-logFile ../working/tacl_supervised/business_film_people.log.txt \
> ../working/tacl_supervised/business_film_people.txt
tacl_supervised_with_unsupervised_lexicon:
rm -rf ../working/tacl_supervised_with_unsupervised_lexicon
mkdir -p ../working/tacl_supervised_with_unsupervised_lexicon
java -Xms2048m -cp lib/*:graph-parser.jar in.sivareddy.graphparser.cli.RunGraphToQueryTrainingMain \
-schema data/freebase/schema/business_film_people_schema.txt \
-ccgLexiconQuestions lib_data/lexicon_specialCases_questions_vanilla.txt \
-relationTypesFile data/dummy.txt \
-lexicon data/tacl/grounded_lexicon/tacl_grounded_lexicon.txt \
-domain "http://rdf.freebase.com" \
-typeKey "fb:type.object.type" \
-nthreads 30 \
-trainingSampleSize 500 \
-iterations 10 \
-nBestTrainSyntacticParses 1 \
-nBestTestSyntacticParses 1 \
-nbestGraphs 100 \
-useSchema true \
-useKB true \
-groundFreeVariables false \
-useEmptyTypes false \
-ignoreTypes true \
-ngramLength 2 \
-ngramGrelPartFlag true \
-urelGrelFlag true \
-urelPartGrelPartFlag true \
-utypeGtypeFlag false \
-gtypeGrelFlag false \
-wordGrelPartFlag true \
-eventTypeGrelPartFlag true \
-argGrelPartFlag true \
-stemMatchingFlag true \
-mediatorStemGrelPartMatchingFlag true \
-argumentStemMatchingFlag true \
-argumentStemGrelPartMatchingFlag true \
-graphIsConnectedFlag false \
-graphHasEdgeFlag true \
-countNodesFlag false \
-edgeNodeCountFlag false \
-duplicateEdgesFlag true \
-grelGrelFlag true \
-useLexiconWeightsRel true \
-useLexiconWeightsType false \
-validQueryFlag true \
-initialEdgeWeight -0.5 \
-initialTypeWeight -2.0 \
-initialWordWeight -0.05 \
-stemFeaturesWeight 0.00 \
-endpoint localhost \
-supervisedCorpus data/tacl_splits/webquestions/vanilla_train.txt \
-devFile data/tacl_splits/webquestions/vanilla_dev.txt \
-testFile data/tacl_splits/webquestions/vanilla_test.txt \
-logFile ../working/tacl_supervised_with_unsupervised_lexicon/business_film_people.log.txt \
> ../working/tacl_supervised_with_unsupervised_lexicon/business_film_people.txt