From bca9a8d79e565222898afbe98abf5ce5a1fe801b Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Tue, 24 Mar 2015 19:15:26 +0100 Subject: dtrain: fix example --- training/dtrain/example/toy/cdec.ini | 3 +++ training/dtrain/example/toy/dtrain.ini | 8 ++++++++ training/dtrain/example/toy/expected-output | 0 training/dtrain/example/toy/grammar.gz | Bin 0 -> 219 bytes training/dtrain/example/toy/in | 2 ++ training/dtrain/example/toy/weights | 6 ++++++ 6 files changed, 19 insertions(+) create mode 100644 training/dtrain/example/toy/cdec.ini create mode 100644 training/dtrain/example/toy/dtrain.ini create mode 100644 training/dtrain/example/toy/expected-output create mode 100644 training/dtrain/example/toy/grammar.gz create mode 100644 training/dtrain/example/toy/in create mode 100644 training/dtrain/example/toy/weights (limited to 'training/dtrain/example/toy') 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 diff --git a/training/dtrain/example/toy/grammar.gz b/training/dtrain/example/toy/grammar.gz new file mode 100644 index 00000000..8eb0d29e Binary files /dev/null and b/training/dtrain/example/toy/grammar.gz 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 -- cgit v1.2.3