diff options
Diffstat (limited to 'scripts/training/filter-pt.2/LatticeNode.h')
-rw-r--r-- | scripts/training/filter-pt.2/LatticeNode.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/training/filter-pt.2/LatticeNode.h b/scripts/training/filter-pt.2/LatticeNode.h new file mode 100644 index 000000000..8565f320d --- /dev/null +++ b/scripts/training/filter-pt.2/LatticeNode.h @@ -0,0 +1,23 @@ +/* + * LatticeNode.h + * extract + * + * Created by Hieu Hoang on 07/12/2010. + * Copyright 2010 __MyCompanyName__. All rights reserved. + * + */ +#include <string> +#include <map> +#include "SyntaxTree.h" + +class LatticeNode +{ + std::map<std::string, LatticeNode> m_coll; + +public: + void Add(const std::vector<std::string> &toks, const SyntaxTree &tree, size_t startPos, size_t numSymbols, size_t numNonTerms); + + bool Include(const std::vector<std::string> &toks, size_t pos) const; + +}; + |