summaryrefslogtreecommitdiff
path: root/decoder/hg.h
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-01 23:08:34 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-01 23:08:34 +0000
commit70114f58324ff60de3d77a42d299e3bcf2c37450 (patch)
tree919088efabf013229c7acb5bd4de4f8045aa89b7 /decoder/hg.h
parente3aebfc755f7f1ceefe1eafcfff23bee9d08d2f3 (diff)
factor forest stats (show size post pruning, and portion kept) and cdec --scale_prune_srclen
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@96 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/hg.h')
-rw-r--r--decoder/hg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/decoder/hg.h b/decoder/hg.h
index 50c9048a..a632dc1c 100644
--- a/decoder/hg.h
+++ b/decoder/hg.h
@@ -178,6 +178,9 @@ class Hypergraph {
void BeamPruneInsideOutside(const double scale, const bool use_sum_prod_semiring, const double alpha,
const std::vector<bool>* preserve_mask = NULL);
+ // report nodes, edges, paths
+ std::string stats(std::string const& name="forest") const;
+
void clear() {
nodes_.clear();
edges_.clear();