diff options
Diffstat (limited to 'rescore/cdec_kbest_to_zmert.pl')
-rwxr-xr-x | rescore/cdec_kbest_to_zmert.pl | 3 |
1 files changed, 2 insertions, 1 deletions
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(<W>) { 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(<HYP>) { |