From 8780a924a060ced3468b71a088409d5ef83fc985 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Fri, 4 Dec 2009 20:32:11 -0500 Subject: oops, forgot to add tests --- tests/system_tests/unsup-align/cdec.ini | 6 ++ tests/system_tests/unsup-align/gold.statistics | 96 ++++++++++++++++++++++ tests/system_tests/unsup-align/gold.stdout | 8 ++ tests/system_tests/unsup-align/input.txt | 8 ++ .../unsup-align/unsup-align.lex-grammar | 17 ++++ tests/system_tests/unsup-align/weights | 19 +++++ 6 files changed, 154 insertions(+) create mode 100644 tests/system_tests/unsup-align/cdec.ini create mode 100644 tests/system_tests/unsup-align/gold.statistics create mode 100644 tests/system_tests/unsup-align/gold.stdout create mode 100644 tests/system_tests/unsup-align/input.txt create mode 100644 tests/system_tests/unsup-align/unsup-align.lex-grammar create mode 100644 tests/system_tests/unsup-align/weights (limited to 'tests/system_tests/unsup-align') diff --git a/tests/system_tests/unsup-align/cdec.ini b/tests/system_tests/unsup-align/cdec.ini new file mode 100644 index 00000000..4016a201 --- /dev/null +++ b/tests/system_tests/unsup-align/cdec.ini @@ -0,0 +1,6 @@ +aligner=true +grammar=unsup-align.lex-grammar +cubepruning_pop_limit=1000000 +formalism=lexcrf +feature_function=RelativeSentencePosition +feature_function=MarkovJump diff --git a/tests/system_tests/unsup-align/gold.statistics b/tests/system_tests/unsup-align/gold.statistics new file mode 100644 index 00000000..afc49bfc --- /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 3 +constr_edges 3 +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 3 +constr_edges 3 +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 8 +constr_edges 11 +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 8 +constr_edges 11 +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 8 +constr_edges 11 +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 3 +constr_edges 3 +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 8 +constr_edges 11 +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 end thet +constr_nodes 8 +constr_edges 11 +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..b94ab862 --- /dev/null +++ b/tests/system_tests/unsup-align/gold.stdout @@ -0,0 +1,8 @@ +0-0 +0-0 +0-0 1-1 +0-1 1-0 +0-0 1-1 +0-0 +0-0 1-1 +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 -- cgit v1.2.3