#include <LMList.h>
Public Types | |
| typedef CollType::iterator | iterator |
| typedef CollType::const_iterator | const_iterator |
Public Member Functions | |
| const_iterator | begin () const |
| iterators | |
| const_iterator | end () const |
| size_t | size () const |
| LMList () | |
| void | CleanUp () |
| ~LMList () | |
| void | CalcScore (const Phrase &phrase, float &retFullScore, float &retNGramScore, float &retOOVScore, ScoreComponentCollection *breakdown) const |
| void | Add (LanguageModel *lm) |
| size_t | GetMinIndex () const |
| size_t | GetMaxIndex () const |
Protected Types | |
| typedef std::list < LanguageModel * > | CollType |
Protected Attributes | |
| CollType | m_coll |
| size_t | m_minInd |
| size_t | m_maxInd |
Definition at line 15 of file LMList.h.
typedef std::list< LanguageModel* > Moses::LMList::CollType [protected] |
| typedef CollType::const_iterator Moses::LMList::const_iterator |
| typedef CollType::iterator Moses::LMList::iterator |
| Moses::LMList::~LMList | ( | ) |
Definition at line 32 of file LMList.cpp.
| void Moses::LMList::Add | ( | LanguageModel * | lm | ) |
Definition at line 74 of file LMList.cpp.
References Moses::ScoreIndexManager::GetBeginIndex(), Moses::ScoreIndexManager::GetEndIndex(), Moses::ScoreProducer::GetScoreBookkeepingID(), Moses::StaticData::GetScoreIndexManager(), Moses::StaticData::Instance(), m_coll, m_maxInd, and m_minInd.
Referenced by Moses::TranslationSystem::AddLanguageModel(), and Moses::StaticData::LoadLanguageModels().


| const_iterator Moses::LMList::begin | ( | ) | const [inline] |
iterators
Definition at line 27 of file LMList.h.
References m_coll.
Referenced by CalcScore(), Moses::TranslationSystem::CleanUpAfterSentenceProcessing(), Moses::TranslationSystem::InitializeBeforeSentenceProcessing(), Moses::StaticData::LoadData(), Moses::OutputWordGraph(), and TranslationAnalysis::PrintTranslationAnalysis().

| void Moses::LMList::CalcScore | ( | const Phrase & | phrase, | |
| float & | retFullScore, | |||
| float & | retNGramScore, | |||
| float & | retOOVScore, | |||
| ScoreComponentCollection * | breakdown | |||
| ) | const |
Definition at line 41 of file LMList.cpp.
References Moses::ScoreComponentCollection::Assign(), begin(), Moses::LanguageModel::CalcScore(), end(), Moses::LanguageModel::GetOOVWeight(), Moses::LanguageModel::GetWeight(), Moses::StaticData::Instance(), and Moses::LanguageModel::Useable().
Referenced by Moses::TranslationOption::CalcScore().


| void Moses::LMList::CleanUp | ( | ) |
Definition at line 36 of file LMList.cpp.
References m_coll, and Moses::RemoveAllInColl().
Referenced by Moses::StaticData::~StaticData().


| const_iterator Moses::LMList::end | ( | ) | const [inline] |
Definition at line 30 of file LMList.h.
References m_coll.
Referenced by CalcScore(), Moses::TranslationSystem::CleanUpAfterSentenceProcessing(), Moses::TranslationSystem::InitializeBeforeSentenceProcessing(), Moses::StaticData::LoadData(), and Moses::OutputWordGraph().

| size_t Moses::LMList::GetMaxIndex | ( | ) | const [inline] |
Definition at line 51 of file LMList.h.
References m_maxInd.
Referenced by Moses::ScoreComponentCollection::PlusEqualsAllLM(), and Moses::ScoreComponentCollection::ZeroAllLM().

| size_t Moses::LMList::GetMinIndex | ( | ) | const [inline] |
Definition at line 48 of file LMList.h.
References m_minInd.
Referenced by Moses::ScoreComponentCollection::PlusEqualsAllLM(), and Moses::ScoreComponentCollection::ZeroAllLM().

| size_t Moses::LMList::size | ( | ) | const [inline] |
CollType Moses::LMList::m_coll [protected] |
size_t Moses::LMList::m_maxInd [protected] |
size_t Moses::LMList::m_minInd [protected] |
1.5.9