diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2010-12-22 08:49:18 -0600 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2010-12-22 08:49:18 -0600 |
commit | 86805dcb8aaaa716fdc73725ad41e411be53f6a6 (patch) | |
tree | 4d3cf9d479388d65447c0bd25b012fc9f247e360 /tests/system_tests/tagger | |
parent | 491848839c0340f6c629ebae7ed6b6dc1a3842ad (diff) |
clean up names of feature functions, fix tagger, fix tests
Diffstat (limited to 'tests/system_tests/tagger')
-rw-r--r-- | tests/system_tests/tagger/cdec.ini | 6 | ||||
-rw-r--r-- | tests/system_tests/tagger/gold.statistics | 12 | ||||
-rw-r--r-- | tests/system_tests/tagger/gold.stdout | 2 | ||||
-rw-r--r-- | tests/system_tests/tagger/input.txt | 2 | ||||
-rw-r--r-- | tests/system_tests/tagger/weights | 54 |
5 files changed, 45 insertions, 31 deletions
diff --git a/tests/system_tests/tagger/cdec.ini b/tests/system_tests/tagger/cdec.ini index 15cc930d..e11e6878 100644 --- a/tests/system_tests/tagger/cdec.ini +++ b/tests/system_tests/tagger/cdec.ini @@ -1,5 +1,5 @@ formalism=tagger -feature_function=Tagger_BigramIdentity -feature_function=LexicalPairIdentity +feature_function=Tagger_BigramIndicator +feature_function=LexicalPairIndicator intersection_strategy=full -tagger_tagset=tagset
\ No newline at end of file +tagger_tagset=tagset diff --git a/tests/system_tests/tagger/gold.statistics b/tests/system_tests/tagger/gold.statistics new file mode 100644 index 00000000..a86584aa --- /dev/null +++ b/tests/system_tests/tagger/gold.statistics @@ -0,0 +1,12 @@ +-lm_nodes 6 +-lm_edges 12 +-lm_paths 27 ++lm_nodes 16 ++lm_edges 30 ++lm_paths 27 +-lm_nodes 2 +-lm_edges 4 +-lm_paths 3 ++lm_nodes 4 ++lm_edges 6 ++lm_paths 3 diff --git a/tests/system_tests/tagger/gold.stdout b/tests/system_tests/tagger/gold.stdout new file mode 100644 index 00000000..0dc9a4ec --- /dev/null +++ b/tests/system_tests/tagger/gold.stdout @@ -0,0 +1,2 @@ +c c c +c diff --git a/tests/system_tests/tagger/input.txt b/tests/system_tests/tagger/input.txt index fe5cb58d..b6cfc776 100644 --- a/tests/system_tests/tagger/input.txt +++ b/tests/system_tests/tagger/input.txt @@ -1,2 +1,2 @@ A B C -A
\ No newline at end of file +A diff --git a/tests/system_tests/tagger/weights b/tests/system_tests/tagger/weights index 5a035c26..df9adc7b 100644 --- a/tests/system_tests/tagger/weights +++ b/tests/system_tests/tagger/weights @@ -1,27 +1,27 @@ -Uni:a 0 -Id:A:a 0 -Uni:b 0 -Id:A:b 0 -Uni:c 0 -Id:A:c 0 -Id:B:a 0 -Id:B:b 0 -Id:B:c 0 -Bi:BOS_a 0 -Bi:a_a 0 -Bi:BOS_b 0 -Bi:b_a 0 -Bi:BOS_c 0 -Bi:c_a 0 -Bi:a_b 0 -Bi:b_b 0 -Bi:c_b 0 -Bi:a_c 0 -Bi:b_c 0 -Bi:c_c 0 -Id:C:a 0 -Id:C:b 0 -Id:C:c 0 -Bi:a_EOS 0 -Bi:b_EOS 0 -Bi:c_EOS 0 +Uni:a 0.1 +Id:A:a 0.2 +Uni:b 0.321 +Id:A:b -0.2 +Uni:c 0.54 +Id:A:c 0.7 +Id:B:a 0.13 +Id:B:b 0.14 +Id:B:c 0.15 +Bi:BOS_a 0.16 +Bi:a_a 0.27 +Bi:BOS_b 0.18 +Bi:b_a 0.19 +Bi:BOS_c 0.22 +Bi:c_a 0.23 +Bi:a_b 0.24 +Bi:b_b 0.25 +Bi:c_b 0.26 +Bi:a_c 0.27 +Bi:b_c 0.28 +Bi:c_c 0.29 +Id:C:a 0.41 +Id:C:b 0.42 +Id:C:c 0.43 +Bi:a_EOS 0.44 +Bi:b_EOS 0.45 +Bi:c_EOS 0.98 |