diff options
author | Chris Dyer <redpony@gmail.com> | 2009-12-26 19:41:11 -0600 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2009-12-26 19:41:11 -0600 |
commit | a8a6ba7789074cd87b197a3d43da82ec11c3f4b5 (patch) | |
tree | 0f493f0ebd69f0c46cd51379e98f1e18d1e6269d /decoder/hg.h | |
parent | 9620eba30344f9f50f3a836cb3a736a9268e76f8 (diff) |
add inside algorithm pass in pruning (prevents parent nodes that are underivable from hanging around)
Diffstat (limited to 'decoder/hg.h')
-rw-r--r-- | decoder/hg.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/decoder/hg.h b/decoder/hg.h index af8d38d2..77d76cc3 100644 --- a/decoder/hg.h +++ b/decoder/hg.h @@ -156,7 +156,9 @@ class Hypergraph { void RemoveNoncoaccessibleStates(int goal_node_id = -1); // remove edges from the hypergraph if prune_edge[edge_id] is true - void PruneEdges(const std::vector<bool>& prune_edge); + // TODO need to investigate why this shouldn't be run for the forest trans + // case. To investigate, change false to true and see where ftrans crashes + void PruneEdges(const std::vector<bool>& prune_edge, bool run_inside_algorithm = false); // if you don't know, use_sum_prod_semiring should be false void DensityPruneInsideOutside(const double scale, const bool use_sum_prod_semiring, const double density, |