diff options
Diffstat (limited to 'tests/system_tests/unsup-align')
-rw-r--r-- | tests/system_tests/unsup-align/cdec.ini | 6 | ||||
-rw-r--r-- | tests/system_tests/unsup-align/gold.statistics | 96 | ||||
-rw-r--r-- | tests/system_tests/unsup-align/gold.stdout | 8 | ||||
-rw-r--r-- | tests/system_tests/unsup-align/input.txt | 8 | ||||
-rw-r--r-- | tests/system_tests/unsup-align/unsup-align.lex-grammar | 17 | ||||
-rw-r--r-- | tests/system_tests/unsup-align/weights | 19 |
6 files changed, 154 insertions, 0 deletions
diff --git a/tests/system_tests/unsup-align/cdec.ini b/tests/system_tests/unsup-align/cdec.ini new file mode 100644 index 00000000..885338a6 --- /dev/null +++ b/tests/system_tests/unsup-align/cdec.ini @@ -0,0 +1,6 @@ +aligner=true +grammar=unsup-align.lex-grammar +intersection_strategy=full +formalism=lextrans +feature_function=RelativeSentencePosition +feature_function=MarkovJump -b diff --git a/tests/system_tests/unsup-align/gold.statistics b/tests/system_tests/unsup-align/gold.statistics new file mode 100644 index 00000000..975c9d4e --- /dev/null +++ b/tests/system_tests/unsup-align/gold.statistics @@ -0,0 +1,96 @@ +-lm_nodes 2 +-lm_edges 3 +-lm_paths 2 +-lm_trans blue +-lm_trans 0.4528 ++lm_nodes 2 ++lm_edges 3 ++lm_paths 2 ++lm_trans blue +constr_nodes 2 +constr_edges 2 +constr_paths 1 +-lm_nodes 2 +-lm_edges 4 +-lm_paths 3 +-lm_trans house +-lm_trans 0.673643 ++lm_nodes 2 ++lm_edges 4 ++lm_paths 3 ++lm_trans house +constr_nodes 2 +constr_edges 2 +constr_paths 1 +-lm_nodes 4 +-lm_edges 16 +-lm_paths 49 +-lm_trans the the +-lm_viterbi 1.42559 ++lm_nodes 7 ++lm_edges 20 ++lm_paths 49 ++lm_trans the house +constr_nodes 7 +constr_edges 10 +constr_paths 4 +-lm_nodes 4 +-lm_edges 12 +-lm_paths 25 +-lm_trans house house +-lm_viterbi 1.34729 ++lm_nodes 7 ++lm_edges 16 ++lm_paths 25 ++lm_trans house blue +constr_nodes 7 +constr_edges 10 +constr_paths 4 +-lm_nodes 4 +-lm_edges 14 +-lm_paths 36 +-lm_trans the the +-lm_viterbi 1.42559 ++lm_nodes 7 ++lm_edges 18 ++lm_paths 36 ++lm_trans the the +constr_nodes 7 +constr_edges 10 +constr_paths 4 +-lm_nodes 2 +-lm_edges 5 +-lm_paths 4 +-lm_trans the +-lm_trans 0.712796 ++lm_nodes 2 ++lm_edges 5 ++lm_paths 4 ++lm_trans the +constr_nodes 2 +constr_edges 2 +constr_paths 1 +-lm_nodes 4 +-lm_edges 14 +-lm_paths 36 +-lm_trans the the +-lm_viterbi 1.42559 ++lm_nodes 7 ++lm_edges 18 ++lm_paths 36 ++lm_trans the the +constr_nodes 7 +constr_edges 10 +constr_paths 4 +-lm_nodes 4 +-lm_edges 10 +-lm_paths 16 +-lm_trans thet thet +-lm_trans 0 ++lm_nodes 7 ++lm_edges 14 ++lm_paths 16 ++lm_trans thet thet +constr_nodes 7 +constr_edges 10 +constr_paths 4 diff --git a/tests/system_tests/unsup-align/gold.stdout b/tests/system_tests/unsup-align/gold.stdout new file mode 100644 index 00000000..6203b462 --- /dev/null +++ b/tests/system_tests/unsup-align/gold.stdout @@ -0,0 +1,8 @@ +bleue ||| blue ||| 0-0 +maison ||| house ||| 0-0 +la maison ||| the house ||| 0-0 1-1 +maison bleue ||| blue house ||| 0-1 1-0 +la fleur ||| the flower ||| 0-0 1-1 +la ||| the ||| 0-0 +la bouche ||| the mouth ||| 0-0 1-1 +le fin ||| thet end ||| 0-0 1-1 diff --git a/tests/system_tests/unsup-align/input.txt b/tests/system_tests/unsup-align/input.txt new file mode 100644 index 00000000..b97f81cf --- /dev/null +++ b/tests/system_tests/unsup-align/input.txt @@ -0,0 +1,8 @@ +bleue ||| blue +maison ||| house +la maison ||| the house +maison bleue ||| blue house +la fleur ||| the flower +la ||| the +la bouche ||| the mouth +le fin ||| thet end diff --git a/tests/system_tests/unsup-align/unsup-align.lex-grammar b/tests/system_tests/unsup-align/unsup-align.lex-grammar new file mode 100644 index 00000000..30b1a61a --- /dev/null +++ b/tests/system_tests/unsup-align/unsup-align.lex-grammar @@ -0,0 +1,17 @@ +bleue ||| blue ||| F1000001=1 +bleue ||| house ||| F1000002=1 +bouche ||| the ||| F1000003=1 +bouche ||| mouth ||| F1000004=1 +fin ||| thet ||| F1000005=1 +fin ||| end ||| F1000006=1 +fleur ||| the ||| F1000007=1 +fleur ||| flower ||| F1000008=1 +la ||| the ||| F1000009=1 +la ||| house ||| F1000010=1 +la ||| flower ||| F1000011=1 +la ||| mouth ||| F1000012=1 +le ||| thet ||| F1000013=1 +le ||| end ||| F1000014=1 +maison ||| house ||| F1000015=1 +maison ||| the ||| F1000016=1 +maison ||| blue ||| F1000017=1 diff --git a/tests/system_tests/unsup-align/weights b/tests/system_tests/unsup-align/weights new file mode 100644 index 00000000..7d9012c5 --- /dev/null +++ b/tests/system_tests/unsup-align/weights @@ -0,0 +1,19 @@ +RelativeSentencePosition -0.1 +MarkovJump -0.2 +F1000001 0.45280036748928199 +F1000002 -0.30603801277140658 +F1000003 0.0087200168696079348 +F1000004 0.25201383750998718 +F1000005 0 +F1000006 0 +F1000007 0.0087200038242073886 +F1000008 0.25201333505199081 +F1000009 0.7127956550520711 +F1000010 -0.4803381673023227 +F1000011 -0.42444387021307117 +F1000012 -0.42444295555037082 +F1000013 0 +F1000014 0 +F1000015 0.67364292245615709 +F1000016 -0.38087265233441997 +F1000017 -0.34457059973906817 |