Skip to content

Commit

Permalink
random sampling trees fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Dyer committed Aug 8, 2012
1 parent bc2992b commit cc5584e
Show file tree
Hide file tree
Showing 2 changed files with 2,180 additions and 2,465 deletions.
2 changes: 1 addition & 1 deletion decoder/hg_sampler.cc
Expand Up @@ -122,7 +122,7 @@ void HypergraphSampler::sample_trees(const Hypergraph& hg,
} }
vector<WordID> tmp; vector<WordID> tmp;
Viterbi(hg, &tmp, ETreeTraversal(), SampledDerivationWeightFunction(sampled_edges)); Viterbi(hg, &tmp, ETreeTraversal(), SampledDerivationWeightFunction(sampled_edges));
(*trees)[n] = TD::GetString(tmp); (*trees)[i] = TD::GetString(tmp);
} }
} }


0 comments on commit cc5584e

Please sign in to comment.