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

SentenceWithCandidates.h « PhraseBased « moses2 - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 038fb5f1ea26fbcdbb60df0b6f371bc26f0f8cf1 (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
49
50
/*
 * SentenceWithCandidates.h
 *
 *  Created on: 14 Dec 2015
 *      Author: hieu
 */
#pragma once

#include <boost/property_tree/ptree.hpp>
#include <string>
#include "PhraseImpl.h"
#include "Sentence.h"
#include "../MemPool.h"
#include "../pugixml.hpp"
#include "../legacy/Util2.h"

namespace Moses2
{
class FactorCollection;
class System;

class SentenceWithCandidates: public Sentence
{
public:

  static const std::string INPUT_PART_DELIM;
  static const std::string PT_LINE_DELIM;

  static SentenceWithCandidates *CreateFromString(MemPool &pool, FactorCollection &vocab,
                                    const System &system, const std::string &str);

  SentenceWithCandidates(MemPool &pool, size_t size)
    :Sentence(pool, size)
  {}

  virtual ~SentenceWithCandidates()
  {}

  virtual std::string Debug(const System &system) const;
  std::string virtual getPhraseTableString() const{
    return m_phraseTableString; 
  }

private:
  std::string m_phraseTableString;

};

} /* namespace Moses2 */