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

TargetConstituentBoundariesLeftPhraseProperty.h « PP « moses - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 33846fd164ca6519fe2733e72dd034280ef70412 (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
#pragma once

#include "moses/PP/PhraseProperty.h"
#include "moses/Factor.h"
#include "util/exception.hh"
#include <map>
#include <string>

namespace Moses
{

typedef std::map<const Factor*, float> TargetConstituentBoundariesLeftCollection;


class TargetConstituentBoundariesLeftPhraseProperty : public PhraseProperty
{
public:
  TargetConstituentBoundariesLeftPhraseProperty()
  {};

  virtual void ProcessValue(const std::string &value);

  const TargetConstituentBoundariesLeftCollection &GetCollection() const {
    return m_constituentsCollection;
  };

  virtual const std::string *GetValueString() const {
    UTIL_THROW2("TargetConstituentBoundariesLeftPhraseProperty: value string not available in this phrase property");
    return NULL;
  };

protected:

  virtual void Print(std::ostream& out) const;

  TargetConstituentBoundariesLeftCollection m_constituentsCollection;
};

} // namespace Moses