From 29ecb53257429d242d86b4814b795e5fef449785 Mon Sep 17 00:00:00 2001 From: redpony Date: Mon, 15 Nov 2010 21:41:29 +0000 Subject: better behavior git-svn-id: https://ws10smt.googlecode.com/svn/trunk@728 ec762483-ff6d-05da-a07a-a48fb63a330f --- rescore/cdec_kbest_to_zmert.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rescore/cdec_kbest_to_zmert.pl') diff --git a/rescore/cdec_kbest_to_zmert.pl b/rescore/cdec_kbest_to_zmert.pl index 02808572..88bc9682 100755 --- a/rescore/cdec_kbest_to_zmert.pl +++ b/rescore/cdec_kbest_to_zmert.pl @@ -20,15 +20,16 @@ if (GetOptions( open W, "<$feature_file" or die "Can't read $feature_file: $!"; my %weights; +my @all_feats; while() { chomp; next if /^#/; next if /^\s*$/; my ($fname, $w) = split /\s+/; + push @all_feats, $fname; $weights{$fname} = 1; } close W; -my @all_feats = sort keys %weights; open HYP, "<$hyp_file" or die "Can't read $hyp_file: $!"; while() { -- cgit v1.2.3