diff options
author | Chris Dyer <redpony@gmail.com> | 2014-04-25 23:45:32 -0400 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2014-04-25 23:45:32 -0400 |
commit | d033a045aa46ff876ad2c9f6929e2095b2481cdf (patch) | |
tree | bb693517c49960220de449fa7828b28746514e2e /decoder/hg.h | |
parent | 18a1d98f5bd60ea195a6c3aaf8feb740da752f7e (diff) |
check for non-rescorable hypergraphs
Diffstat (limited to 'decoder/hg.h')
-rw-r--r-- | decoder/hg.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/decoder/hg.h b/decoder/hg.h index 43fb275b..4ed27d87 100644 --- a/decoder/hg.h +++ b/decoder/hg.h @@ -268,6 +268,10 @@ public: // if all node states are unique, return true bool AreNodesUniquelyIdentified() const; + // the feature function interface assumes that pre-goal edges are + // arity 1 (this simplifies the "final transition" feature computation) + bool ArePreGoalEdgesArity1() const; + // reserves space in the nodes vector to prevent memory locations // from changing void ReserveNodes(size_t n, size_t e = 0) { |