blob: f67fe6e258989686042e8da4499bb02d34719992 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
|