summaryrefslogtreecommitdiff
path: root/training/dtrain/example/toy
diff options
context:
space:
mode:
Diffstat (limited to 'training/dtrain/example/toy')
-rw-r--r--training/dtrain/example/toy/cdec.ini3
-rw-r--r--training/dtrain/example/toy/dtrain.ini8
-rw-r--r--training/dtrain/example/toy/expected-output0
-rw-r--r--training/dtrain/example/toy/grammar.gzbin0 -> 219 bytes
-rw-r--r--training/dtrain/example/toy/in2
-rw-r--r--training/dtrain/example/toy/weights6
6 files changed, 19 insertions, 0 deletions
diff --git a/training/dtrain/example/toy/cdec.ini b/training/dtrain/example/toy/cdec.ini
new file mode 100644
index 00000000..b14f4819
--- /dev/null
+++ b/training/dtrain/example/toy/cdec.ini
@@ -0,0 +1,3 @@
+formalism=scfg
+add_pass_through_rules=true
+grammar=grammar.gz
diff --git a/training/dtrain/example/toy/dtrain.ini b/training/dtrain/example/toy/dtrain.ini
new file mode 100644
index 00000000..140b3a75
--- /dev/null
+++ b/training/dtrain/example/toy/dtrain.ini
@@ -0,0 +1,8 @@
+bitext=in
+k=4
+N=4
+iterations=2
+learning_rate=1
+output=weights
+decoder_conf=cdec.ini
+print_weights=logp shell_rule house_rule small_rule little_rule PassThrough PassThrough_1 PassThrough_2 PassThrough_3 PassThrough_4 PassThrough_5 PassThrough_6
diff --git a/training/dtrain/example/toy/expected-output b/training/dtrain/example/toy/expected-output
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/training/dtrain/example/toy/expected-output
diff --git a/training/dtrain/example/toy/grammar.gz b/training/dtrain/example/toy/grammar.gz
new file mode 100644
index 00000000..8eb0d29e
--- /dev/null
+++ b/training/dtrain/example/toy/grammar.gz
Binary files differ
diff --git a/training/dtrain/example/toy/in b/training/dtrain/example/toy/in
new file mode 100644
index 00000000..5d70795d
--- /dev/null
+++ b/training/dtrain/example/toy/in
@@ -0,0 +1,2 @@
+ich sah ein kleines haus ||| i saw a little house
+ich fand ein kleines haus ||| i found a little house
diff --git a/training/dtrain/example/toy/weights b/training/dtrain/example/toy/weights
new file mode 100644
index 00000000..5c1931ff
--- /dev/null
+++ b/training/dtrain/example/toy/weights
@@ -0,0 +1,6 @@
+house_rule 4
+shell_rule -2
+small_rule -1
+little_rule 3
+Glue -8
+PassThrough -10