summaryrefslogtreecommitdiff
path: root/decoder
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-11 01:36:41 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-11 01:36:41 +0000
commit19b59489bb600f438ad96f04ec5d5c5b6616c9c2 (patch)
tree04c20231cca6a56d616999a0d70fa5dd90ee9a43 /decoder
parent73afb7c218f7a10c38a58772a1530a7a99047b90 (diff)
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
Diffstat (limited to 'decoder')
-rwxr-xr-xdecoder/cfg.cc2
1 files changed, 1 insertions, 1 deletions
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());