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/australia/australia.scfg.gz | Bin 0 -> 564058 bytes tests/system_tests/australia/cdec.ini | 2 ++ tests/system_tests/australia/gold.statistics | 8 ++++++++ tests/system_tests/australia/gold.stdout | 0 tests/system_tests/australia/input.txt | 1 + tests/system_tests/australia/stderr | 22 ++++++++++++++++++++++ tests/system_tests/australia/weights | 7 +++++++ 7 files changed, 40 insertions(+) create mode 100644 tests/system_tests/australia/australia.scfg.gz create mode 100644 tests/system_tests/australia/cdec.ini create mode 100644 tests/system_tests/australia/gold.statistics create mode 100644 tests/system_tests/australia/gold.stdout create mode 100644 tests/system_tests/australia/input.txt create mode 100644 tests/system_tests/australia/stderr create mode 100644 tests/system_tests/australia/weights (limited to 'tests/system_tests/australia') diff --git a/tests/system_tests/australia/australia.scfg.gz b/tests/system_tests/australia/australia.scfg.gz new file mode 100644 index 00000000..0cd70f1f Binary files /dev/null and b/tests/system_tests/australia/australia.scfg.gz differ diff --git a/tests/system_tests/australia/cdec.ini b/tests/system_tests/australia/cdec.ini new file mode 100644 index 00000000..dfc3cb20 --- /dev/null +++ b/tests/system_tests/australia/cdec.ini @@ -0,0 +1,2 @@ +formalism=scfg +grammar=australia.scfg.gz diff --git a/tests/system_tests/australia/gold.statistics b/tests/system_tests/australia/gold.statistics new file mode 100644 index 00000000..050d12dd --- /dev/null +++ b/tests/system_tests/australia/gold.statistics @@ -0,0 +1,8 @@ +-lm_nodes 77 +-lm_edges 244232 +-lm_paths 3.79555e+28 +-lm_trans australia is have diplomatic relations with north korea one of the few countries . +-lm_viterbi -12.7893 +constr_nodes 185 +constr_edges 827 +constr_paths 279358 diff --git a/tests/system_tests/australia/gold.stdout b/tests/system_tests/australia/gold.stdout new file mode 100644 index 00000000..e69de29b diff --git a/tests/system_tests/australia/input.txt b/tests/system_tests/australia/input.txt new file mode 100644 index 00000000..f14bf535 --- /dev/null +++ b/tests/system_tests/australia/input.txt @@ -0,0 +1 @@ +澳洲 是 与 北韩 有 邦交 的 少数 国家 之一 。 ||| ((('australia',0,1),),(('is',0,1),),(('one',0,1),),(('of',0,1),),(('the',0,4),('a',0,4),('a',0,1),('the',0,1),),(('small',0,1),('tiny',0,1),('miniscule',0,1),('handful',0,2),),(('number',0,1),('group',0,1),),(('of',0,2),),(('few',0,1),),(('countries',0,1),),(('that',0,1),),(('has',0,1),('have',0,1),),(('diplomatic',0,1),),(('relations',0,1),),(('with',0,1),),(('north',0,1),),(('korea',0,1),),(('.',0,1),),) diff --git a/tests/system_tests/australia/stderr b/tests/system_tests/australia/stderr new file mode 100644 index 00000000..c41fb9fb --- /dev/null +++ b/tests/system_tests/australia/stderr @@ -0,0 +1,22 @@ +cdec v1.0 (c) 2009 by Chris Dyer +Configuration file: cdec.ini +Reading SCFG grammar from australia.scfg.gz + 33737 rules read. +Reading weights from weights +Loaded 7 feature weights +Reading input from input.txt + +INPUT: 澳洲 是 与 北韩 有 邦交 的 少数 国家 之一 。 ||| ... + id = 0 + Goal category: [S] + ........... + -LM forest (nodes/edges): 77/244232 + -LM forest (paths): 3.79555e+28 + -LM Viterbi: australia is have diplomatic relations with north korea one of the few countries . + -LM Viterbi: -12.7893 + Goal category: [CAT_76] + .................. + Constr. forest (nodes/edges): 185/827 + Constr. forest (paths): 279358 + Constr. VitTree: (CAT_76 (CAT_75 (CAT_1 (CAT_0 australia)) (CAT_74 is (CAT_31 one of (CAT_20 a few countries)) that (CAT_36 have diplomatic relations (CAT_15 with north korea)) .))) +Translation: 2.69099 secs (1 calls) diff --git a/tests/system_tests/australia/weights b/tests/system_tests/australia/weights new file mode 100644 index 00000000..a280184c --- /dev/null +++ b/tests/system_tests/australia/weights @@ -0,0 +1,7 @@ +WordPenalty -2.844814 +LanguageModel 1.0 +PhraseModel_0 -1.066893 +PhraseModel_1 -0.752247 +PhraseModel_2 -0.589793 +PassThrough -20.0 +Glue 0 -- cgit v1.2.3