Welcome to mirror list, hosted at ThFree Co, Russian Federation.

LatticeNode.h « filter-pt « training « scripts - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c7e889458abb5099a39b49f788d17a9b63731358 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 *  LatticeNode.h
 *  extract
 *
 *  Created by Hieu Hoang on 07/12/2010.
 *  Copyright 2010 __MyCompanyName__. All rights reserved.
 *
 */
#include <string>
#include <map>
#include "SyntaxTree.h"
#include "Vocab.h"

class LatticeNode
{
	std::map<const 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
           , Vocab &vocab);

	bool Include(const std::vector<std::string> &toks, size_t pos, Vocab &vocab) const;

};