summaryrefslogtreecommitdiff
path: root/decoder/hg_remove_eps.h
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2012-07-28 18:35:11 -0400
committerChris Dyer <cdyer@cs.cmu.edu>2012-07-28 18:35:11 -0400
commit16d0e2a34df3e32e8992aeda3ad2de7a6e525f14 (patch)
treeb7fb0f5b0de309a08ba1bde504ed9067e1aabaa3 /decoder/hg_remove_eps.h
parentb81b2e85bdfd5e9dda98a6e448e6354ca0c6d26b (diff)
slight improvement to the way NTs are handled in the FST-CFG composition algorithm, new rescoring mode
Diffstat (limited to 'decoder/hg_remove_eps.h')
-rw-r--r--decoder/hg_remove_eps.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/decoder/hg_remove_eps.h b/decoder/hg_remove_eps.h
new file mode 100644
index 00000000..82f06039
--- /dev/null
+++ b/decoder/hg_remove_eps.h
@@ -0,0 +1,13 @@
+#ifndef _HG_REMOVE_EPS_H_
+#define _HG_REMOVE_EPS_H_
+
+#include "wordid.h"
+class Hypergraph;
+
+// This is not a complete implementation of the general algorithm for
+// doing this. It makes a few weird assumptions, for example, that
+// if some nonterminal X rewrites as eps, then that is the only thing
+// that it rewrites as. This needs to be fixed for the general case!
+void RemoveEpsilons(Hypergraph* g, WordID eps);
+
+#endif