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
commitdf4a193f16f6966c83c608adbb5b0680a626ce9f (patch)
tree09f414e8536b1d3fedd7fe75e3a41a59d7a9c394 /decoder/hg_remove_eps.h
parentec7b8d08993072030e4749d850ead9edaf9deb5c (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