summaryrefslogtreecommitdiff
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
commit3c85c407c333899f6b4bc26632d312b8e568b638 (patch)
tree87b00eca21cb1fb416a9d54fb6c1d4f9ff363fc1
parent5368e9dda4edf813618f3d5179973ff6a3c11b7a (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
-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());