From 19b59489bb600f438ad96f04ec5d5c5b6616c9c2 Mon Sep 17 00:00:00 2001 From: graehl Date: Wed, 11 Aug 2010 01:36:41 +0000 Subject: fixed encoding of NT in rhs: n as -n, in CFG::Init git-svn-id: https://ws10smt.googlecode.com/svn/trunk@508 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/cfg.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'decoder') diff --git a/decoder/cfg.cc b/decoder/cfg.cc index 0dfd04d5..f899765e 100755 --- a/decoder/cfg.cc +++ b/decoder/cfg.cc @@ -65,7 +65,7 @@ void CFG::Init(Hypergraph const& hg,bool target_side,bool copy_features,bool pus int n=nt_index(nvar,tails,target_side,w); ++nvar; if (push_weights) crp*=np[n]; - rhs_out[j]=n; + rhs_out[j]=-n; } } assert(nvar==er.Arity()); -- cgit v1.2.3