Moses::SpanLengthPhraseProperty Class Reference

#include <SpanLengthPhraseProperty.h>

Inheritance diagram for Moses::SpanLengthPhraseProperty:

Inheritance graph
[legend]
Collaboration diagram for Moses::SpanLengthPhraseProperty:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SpanLengthPhraseProperty ()
void ProcessValue (const std::string &value)
float GetProb (size_t ntInd, size_t sourceWidth, float smoothing) const

Protected Types

typedef std::map< size_t, float > Map
typedef std::vector< std::pair
< Map, float > > 
Vec

Protected Member Functions

void Populate (const std::set< std::vector< std::string > > &indices, float count)
void Populate (const std::vector< size_t > &toks, float count)
void Populate (Map &map, size_t span, float count)
void CalcTotals (Vec &vec)

Protected Attributes

Vec m_source
Vec m_target


Detailed Description

Definition at line 13 of file SpanLengthPhraseProperty.h.


Member Typedef Documentation

typedef std::map<size_t, float> Moses::SpanLengthPhraseProperty::Map [protected]

Definition at line 23 of file SpanLengthPhraseProperty.h.

typedef std::vector<std::pair<Map, float> > Moses::SpanLengthPhraseProperty::Vec [protected]

Definition at line 24 of file SpanLengthPhraseProperty.h.


Constructor & Destructor Documentation

Moses::SpanLengthPhraseProperty::SpanLengthPhraseProperty (  ) 

Definition at line 9 of file SpanLengthPhraseProperty.cpp.


Member Function Documentation

void Moses::SpanLengthPhraseProperty::CalcTotals ( Vec vec  )  [protected]

Definition at line 83 of file SpanLengthPhraseProperty.cpp.

Referenced by ProcessValue().

Here is the caller graph for this function:

float Moses::SpanLengthPhraseProperty::GetProb ( size_t  ntInd,
size_t  sourceWidth,
float  smoothing 
) const

Definition at line 99 of file SpanLengthPhraseProperty.cpp.

References m_source.

Referenced by Moses::SpanLength::EvaluateWithSourceContext().

Here is the caller graph for this function:

void Moses::SpanLengthPhraseProperty::Populate ( Map map,
size_t  span,
float  count 
) [protected]

Definition at line 71 of file SpanLengthPhraseProperty.cpp.

void Moses::SpanLengthPhraseProperty::Populate ( const std::vector< size_t > &  toks,
float  count 
) [protected]

Definition at line 55 of file SpanLengthPhraseProperty.cpp.

References m_source, m_target, and Populate().

Here is the call graph for this function:

void Moses::SpanLengthPhraseProperty::Populate ( const std::set< std::vector< std::string > > &  indices,
float  count 
) [protected]

Referenced by Populate(), and ProcessValue().

Here is the caller graph for this function:

void Moses::SpanLengthPhraseProperty::ProcessValue ( const std::string &  value  )  [virtual]

Reimplemented from Moses::PhraseProperty.

Definition at line 13 of file SpanLengthPhraseProperty.cpp.

References CalcTotals(), count, m_source, m_target, Populate(), Moses::Tokenize(), and UTIL_THROW_IF2.

Here is the call graph for this function:


Member Data Documentation

Definition at line 25 of file SpanLengthPhraseProperty.h.

Referenced by GetProb(), Populate(), and ProcessValue().

Definition at line 25 of file SpanLengthPhraseProperty.h.

Referenced by Populate(), and ProcessValue().


The documentation for this class was generated from the following files:

Generated on Thu Jul 6 00:33:29 2017 for Moses by  doxygen 1.5.9