Moses::ChartTranslationOptions Class Reference

#include <ChartTranslationOptions.h>

Collaboration diagram for Moses::ChartTranslationOptions:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector
< boost::shared_ptr
< ChartTranslationOption > > 
CollType

Public Member Functions

 ChartTranslationOptions (const TargetPhraseCollection &targetPhraseColl, const StackVec &stackVec, const Range &range, float score)
 ~ChartTranslationOptions ()
size_t GetSize () const
const StackVecGetStackVec () const
const CollTypeGetTargetPhrases () const
const RangeGetSourceWordsRange () const
 the range in the source sentence this translation option covers
float GetEstimateOfBestScore () const
void EvaluateWithSourceContext (const InputType &input, const InputPath &inputPath)
void SetInputPath (const InputPath *inputPath)
void CreateSourceRuleFromInputPath ()

Static Public Member Functions

static float CalcEstimateOfBestScore (const TargetPhraseCollection &, const StackVec &)

Friends

std::ostream & operator<< (std::ostream &, const ChartTranslationOptions &)


Detailed Description

Similar to a DottedRule, but contains a direct reference to a list of translations and provdes an estimate of the best score. For a specific range in the input sentence

Definition at line 40 of file ChartTranslationOptions.h.


Member Typedef Documentation

typedef std::vector<boost::shared_ptr<ChartTranslationOption> > Moses::ChartTranslationOptions::CollType

Definition at line 45 of file ChartTranslationOptions.h.


Constructor & Destructor Documentation

Moses::ChartTranslationOptions::ChartTranslationOptions ( const TargetPhraseCollection targetPhraseColl,
const StackVec stackVec,
const Range range,
float  score 
)

Constructor

Parameters:
targetPhraseColl 
Todo:
dunno
Parameters:
stackVec 
Todo:
dunno
Parameters:
range the range in the source sentence this translation option covers
score 
Todo:
dunno

Definition at line 33 of file ChartTranslationOptions.cpp.

References Moses::TargetPhraseCollection::begin(), and Moses::TargetPhraseCollection::end().

Here is the call graph for this function:

Moses::ChartTranslationOptions::~ChartTranslationOptions (  ) 

Definition at line 50 of file ChartTranslationOptions.cpp.


Member Function Documentation

static float Moses::ChartTranslationOptions::CalcEstimateOfBestScore ( const TargetPhraseCollection ,
const StackVec  
) [static]

void Moses::ChartTranslationOptions::CreateSourceRuleFromInputPath (  ) 

void Moses::ChartTranslationOptions::EvaluateWithSourceContext ( const InputType input,
const InputPath inputPath 
)

float Moses::ChartTranslationOptions::GetEstimateOfBestScore (  )  const [inline]

return an estimate of the best score possible with this translation option. the estimate is the sum of the top target phrase's estimated score plus the scores of the best child hypotheses.

Definition at line 85 of file ChartTranslationOptions.h.

Referenced by Moses::ChartTranslationOptionList::ApplyThreshold(), and Moses::ChartTranslationOptionOrderer::operator()().

Here is the caller graph for this function:

size_t Moses::ChartTranslationOptions::GetSize (  )  const [inline]

Definition at line 62 of file ChartTranslationOptions.h.

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

Here is the caller graph for this function:

const Range& Moses::ChartTranslationOptions::GetSourceWordsRange (  )  const [inline]

the range in the source sentence this translation option covers

Definition at line 77 of file ChartTranslationOptions.h.

Referenced by Moses::ChartManager::AddXmlChartOptions().

Here is the caller graph for this function:

const StackVec& Moses::ChartTranslationOptions::GetStackVec (  )  const [inline]

Todo:
dunno

Definition at line 67 of file ChartTranslationOptions.h.

Referenced by Moses::RuleCubeItem::RuleCubeItem().

Here is the caller graph for this function:

const CollType& Moses::ChartTranslationOptions::GetTargetPhrases (  )  const [inline]

Todo:
isn't the translation suppose to just contain 1 target phrase, not a whole collection of them?

Definition at line 72 of file ChartTranslationOptions.h.

void Moses::ChartTranslationOptions::SetInputPath ( const InputPath inputPath  ) 

Definition at line 107 of file ChartTranslationOptions.cpp.

References Moses::ChartTranslationOption::SetInputPath().

Referenced by EvaluateWithSourceContext().

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const ChartTranslationOptions obj 
) [friend]

Definition at line 158 of file ChartTranslationOptions.cpp.


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

Generated on Thu Jul 6 00:32:56 2017 for Moses by  doxygen 1.5.9