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

WordLattice2.h « src « moses - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 79244585f13e5094442a1ec54c4b7341b7902d33 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
//  WordLattice2.h
//  moses
//
//  Created by Hieu Hoang on 30/10/2011.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#ifndef moses_WordLattice2_h
#define moses_WordLattice2_h

#include "InputType.h"

namespace Moses
{

class WordLattice2 : public InputType
{

public:
  InputTypeEnum GetType() const 
  { return WordLatticeInput2; }
  
  virtual size_t GetSize() const;
  
  //! populate this InputType with data from in stream
  virtual int Read(std::istream& in,const std::vector<FactorType>& factorOrder);

  //! Output debugging info to stream out
  virtual void Print(std::ostream&) const;
  
  //! create trans options specific to this InputType
  virtual TranslationOptionCollection* CreateTranslationOptionCollection(const TranslationSystem* system) const;
  
  //! return substring. Only valid for Sentence class. TODO - get rid of this fn
  virtual Phrase GetSubString(const WordsRange&) const;
  
  //! return substring at a particular position. Only valid for Sentence class. TODO - get rid of this fn
  virtual const Word& GetWord(size_t pos) const;

  virtual const NonTerminalSet &GetLabelSet(size_t startPos, size_t endPos) const;

  
};

}

#endif