summaryrefslogtreecommitdiff
path: root/dtrain/test/example
diff options
context:
space:
mode:
Diffstat (limited to 'dtrain/test/example')
-rw-r--r--dtrain/test/example/cdec.ini7
-rw-r--r--dtrain/test/example/dtrain.ini14
-rw-r--r--dtrain/test/example/nc-1k-tabs.gzbin0 -> 21185883 bytes
-rw-r--r--dtrain/test/example/nc-1k.gzbin0 -> 21474865 bytes
-rw-r--r--dtrain/test/example/nc-wmt11.en.srilm.gzbin0 -> 16017291 bytes
5 files changed, 21 insertions, 0 deletions
diff --git a/dtrain/test/example/cdec.ini b/dtrain/test/example/cdec.ini
new file mode 100644
index 00000000..31a205c7
--- /dev/null
+++ b/dtrain/test/example/cdec.ini
@@ -0,0 +1,7 @@
+formalism=scfg
+add_pass_through_rules=true
+cubepruning_pop_limit=30
+scfg_max_span_limit=15
+feature_function=WordPenalty
+feature_function=KLanguageModel test/example/nc-wmt11.en.srilm.gz
+feature_function=RuleIdentityFeatures
diff --git a/dtrain/test/example/dtrain.ini b/dtrain/test/example/dtrain.ini
new file mode 100644
index 00000000..e8a20759
--- /dev/null
+++ b/dtrain/test/example/dtrain.ini
@@ -0,0 +1,14 @@
+decoder_config=test/example/cdec.ini
+k=100
+N=3
+gamma=0
+epochs=20
+input=test/example/nc-1k-tabs.gz
+scorer=stupid_bleu
+output=weights.gz
+stop_after=10
+sample_from=kbest
+pair_sampling=108010
+select_weights=VOID
+print_weights=Glue WordPenalty LanguageModel LanguageModel_OOV PhraseModel_0 PhraseModel_1 PhraseModel_2 PhraseModel_3 PhraseModel_4 PassThrough
+tmp=/tmp
diff --git a/dtrain/test/example/nc-1k-tabs.gz b/dtrain/test/example/nc-1k-tabs.gz
new file mode 100644
index 00000000..45496cd8
--- /dev/null
+++ b/dtrain/test/example/nc-1k-tabs.gz
Binary files differ
diff --git a/dtrain/test/example/nc-1k.gz b/dtrain/test/example/nc-1k.gz
new file mode 100644
index 00000000..f638a166
--- /dev/null
+++ b/dtrain/test/example/nc-1k.gz
Binary files differ
diff --git a/dtrain/test/example/nc-wmt11.en.srilm.gz b/dtrain/test/example/nc-wmt11.en.srilm.gz
new file mode 100644
index 00000000..7ce81057
--- /dev/null
+++ b/dtrain/test/example/nc-wmt11.en.srilm.gz
Binary files differ