#include <iostream>#include <string>#include "moses/Phrase.h"#include "moses/FactorCollection.h"#include "moses/Timer.h"#include "moses/InputFileStream.h"#include "moses/TranslationModel/CompactPT/BlockHashIndex.h"#include "moses/TranslationModel/CompactPT/CanonicalHuffman.h"#include "moses/TranslationModel/CompactPT/StringVector.h"Go to the source code of this file.
Typedefs | |
| typedef CanonicalHuffman< float > | ScoreTree | 
Functions | |
| void | Load (const string &filePath) | 
| std::string | MakeKey (const std::string &f, const std::string &e, const std::string &c) | 
| std::vector< float > | GetScore (const std::string &f, const std::string &e, const std::string &c) | 
| int | main (int argc, char **argv) | 
Variables | |
| Timer | timer | 
| FactorList | m_factorsF | 
| FactorList | m_factorsE | 
| FactorList | m_factorsC | 
| BlockHashIndex | m_hash (10, 16) | 
| size_t | m_numScoreComponent | 
| bool | m_multipleScoreTrees | 
| bool | m_inMemory = false | 
| std::vector< ScoreTree * > | m_scoreTrees | 
| StringVector< unsigned char,  unsigned long, MmapAllocator >  | m_scoresMapped | 
| StringVector< unsigned char,  unsigned long, std::allocator >  | m_scoresMemory | 
| typedef CanonicalHuffman<float> ScoreTree | 
Definition at line 24 of file addLexROtoPT.cpp.
| std::vector<float> GetScore | ( | const std::string & | f, | |
| const std::string & | e, | |||
| const std::string & | c | |||
| ) | 
Definition at line 86 of file addLexROtoPT.cpp.
References Moses::BlockHashIndex::GetSize(), index, key, m_hash, m_inMemory, m_multipleScoreTrees, m_numScoreComponent, m_scoreTrees, MakeKey(), and prob().
Referenced by Moses::getLatticeMBRNBest(), and main().


| void Load | ( | const string & | filePath | ) | 
Definition at line 31 of file addLexROtoPT.cpp.
References Moses::StringVector< ValueT, PosT, Allocator >::load(), Moses::BlockHashIndex::Load(), m_hash, m_inMemory, m_multipleScoreTrees, m_numScoreComponent, m_scoreTrees, NULL, read(), and UTIL_THROW_IF2.
Referenced by main().


| int main | ( | int | argc, | |
| char ** | argv | |||
| ) | 
Definition at line 119 of file addLexROtoPT.cpp.
References GetScore(), Load(), m_factorsE, m_factorsF, Moses::SPrint(), Moses::TokenizeMultiCharSeparator(), and Trim().

| std::string MakeKey | ( | const std::string & | f, | |
| const std::string & | e, | |||
| const std::string & | c | |||
| ) | 
Definition at line 65 of file addLexROtoPT.cpp.
References key, m_factorsC, and m_factorsE.
Referenced by GetScore().

| FactorList m_factorsC | 
| FactorList m_factorsE | 
| FactorList m_factorsF | 
| BlockHashIndex m_hash(10, 16) | 
Referenced by GetScore(), and Load().
| bool m_inMemory = false | 
| bool m_multipleScoreTrees | 
| size_t m_numScoreComponent | 
| StringVector<unsigned char, unsigned long, MmapAllocator> m_scoresMapped | 
Definition at line 27 of file addLexROtoPT.cpp.
| StringVector<unsigned char, unsigned long, std::allocator> m_scoresMemory | 
Definition at line 28 of file addLexROtoPT.cpp.
| std::vector<ScoreTree*> m_scoreTrees | 
Definition at line 15 of file addLexROtoPT.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and sapt::DocumentBias::DocumentBias().
 1.5.9