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
commitf6994142f7b6a874e8fb62fa279816d8d6e9eab1 (patch)
tree5f0b3d115b66dc610aaa5cba2cef1d0944c49e37 /decoder/hg.h
parentc909f7c76d07886a67f511a11baa510fd3c5fb3f (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();