Moses::PhraseDictionaryTreeAdaptor Class Reference

#include <PhraseDictionaryTreeAdaptor.h>

Inheritance diagram for Moses::PhraseDictionaryTreeAdaptor:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PhraseDictionaryTreeAdaptor (size_t numScoreComponent, unsigned numInputScores, const PhraseDictionaryFeature *feature)
virtual ~PhraseDictionaryTreeAdaptor ()
void EnableCache ()
void DisableCache ()
bool Load (const std::vector< FactorType > &input, const std::vector< FactorType > &output, const std::string &filePath, const std::vector< float > &weight, size_t tableLimit, const LMList &languageModels, float weightWP)
TargetPhraseCollection const * GetTargetPhraseCollection (Phrase const &src) const
 find list of translations that can translates src. Only for phrase input
TargetPhraseCollection const * GetTargetPhraseCollection (InputType const &src, WordsRange const &srcRange) const
 find list of translations that can translates a portion of src. Used by confusion network decoding
void SetWeightTransModel (const std::vector< float > &weightT)
void AddEquivPhrase (const Phrase &source, const TargetPhrase &targetPhrase)
 Create entry for translation of source to targetPhrase.
std::string GetScoreProducerDescription () const
std::string GetScoreProducerWeightShortName () const
size_t GetNumInputScores () const
virtual void InitializeForInput (InputType const &source)
const ChartRuleCollectionGetChartRuleCollection (InputType const &, WordsRange const &, bool, const CellCollection &) const

Friends

class PDTAimp


Constructor & Destructor Documentation

Moses::PhraseDictionaryTreeAdaptor::PhraseDictionaryTreeAdaptor ( size_t  numScoreComponent,
unsigned  numInputScores,
const PhraseDictionaryFeature feature 
)

Moses::PhraseDictionaryTreeAdaptor::~PhraseDictionaryTreeAdaptor (  )  [virtual]

References Moses::PDTAimp::CleanUp().

Here is the call graph for this function:


Member Function Documentation

void Moses::PhraseDictionaryTreeAdaptor::AddEquivPhrase ( const Phrase source,
const TargetPhrase targetPhrase 
) [virtual]

Create entry for translation of source to targetPhrase.

Implements Moses::PhraseDictionary.

References Moses::PDTAimp::AddEquivPhrase().

Here is the call graph for this function:

void Moses::PhraseDictionaryTreeAdaptor::DisableCache (  ) 

void Moses::PhraseDictionaryTreeAdaptor::EnableCache (  ) 

const ChartRuleCollection* Moses::PhraseDictionaryTreeAdaptor::GetChartRuleCollection ( InputType const &  ,
WordsRange const &  ,
bool  ,
const CellCollection  
) const [inline, virtual]

Implements Moses::PhraseDictionary.

References NULL.

size_t Moses::PhraseDictionaryTreeAdaptor::GetNumInputScores (  )  const

References Moses::PDTAimp::GetNumInputScores().

Here is the call graph for this function:

std::string Moses::PhraseDictionaryTreeAdaptor::GetScoreProducerDescription (  )  const

std::string Moses::PhraseDictionaryTreeAdaptor::GetScoreProducerWeightShortName (  )  const [inline]

TargetPhraseCollection const * Moses::PhraseDictionaryTreeAdaptor::GetTargetPhraseCollection ( InputType const &  src,
WordsRange const &  range 
) const [virtual]

find list of translations that can translates a portion of src. Used by confusion network decoding

Reimplemented from Moses::PhraseDictionary.

References Moses::WordsRange::GetEndPos(), Moses::WordsRange::GetStartPos(), Moses::InputType::GetSubString(), Moses::PDTAimp::GetTargetPhraseCollection(), and Moses::PDTAimp::m_rangeCache.

Here is the call graph for this function:

TargetPhraseCollection const * Moses::PhraseDictionaryTreeAdaptor::GetTargetPhraseCollection ( Phrase const &  src  )  const [virtual]

find list of translations that can translates src. Only for phrase input

Implements Moses::PhraseDictionary.

References Moses::PDTAimp::GetTargetPhraseCollection().

Here is the call graph for this function:

void Moses::PhraseDictionaryTreeAdaptor::InitializeForInput ( InputType const &  source  )  [virtual]

Implements Moses::PhraseDictionary.

References Moses::PDTAimp::CacheSource(), and Moses::PDTAimp::CleanUp().

Here is the call graph for this function:

bool Moses::PhraseDictionaryTreeAdaptor::Load ( const std::vector< FactorType > &  input,
const std::vector< FactorType > &  output,
const std::string &  filePath,
const std::vector< float > &  weight,
size_t  tableLimit,
const LMList languageModels,
float  weightWP 
)

void Moses::PhraseDictionaryTreeAdaptor::SetWeightTransModel ( const std::vector< float > &  weightT  )  [virtual]

set/change translation weights and recalc weighted score for each translation. TODO This may be redundant now we use ScoreCollection

Implements Moses::PhraseDictionary.

References Moses::Dictionary::CleanUp(), and Moses::PDTAimp::m_weights.

Here is the call graph for this function:


Friends And Related Function Documentation

friend class PDTAimp [friend]


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

Generated on Wed Sep 8 20:05:17 2010 for Moses by  doxygen 1.5.9