Permalink
Browse files

random sampling trees fix

  • Loading branch information...
1 parent bc2992b commit cc5584e9b066e6d1177495f7028ff49ab057ed52 Chris Dyer committed Aug 8, 2012
Showing with 2,180 additions and 2,465 deletions.
  1. +1 −1 decoder/hg_sampler.cc
  2. +2,179 −2,464 python/src/_cdec.cpp
View
@@ -122,7 +122,7 @@ void HypergraphSampler::sample_trees(const Hypergraph& hg,
}
vector<WordID> tmp;
Viterbi(hg, &tmp, ETreeTraversal(), SampledDerivationWeightFunction(sampled_edges));
- (*trees)[n] = TD::GetString(tmp);
+ (*trees)[i] = TD::GetString(tmp);
}
}
Oops, something went wrong.

0 comments on commit cc5584e

Please sign in to comment.