From 9a8cbe4db88e63378b6d3c4ec96438819f1f1131 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Thu, 9 Dec 2010 17:04:29 -0500 Subject: major refactor of markov features for word alignment --- word-aligner/support/generate_word_pair_features.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'word-aligner/support') diff --git a/word-aligner/support/generate_word_pair_features.pl b/word-aligner/support/generate_word_pair_features.pl index b28f6feb..54b89ce1 100755 --- a/word-aligner/support/generate_word_pair_features.pl +++ b/word-aligner/support/generate_word_pair_features.pl @@ -92,7 +92,7 @@ my $ADD_ID = 1; my $ADD_PUNC = 1; my $ADD_NULL = 1; my $ADD_MODEL1 = 1; -my $ADD_NOMODEL1 = 1; +my $ADD_NOMODEL1 = 0; my $BEAM_RATIO = 50; my $BIN_ORTHO = 1; my $BIN_DLEN = 1; @@ -171,7 +171,7 @@ for my $f (sort keys %fdict) { } if ($im1 > $MIN_MAGNITUDE) { push @feats, "InvModel1=$im1" if $im1; - } else { + } elsif ($ADD_NOMODEL1) { push @feats, 'NoInvModel1=1'; } my $am1 = sprintf("%.5g", sqrt($m1 * $im1)); -- cgit v1.2.3