Namespaces | |
| namespace | DistortionOrientationType |
| namespace | LanguageModelFactory |
| namespace | LexReorderType |
Classes | |
| class | AlignmentInfo |
| class | SAPhrase |
| class | PhrasePair |
| class | SentenceAlignment |
| class | ScoresComp |
| class | BilingualDynSuffixArray |
| class | HypothesisScoreOrdererNoDistortion |
| class | HypothesisScoreOrdererWithDistortion |
| class | HypothesisQueueItem |
| class | QueueItemOrderer |
| class | HypothesisScoreOrderer |
| class | BackwardsEdge |
| class | BitmapContainer |
| class | CellCollection |
| class | ChartRule |
| class | ChartRuleOrderer |
| class | ChartRuleCollection |
| a list of target phrases that is trsnalated from the same source phrase More... | |
| struct | CNStats |
| class | ConfusionNet |
| class | DecodeGraph |
| list of DecodeStep s which factorizes the translation More... | |
| class | DecodeStep |
| class | DecodeStepGeneration |
| subclass of DecodeStep for generation step More... | |
| class | DecodeStepTranslation |
| subclass of DecodeStep for translation step More... | |
| class | Dictionary |
| class | ProcessedRule |
| class | ProcessedRuleColl |
| class | SavedNode |
| class | ProcessedRuleStack |
| class | SavedNodesOderer |
| class | ProcessedRuleOnDisk |
| class | ProcessedRuleCollOnDisk |
| class | SavedNodeOnDisk |
| class | ProcessedRuleStackOnDisk |
| struct | DistortionState_traditional |
| class | DistortionScoreProducer |
| class | WordPenaltyProducer |
| class | UnknownWordPenaltyProducer |
| class | DynSuffixArray |
| class | Factor |
| class | FactorCollection |
| class | FactorMask |
| class | FeatureFunction |
| class | StatelessFeatureFunction |
| class | StatefulFeatureFunction |
| class | FFState |
| class | FilePtr |
| class | GenerationDictionary |
| class | GlobalLexicalModel |
| class | Hypothesis |
| struct | CompareHypothesisTotalScore |
| class | HypothesisRecombinationOrderer |
| class | HypothesisStack |
| class | HypothesisStackCubePruning |
| class | HypothesisStackNormal |
| class | InputFileStream |
| class | InputType |
| base class for sentences and confusion networks More... | |
| struct | LMState |
| class | LanguageModel |
| Abstract base class which represent a language model on a contiguous phrase. More... | |
| class | LanguageModelInternal |
| class | LanguageModelIRST |
| class | LanguageModelJoint |
| class | LanguageModelMultiFactor |
| Abstract class for for multi factor LM. More... | |
| class | LanguageModelParallelBackoff |
| class | LanguageModelRandLM |
| class | LanguageModelRemote |
| class | LanguageModelSingleFactor |
| Abstract class for for single factor LM. More... | |
| class | LanguageModelSkip |
| class | LanguageModelSRI |
| class | LexicalReordering |
| class | LexicalReorderingConfiguration |
| Factory class for lexical reordering states. More... | |
| class | LexicalReorderingState |
| Abstract class for lexical reordering model states. More... | |
| class | BidirectionalReorderingState |
| class | PhraseBasedReorderingState |
| class | HierarchicalReorderingBackwardState |
| class | HierarchicalReorderingForwardState |
| forward state (conditioned on the next phrase) More... | |
| struct | State |
| class | LexicalReorderingTable |
| class | LexicalReorderingTableMemory |
| class | LexicalReorderingTableTree |
| class | LMList |
| List of language models. More... | |
| struct | SearchGraphNode |
| class | Manager |
| class | NGramCollection |
| class | NGramNode |
| struct | Credit |
| class | Parameter |
| class | PartialTranslOptColl |
| class | PDTAimp |
| class | Phrase |
| class | PhraseDictionary |
| class | PhraseDictionaryFeature |
| class | PhraseDictionaryDynSuffixArray |
| class | PhraseDictionaryMemory |
| class | PhraseDictionaryNode |
| class | PhraseDictionaryNodeSCFG |
| class | PhraseDictionaryOnDisk |
| class | PhraseDictionarySCFG |
| class | TgtCand |
| class | TgtCands |
| struct | PDTimp |
| class | PhraseDictionaryTree |
| class | PhraseDictionaryTreeAdaptor |
| class | PrefixTreeSA |
| class | PrefixTreeF |
| class | GenericCandidate |
| struct | PPimp |
| class | Candidates |
| class | PrefixTreeMap |
| class | ReorderingConstraint |
| class | ReorderingStack |
| class | ScoreComponentCollection |
| class | ScoreIndexManager |
| class | ScoreProducer |
| class | Search |
| class | BitmapContainerOrderer |
| class | SearchCubePruning |
| class | SearchNormal |
| class | Sentence |
| struct | RecombinationInfo |
| class | SentenceStats |
| class | SquareMatrix |
| A square array of floats to store future costs. More... | |
| class | StaticData |
| class | CountInfo |
| class | TargetPhrase |
| struct | CompareTargetPhrase |
| class | TargetPhraseCollection |
| a list of target phrases that is translated from the same source phrase More... | |
| class | Timer |
| class | TranslationOption |
| class | TranslationOptionCollection |
| class | TranslationOptionCollectionConfusionNet |
| class | TranslationOptionCollectionText |
| class | TranslationOptionList |
| class | XMLParseOutput |
| class | TreeInput |
| class | TrellisPath |
| struct | CompareTrellisPathCollection |
| class | TrellisPathCollection |
| class | TrellisPathList |
| class | UserMessage |
| class | Word |
| struct | WordComparer |
| class | WordConsumed |
| class | WordLattice |
| class | WordsBitmap |
| class | WordsRange |
| struct | XmlOption |
| class | Task |
Typedefs | |
| typedef std::vector< Hypothesis * > | HypothesisSet |
| typedef std::set< BackwardsEdge * > | BackwardsEdgeSet |
| typedef std::priority_queue < HypothesisQueueItem *, std::vector < HypothesisQueueItem * > , QueueItemOrderer > | HypothesisQueue |
| typedef pair< Word, ScoreComponentCollection > | WordPair |
| typedef list< WordPair > | WordList |
| typedef list< WordPair > ::const_iterator | WordListIterator |
| typedef std::vector< unsigned > | vuint_t |
| typedef std::set< Factor > | FactorSet |
| typedef std::set< std::string > | StringSet |
| typedef std::map< Word, ScoreComponentCollection > | OutputWordCollection |
| typedef std::vector< Hypothesis * > | ArcList |
| typedef std::map< WordsBitmap, BitmapContainer * > | _BMType |
| typedef std::vector< Word > | LabelList |
| typedef std::vector< const Factor * > | FactorVector |
| typedef std::vector< std::string > | PARAM_VEC |
| typedef std::map< std::string, PARAM_VEC > | PARAM_MAP |
| typedef std::map< std::string, bool > | PARAM_BOOL |
| typedef std::map< std::string, std::string > | PARAM_STRING |
| typedef LVoc< std::string > | WordVoc |
| typedef PrefixTreeF< LabelId, OFF_T > | PTF |
| typedef FilePtr< PTF > | CPT |
| typedef std::vector< CPT > | Data |
| typedef std::pair< std::string, float > | UnknownLHSEntry |
| typedef std::vector < UnknownLHSEntry > | UnknownLHSList |
| typedef size_t | FactorType |
| typedef std::vector< float > | Scores |
| typedef std::vector< std::string > | WordAlignments |
| typedef std::vector< FactorType > | FactorList |
| typedef std::pair< std::vector < std::string const * > , Scores > | StringTgtCand |
| typedef std::pair< std::vector < std::string const * > , WordAlignments > | StringWordAlignmentCand |
| typedef unsigned long | WordsBitmapID |
Enumerations | |
| enum | FactorDirection { Input, Output } |
| enum | DecodeType { Translate, Generate, InsertNullFertilityWord } |
| enum | LMType { SingleFactor, MultiFactor } |
| enum | LMImplementation { SRI = 0, IRST = 1, Skip = 2, Joint = 3, Internal = 4, RandLM = 5, Remote = 6, ParallelBackoff = 7 } |
| enum | PhraseTableImplementation { Memory = 0, Binary = 1, OnDisk = 2, SCFG = 6, SuffixArray = 8 } |
| enum | InputTypeEnum { SentenceInput = 0, ConfusionNetworkInput = 1, WordLatticeInput = 2, TreeInputType = 3 } |
| enum | XmlInputType { XmlPassThrough = 0, XmlIgnore = 1, XmlExclusive = 2, XmlInclusive = 3 } |
| enum | DictionaryFind { Best = 0, All = 1 } |
| enum | SearchAlgorithm { Normal = 0, CubePruning = 1, CubeGrowing = 2, ChartDecoding = 3 } |
| enum | SourceLabelOverlap { SourceLabelOverlapAdd = 0, SourceLabelOverlapReplace = 1, SourceLabelOverlapDiscard = 2 } |
Functions | |
| std::ostream & | operator<< (std::ostream &out, const AlignmentInfo &alignmentInfo) |
| std::ostream & | operator<< (std::ostream &out, const ChartRule &rule) |
| std::ostream & | operator<< (std::ostream &out, const ChartRuleCollection &coll) |
| std::ostream & | operator<< (std::ostream &out, const ConfusionNet &cn) |
| void | IncrementIterators (vector< WordListIterator > &wordListIterVector, const vector< WordList > &wordListVector) |
| std::ostream & | operator<< (std::ostream &out, const ProcessedRule &rule) |
| std::ostream & | operator<< (std::ostream &out, const ProcessedRuleColl &coll) |
| std::ostream & | operator<< (std::ostream &out, const ProcessedRuleOnDisk &rule) |
| std::ostream & | operator<< (std::ostream &out, const ProcessedRuleCollOnDisk &coll) |
| ostream & | operator<< (ostream &out, const Factor &factor) |
| TO_STRING_BODY (FactorCollection) | |
| ostream & | operator<< (ostream &out, const FactorCollection &factorCollection) |
| TO_STRING_BODY (FactorMask) | |
| std::ostream & | operator<< (std::ostream &out, const FactorMask &fm) |
| template<typename T > | |
| size_t | fWrite (FILE *f, const T &t) |
| template<typename T > | |
| void | fRead (FILE *f, T &t) |
| template<typename T > | |
| size_t | fWrite (FILE *f, const T *b, const T *e) |
| template<typename T > | |
| size_t | fWrite (FILE *f, const T b, const T e) |
| template<typename C > | |
| size_t | fWriteVector (FILE *f, const C &v) |
| template<typename C > | |
| void | fReadVector (FILE *f, C &v) |
| size_t | fWriteString (FILE *f, const char *e, UINT32 s) |
| void | fReadString (FILE *f, std::string &e) |
| size_t | fWriteStringVector (FILE *f, const std::vector< std::string > &v) |
| void | fReadStringVector (FILE *f, std::vector< std::string > &v) |
| OFF_T | fTell (FILE *f) |
| void | fSeek (FILE *f, OFF_T o) |
| FILE * | fOpen (const char *fn, const char *m) |
| void | fClose (FILE *f) |
| ostream & | operator<< (ostream &out, const Hypothesis &hypo) |
| std::ostream & | operator<< (std::ostream &out, const Hypothesis &hypothesis) |
| TO_STRING_BODY (HypothesisStackCubePruning) | |
| std::ostream & | operator<< (std::ostream &out, const HypothesisStackCubePruning &hypoColl) |
| TO_STRING_BODY (HypothesisStackNormal) | |
| std::ostream & | operator<< (std::ostream &out, const HypothesisStackNormal &hypoColl) |
| TO_STRING_BODY (InputType) | |
| std::ostream & | operator<< (std::ostream &out, InputType const &x) |
| bool | LMCacheCleanup (size_t sentences_done, size_t m_lmcache_cleanup_threshold) |
| std::string | auxClearString (const std::string &str) |
| void | auxAppend (IPhrase &head, const IPhrase &tail) |
| void | OutputWordGraph (std::ostream &outputWordGraphStream, const Hypothesis *hypo, size_t &linkId) |
| void | OutputSearchNode (long translationId, std::ostream &outputSearchGraphStream, const SearchGraphNode &searchNode) |
| std::ostream & | operator<< (std::ostream &os, const Credit &credit) |
| bool | ComparePartialTranslationOption (const TranslationOption *a, const TranslationOption *b) |
| bool | existsFile (const char *filePath) |
| double | addLogScale (double x, double y) |
| double | Exp (double x) |
| TO_STRING_BODY (Phrase) | |
| ostream & | operator<< (ostream &out, const Phrase &phrase) |
| TO_STRING_BODY (PhraseDictionaryMemory) | |
| ostream & | operator<< (ostream &out, const PhraseDictionaryMemory &phraseDict) |
| std::ostream & | operator<< (std::ostream &out, const PhraseDictionaryNodeSCFG &node) |
| void | TransformString (vector< vector< string > * > &phraseVector) |
| TO_STRING_BODY (PhraseDictionarySCFG) | |
| ostream & | operator<< (ostream &out, const PhraseDictionarySCFG &phraseDict) |
| template<typename T > | |
| std::ostream & | operator<< (std::ostream &out, const std::vector< T > &x) |
| std::ostream & | operator<< (std::ostream &os, const ScoreComponentCollection &rhs) |
| std::ostream & | operator<< (std::ostream &os, const ScoreIndexManager &sim) |
| std::ostream & | operator<< (std::ostream &os, const SentenceStats &ss) |
| TO_STRING_BODY (SquareMatrix) | |
| std::ostream & | operator<< (std::ostream &out, const SquareMatrix &matrix) |
| TO_STRING_BODY (TargetPhrase) | |
| std::ostream & | operator<< (std::ostream &os, const TargetPhrase &tp) |
| std::ostream & | operator<< (std::ostream &os, Timer &t) |
| TO_STRING_BODY (TranslationOption) | |
| ostream & | operator<< (ostream &out, const TranslationOption &possibleTranslation) |
| bool | CompareTranslationOption (const TranslationOption *a, const TranslationOption *b) |
| TO_STRING_BODY (TranslationOptionCollection) | |
| std::ostream & | operator<< (std::ostream &out, const TranslationOptionCollection &coll) |
| TO_STRING_BODY (TranslationOptionList) | |
| std::ostream & | operator<< (std::ostream &out, const TranslationOptionList &coll) |
| std::ostream & | operator<< (std::ostream &out, const TreeInput &input) |
| TO_STRING_BODY (TrellisPath) | |
| std::ostream & | operator<< (std::ostream &out, const TrellisPath &path) |
| std::ostream & | operator<< (std::ostream &out, const TrellisPathCollection &pathColl) |
| string | GetTempFolder () |
| x-platform reference to temp folder | |
| void | CreateTempFile (ofstream &fileStream, string &filePath) |
| const std::string | ToLower (const std::string &str) |
| template<> | |
| bool | Scan< bool > (const std::string &input) |
| Specialisation to understand yes/no y/n true/false 0/1. | |
| bool | FileExists (const std::string &filePath) |
| const std::string | Trim (const std::string &str, const std::string dropChars=" \t\n\r") |
| delete white spaces at beginning and end of string | |
| void | ResetUserTime () |
| void | PrintUserTime (const std::string &message) |
| double | GetUserTime () |
| std::map< std::string, std::string > | ProcessAndStripSGML (std::string &line) |
| template<typename T > | |
| std::string | SPrint (const T &input) |
| get string representation of any object/variable, as long as it can pipe to a stream | |
| template<typename T > | |
| T | Scan (const std::string &input) |
| convert string to variable of type T. Used to reading floats, int etc from files | |
| template<> | |
| std::string | Scan< std::string > (const std::string &input) |
| just return input | |
| template<typename T > | |
| std::vector< T > | Scan (const std::vector< std::string > &input) |
| convert vectors of string to vectors of type T variables | |
| template<typename T > | |
| void | Scan (std::vector< T > &output, const std::vector< std::string > &input) |
| speeded up version of above | |
| std::string | Replace (const std::string &str, const std::string &todelStr, const std::string &toaddStr) |
| std::vector< std::string > | Tokenize (const std::string &input, const std::string &delimiters=" \t") |
| tokenise input string to vector of type T | |
| void | Tokenize (std::vector< std::string > &output, const std::string &str, const std::string &delimiters=" \t") |
| template<typename T > | |
| void | Tokenize (std::vector< T > &output, const std::string &input, const std::string &delimiters=" \t") |
| std::vector< std::string > | TokenizeMultiCharSeparator (const std::string &str, const std::string &separator) |
| void | TokenizeMultiCharSeparator (std::vector< std::string > &output, const std::string &str, const std::string &separator) |
| template<typename T > | |
| std::string | Join (const std::string &delimiter, const std::vector< T > &items) |
| float | TransformScore (float prob) |
| transform prob to natural log score | |
| float | UntransformScore (float score) |
| transform natural log score to prob. Not currently used | |
| float | TransformLMScore (float irstScore) |
| irst number are in log 10, transform to natural log | |
| float | UntransformLMScore (float logNScore) |
| float | FloorScore (float logScore) |
| make sure score doesn't fall below LOWEST_SCORE | |
| float | CalcTranslationScore (const std::vector< float > &probVector, const std::vector< float > &weightT) |
| template<class COLL > | |
| void | RemoveAllInColl (COLL &coll) |
| delete and remove every element of a collection object such as map, set, list etc | |
| void | CreateTempFile (std::ofstream &fileStream, std::string &filePath) |
| Create temp file and return output stream and full file path as arguments. | |
| std::string | GetMD5Hash (const std::string &filePath) |
| MD5 hash of a file. | |
| template<typename T > | |
| void | ShrinkToFit (T &v) |
| save memory by getting rid of spare, unused elements in a collection | |
| TO_STRING_BODY (Word) | |
| ostream & | operator<< (ostream &out, const Word &word) |
| std::ostream & | operator<< (std::ostream &out, const WordConsumed &wordConsumed) |
| TO_STRING_BODY (WordsBitmap) | |
| std::ostream & | operator<< (std::ostream &out, const WordsBitmap &wordsBitmap) |
| TO_STRING_BODY (WordsRange) | |
| std::ostream & | operator<< (std::ostream &out, const WordsRange &range) |
| string | ParseXmlTagAttribute (const string &tag, const string &attributeName) |
| string | TrimXml (const string &str) |
| bool | isXmlTag (const string &tag) |
| vector< string > | TokenizeXml (const string &str) |
| bool | ProcessAndStripXMLTags (string &line, vector< vector< XmlOption * > > &res, ReorderingConstraint &reorderingConstraint, vector< size_t > &walls) |
| std::string | ParseXmlTagAttribute (const std::string &tag, const std::string &attributeName) |
| std::string | TrimXml (const std::string &str) |
| bool | isXmlTag (const std::string &tag) |
| std::vector< std::string > | TokenizeXml (const std::string &str) |
| bool | ProcessAndStripXMLTags (std::string &line, std::vector< std::vector< XmlOption * > > &res, ReorderingConstraint &reorderingConstraint, std::vector< size_t > &walls) |
Variables | |
| CNStats | stats |
| const size_t | DEFAULT_CUBE_PRUNING_POP_LIMIT = 1000 |
| const size_t | DEFAULT_CUBE_PRUNING_DIVERSITY = 0 |
| const size_t | DEFAULT_MAX_HYPOSTACK_SIZE = 200 |
| const size_t | DEFAULT_MAX_TRANS_OPT_CACHE_SIZE = 10000 |
| const size_t | DEFAULT_MAX_TRANS_OPT_SIZE = 5000 |
| const size_t | DEFAULT_MAX_PART_TRANS_OPT_SIZE = 10000 |
| const size_t | DEFAULT_MAX_PHRASE_LENGTH = 20 |
| const size_t | DEFAULT_MAX_CHART_SPAN = 10 |
| const size_t | ARRAY_SIZE_INCR = 10 |
| const float | LOWEST_SCORE = -100.0f |
| const float | DEFAULT_BEAM_WIDTH = 0.00001f |
| const float | DEFAULT_EARLY_DISCARDING_THRESHOLD = 0.0f |
| const float | DEFAULT_TRANSLATION_OPTION_THRESHOLD = 0.0f |
| const size_t | DEFAULT_VERBOSE_LEVEL = 1 |
| const int | NUM_LANGUAGES = 2 |
| const size_t | MAX_NUM_FACTORS = 4 |
| const size_t | MAX_MSG_QUEUE = 5 |
| Timer | g_timer |
| typedef std::map<WordsBitmap, BitmapContainer*> Moses::_BMType |
| typedef std::vector<Hypothesis*> Moses::ArcList |
| typedef std::set< BackwardsEdge* > Moses::BackwardsEdgeSet |
| typedef FilePtr<PTF> Moses::CPT |
| typedef std::vector<CPT> Moses::Data |
| typedef std::vector<FactorType> Moses::FactorList |
| typedef std::set<Factor> Moses::FactorSet |
| typedef size_t Moses::FactorType |
| typedef std::vector<const Factor*> Moses::FactorVector |
| typedef std::priority_queue< HypothesisQueueItem*, std::vector< HypothesisQueueItem* >, QueueItemOrderer> Moses::HypothesisQueue |
| typedef std::vector< Hypothesis* > Moses::HypothesisSet |
| typedef std::vector<Word> Moses::LabelList |
| typedef std::map< Word , ScoreComponentCollection > Moses::OutputWordCollection |
| typedef std::map<std::string, bool> Moses::PARAM_BOOL |
| typedef std::map<std::string, PARAM_VEC > Moses::PARAM_MAP |
| typedef std::map<std::string, std::string > Moses::PARAM_STRING |
| typedef std::vector<std::string> Moses::PARAM_VEC |
| typedef PrefixTreeF< LabelId, OFF_T > Moses::PTF |
| typedef std::vector<float> Moses::Scores |
| typedef std::set<std::string> Moses::StringSet |
| typedef std::pair<std::vector<std::string const*>,Scores > Moses::StringTgtCand |
| typedef std::pair<std::vector<std::string const*>,WordAlignments > Moses::StringWordAlignmentCand |
| typedef std::pair<std::string, float> Moses::UnknownLHSEntry |
| typedef std::vector<UnknownLHSEntry> Moses::UnknownLHSList |
| typedef std::vector<unsigned> Moses::vuint_t |
| typedef std::vector<std::string> Moses::WordAlignments |
| typedef list< WordPair > Moses::WordList |
| typedef list< WordPair >::const_iterator Moses::WordListIterator |
| typedef pair<Word, ScoreComponentCollection> Moses::WordPair |
| typedef unsigned long Moses::WordsBitmapID |
| typedef LVoc< std::string > Moses::WordVoc |
| enum Moses::DecodeType |
| enum Moses::InputTypeEnum |
| enum Moses::LMType |
| enum Moses::XmlInputType |
| double Moses::addLogScale | ( | double | x, | |
| double | y | |||
| ) |
| std::string Moses::auxClearString | ( | const std::string & | str | ) |
| float Moses::CalcTranslationScore | ( | const std::vector< float > & | probVector, | |
| const std::vector< float > & | weightT | |||
| ) | [inline] |
convert prob vector to log prob and calc inner product with weight vector. At least, that's what I think it does, fn is only 9 lines but can't figure out what it does. Not sure whether give zens a medal for being a genius, or shoot him for writing unreadable code. Mabe both...
References TransformScore().

| bool Moses::ComparePartialTranslationOption | ( | const TranslationOption * | a, | |
| const TranslationOption * | b | |||
| ) |
helper, used by pruning
References Moses::TranslationOption::GetFutureScore().
Referenced by Moses::PartialTranslOptColl::Prune().


| bool Moses::CompareTranslationOption | ( | const TranslationOption * | a, | |
| const TranslationOption * | b | |||
| ) |
helper for pruning
References Moses::TranslationOption::GetFutureScore().
Referenced by Moses::TranslationOptionCollection::Prune(), and Moses::TranslationOptionCollection::Sort().


| void Moses::CreateTempFile | ( | std::ofstream & | fileStream, | |
| std::string & | filePath | |||
| ) |
Create temp file and return output stream and full file path as arguments.
| void Moses::CreateTempFile | ( | ofstream & | fileStream, | |
| string & | filePath | |||
| ) |
| bool Moses::existsFile | ( | const char * | filePath | ) | [inline] |
Referenced by Moses::PDTAimp::Create(), existsFile(), and main().

| double Moses::Exp | ( | double | x | ) |
Referenced by Moses::PDTAimp::CacheSource(), and Moses::PDTAimp::~PDTAimp().

| void Moses::fClose | ( | FILE * | f | ) | [inline] |
Referenced by Moses::PhraseDictionaryTree::Create(), Moses::LexicalReorderingTableTree::Create(), Moses::PrefixTreeMap::Read(), Moses::PDTimp::Read(), Moses::PDTimp::~PDTimp(), and Moses::PrefixTreeMap::~PrefixTreeMap().

| bool Moses::FileExists | ( | const std::string & | filePath | ) |
Referenced by Moses::LanguageModelIRST::Load(), Moses::LexicalReorderingTable::LoadAvailable(), Moses::StaticData::LoadGenerationTables(), main(), Moses::PrefixTreeMap::Read(), Moses::PDTimp::Read(), and Moses::Parameter::Validate().

| float Moses::FloorScore | ( | float | logScore | ) | [inline] |
make sure score doesn't fall below LOWEST_SCORE
References LOWEST_SCORE.
Referenced by Moses::LexicalReorderingTableTree::Create(), Moses::PhraseDictionaryDynSuffixArray::GetTargetPhraseCollection(), Moses::PDTAimp::GetTargetPhraseCollection(), Moses::LanguageModelSRI::GetValue(), Moses::LanguageModelRemote::GetValue(), Moses::LanguageModelParallelBackoff::GetValue(), Moses::LanguageModelInternal::GetValue(), Moses::PhraseDictionarySCFG::Load(), Moses::GenerationDictionary::Load(), ProcessAndStripXMLTags(), and Moses::TranslationOption::TranslationOption().

| FILE* Moses::fOpen | ( | const char * | fn, | |
| const char * | m | |||
| ) | [inline] |
References Moses::UserMessage::Add(), and NULL.
Referenced by Moses::PrefixTreeF< T, D >::create(), Moses::PhraseDictionaryTree::Create(), Moses::LexicalReorderingTableTree::Create(), Moses::PrefixTreeMap::Read(), and Moses::PDTimp::Read().


| void Moses::fRead | ( | FILE * | f, | |
| T & | t | |||
| ) | [inline] |
References TRACE_ERR.
Referenced by fReadString(), fReadStringVector(), fReadVector(), Moses::Candidates::readBin(), Moses::GenericCandidate::readBin(), Moses::TgtCands::readBin(), and Moses::TgtCands::readBinWithAlignment().

| void Moses::fReadString | ( | FILE * | f, | |
| std::string & | e | |||
| ) | [inline] |
References fRead(), and TRACE_ERR.
Referenced by fReadStringVector().


| void Moses::fReadStringVector | ( | FILE * | f, | |
| std::vector< std::string > & | v | |||
| ) | [inline] |
References fRead(), and fReadString().
Referenced by Moses::TgtCand::readBinWithAlignment().


| void Moses::fReadVector | ( | FILE * | f, | |
| C & | v | |||
| ) | [inline] |
References fRead(), and TRACE_ERR.
Referenced by Moses::DynSuffixArray::Load(), Moses::PrefixTreeMap::Read(), Moses::PrefixTreeF< T, D >::read(), Moses::PDTimp::Read(), Moses::GenericCandidate::readBin(), Moses::TgtCand::readBin(), and Moses::TgtCand::readBinWithAlignment().


| void Moses::fSeek | ( | FILE * | f, | |
| OFF_T | o | |||
| ) | [inline] |
References FSEEKO, and TRACE_ERR.
Referenced by Moses::PrefixTreeF< T, D >::changeData(), Moses::PrefixTreeF< T, D >::create(), Moses::PrefixTreeMap::GetCandidates(), Moses::PDTimp::GetTargetCandidates(), and Moses::FilePtr< T >::load().

| OFF_T Moses::fTell | ( | FILE * | f | ) | [inline] |
References FTELLO.
Referenced by Moses::PrefixTreeF< T, D >::create(), Moses::PhraseDictionaryTree::Create(), Moses::LexicalReorderingTableTree::Create(), and Moses::PrefixTreeF< T, D >::read().

| size_t Moses::fWrite | ( | FILE * | f, | |
| const T | b, | |||
| const T | e | |||
| ) | [inline] |
| size_t Moses::fWrite | ( | FILE * | f, | |
| const T * | b, | |||
| const T * | e | |||
| ) | [inline] |
| size_t Moses::fWrite | ( | FILE * | f, | |
| const T & | t | |||
| ) | [inline] |
References TRACE_ERR.
Referenced by Moses::PrefixTreeF< T, D >::changeData(), Moses::PrefixTreeF< T, D >::create(), fWrite(), fWriteString(), fWriteStringVector(), fWriteVector(), Moses::Candidates::writeBin(), Moses::GenericCandidate::writeBin(), Moses::TgtCands::writeBin(), and Moses::TgtCands::writeBinWithAlignment().

| size_t Moses::fWriteString | ( | FILE * | f, | |
| const char * | e, | |||
| UINT32 | s | |||
| ) | [inline] |
References fWrite(), and TRACE_ERR.
Referenced by fWriteStringVector().


| size_t Moses::fWriteStringVector | ( | FILE * | f, | |
| const std::vector< std::string > & | v | |||
| ) | [inline] |
References fWrite(), and fWriteString().
Referenced by Moses::TgtCand::writeBinWithAlignment().


| size_t Moses::fWriteVector | ( | FILE * | f, | |
| const C & | v | |||
| ) | [inline] |
References fWrite(), and TRACE_ERR.
Referenced by Moses::PrefixTreeF< T, D >::create(), Moses::PhraseDictionaryTree::Create(), Moses::LexicalReorderingTableTree::Create(), Moses::DynSuffixArray::Save(), Moses::GenericCandidate::writeBin(), Moses::TgtCand::writeBin(), and Moses::TgtCand::writeBinWithAlignment().


| std::string Moses::GetMD5Hash | ( | const std::string & | filePath | ) |
MD5 hash of a file.
| std::string Moses::GetTempFolder | ( | ) |
x-platform reference to temp folder
Referenced by CreateTempFile().

| double Moses::GetUserTime | ( | ) |
Referenced by Moses::SearchNormal::ProcessSentence(), and Moses::SearchCubePruning::ProcessSentence().

| void Moses::IncrementIterators | ( | vector< WordListIterator > & | wordListIterVector, | |
| const vector< WordList > & | wordListVector | |||
| ) | [inline] |
used in generation: increases iterators when looping through the exponential number of generation expansions
Referenced by Moses::DecodeStepGeneration::Process().

| bool Moses::isXmlTag | ( | const std::string & | tag | ) |
| bool Moses::isXmlTag | ( | const string & | tag | ) |
Check if the token is an XML tag, i.e. starts with "<"
| tag | token to be checked |
Referenced by ProcessAndStripXMLTags().

| std::string Moses::Join | ( | const std::string & | delimiter, | |
| const std::vector< T > & | items | |||
| ) | [inline] |
Convert vector of type T to string
Referenced by operator<<().

| bool Moses::LMCacheCleanup | ( | size_t | sentences_done, | |
| size_t | m_lmcache_cleanup_threshold | |||
| ) |
Referenced by Moses::LanguageModelIRST::CleanUpAfterSentenceProcessing().

| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const WordsRange & | range | |||
| ) |
| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const WordsBitmap & | wordsBitmap | |||
| ) | [inline] |
References Moses::WordsBitmap::GetValue(), and Moses::WordsBitmap::m_size.

| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const WordConsumed & | wordConsumed | |||
| ) |
| ostream& Moses::operator<< | ( | ostream & | out, | |
| const Word & | word | |||
| ) |
References Moses::Word::GetFactor(), Moses::StaticData::GetFactorDelimiter(), Moses::StaticData::Instance(), MAX_NUM_FACTORS, and NULL.

| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const TrellisPathCollection & | pathColl | |||
| ) | [inline] |
References Moses::TrellisPathCollection::m_collection.
| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const TrellisPath & | path | |||
| ) | [inline] |
References Moses::Hypothesis::GetCurrSourceWordsRange(), Moses::WordsRange::GetEndPos(), Moses::Hypothesis::GetId(), Moses::TrellisPath::GetScoreBreakdown(), Moses::WordsRange::GetStartPos(), Moses::TrellisPath::GetTotalScore(), and Moses::TrellisPath::m_path.

| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const TreeInput & | input | |||
| ) |
References Moses::TreeInput::GetLabelList(), Moses::Sentence::GetSize(), and Moses::Word::IsNonTerminal().

| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const TranslationOptionList & | coll | |||
| ) |
References Moses::TranslationOptionList::begin(), and Moses::TranslationOptionList::end().

| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const TranslationOptionCollection & | coll | |||
| ) |
References Moses::TranslationOptionList::Get(), Moses::StaticData::GetMaxPhraseLength(), Moses::TranslationOptionCollection::GetSize(), Moses::TranslationOptionCollection::GetTranslationOptionList(), Moses::StaticData::Instance(), and Moses::TranslationOptionList::size().

| ostream& Moses::operator<< | ( | ostream & | out, | |
| const TranslationOption & | possibleTranslation | |||
| ) |
References Moses::TranslationOption::GetFutureScore(), Moses::TranslationOption::GetScoreBreakdown(), Moses::TranslationOption::GetSourceWordsRange(), and Moses::TranslationOption::GetTargetPhrase().

| std::ostream& Moses::operator<< | ( | std::ostream & | os, | |
| Timer & | t | |||
| ) |
| std::ostream & Moses::operator<< | ( | std::ostream & | os, | |
| const TargetPhrase & | tp | |||
| ) |
References Moses::TargetPhrase::GetAlignmentInfo(), Moses::TargetPhrase::m_fullScore, and Moses::TargetPhrase::m_transScore.

| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const SquareMatrix & | matrix | |||
| ) | [inline] |
References Moses::SquareMatrix::GetScore(), and Moses::SquareMatrix::GetSize().

| std::ostream& Moses::operator<< | ( | std::ostream & | os, | |
| const SentenceStats & | ss | |||
| ) | [inline] |
References Moses::SentenceStats::GetDeletedWords(), Moses::SentenceStats::GetInsertedWords(), Moses::SentenceStats::GetNumHyposDiscarded(), Moses::SentenceStats::GetNumHyposEarlyDiscarded(), Moses::SentenceStats::GetNumHyposNotBuilt(), Moses::SentenceStats::GetNumHyposPruned(), Moses::SentenceStats::GetNumHyposRecombined(), Moses::SentenceStats::GetNumWordsDeleted(), Moses::SentenceStats::GetNumWordsInserted(), Moses::SentenceStats::GetTimeBuildHyp(), Moses::SentenceStats::GetTimeCalcLM(), Moses::SentenceStats::GetTimeCollectOpts(), Moses::SentenceStats::GetTimeEstimateScore(), Moses::SentenceStats::GetTimeOtherScore(), Moses::SentenceStats::GetTimeStack(), Moses::SentenceStats::GetTimeTotal(), Moses::SentenceStats::GetTotalHypos(), Moses::SentenceStats::GetTotalSourceWords(), and Join().

| std::ostream& Moses::operator<< | ( | std::ostream & | os, | |
| const ScoreIndexManager & | sim | |||
| ) |
| std::ostream& Moses::operator<< | ( | std::ostream & | os, | |
| const ScoreComponentCollection & | rhs | |||
| ) | [inline] |
| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const std::vector< T > & | x | |||
| ) | [inline] |
| ostream& Moses::operator<< | ( | ostream & | out, | |
| const PhraseDictionarySCFG & | phraseDict | |||
| ) |
References Moses::PhraseDictionaryNodeSCFG::begin(), Moses::PhraseDictionaryNodeSCFG::end(), and Moses::PhraseDictionarySCFG::m_collection.

| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const PhraseDictionaryNodeSCFG & | node | |||
| ) |
References Moses::PhraseDictionaryNodeSCFG::GetTargetPhraseCollection().

| ostream& Moses::operator<< | ( | ostream & | out, | |
| const PhraseDictionaryMemory & | phraseDict | |||
| ) |
References Moses::PhraseDictionaryNode::begin(), Moses::PhraseDictionaryNode::end(), and Moses::PhraseDictionaryMemory::m_collection.

| ostream& Moses::operator<< | ( | ostream & | out, | |
| const Phrase & | phrase | |||
| ) |
References Moses::Phrase::GetSize(), and Moses::Phrase::GetWord().

| std::ostream& Moses::operator<< | ( | std::ostream & | os, | |
| const Credit & | credit | |||
| ) |
| std::ostream & Moses::operator<< | ( | std::ostream & | out, | |
| InputType const & | x | |||
| ) |
| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const HypothesisStackNormal & | hypoColl | |||
| ) |
References Moses::HypothesisStack::begin(), and Moses::HypothesisStack::end().

| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const HypothesisStackCubePruning & | hypoColl | |||
| ) |
References Moses::HypothesisStack::begin(), and Moses::HypothesisStack::end().

| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const Hypothesis & | hypothesis | |||
| ) |
| ostream& Moses::operator<< | ( | ostream & | out, | |
| const Hypothesis & | hypo | |||
| ) |
| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const FactorMask & | fm | |||
| ) |
References MAX_NUM_FACTORS.
| ostream& Moses::operator<< | ( | ostream & | out, | |
| const FactorCollection & | factorCollection | |||
| ) |
References Moses::FactorCollection::m_collection.
| ostream& Moses::operator<< | ( | ostream & | out, | |
| const Factor & | factor | |||
| ) |
| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const ProcessedRuleCollOnDisk & | coll | |||
| ) |
References Moses::ProcessedRuleCollOnDisk::begin(), and Moses::ProcessedRuleCollOnDisk::end().

| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const ProcessedRuleOnDisk & | rule | |||
| ) |
| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const ProcessedRuleColl & | coll | |||
| ) |
References Moses::ProcessedRuleColl::begin(), and Moses::ProcessedRuleColl::end().

| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const ProcessedRule & | rule | |||
| ) |
| std::ostream & Moses::operator<< | ( | std::ostream & | out, | |
| const ConfusionNet & | cn | |||
| ) |
| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const ChartRuleCollection & | coll | |||
| ) |
References Moses::ChartRuleCollection::begin(), and Moses::ChartRuleCollection::end().

| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const ChartRule & | rule | |||
| ) |
References Moses::TargetPhrase::GetTargetLHS(), Moses::ChartRule::m_lastWordConsumed, and Moses::ChartRule::m_targetPhrase.

| std::ostream& Moses::operator<< | ( | std::ostream & | out, | |
| const AlignmentInfo & | alignmentInfo | |||
| ) |
References Moses::AlignmentInfo::begin(), and Moses::AlignmentInfo::end().

| void Moses::OutputSearchNode | ( | long | translationId, | |
| std::ostream & | outputSearchGraphStream, | |||
| const SearchGraphNode & | searchNode | |||
| ) |
References Moses::SearchGraphNode::forward, Moses::SearchGraphNode::fscore, Moses::Hypothesis::GetCurrSourceWordsRange(), Moses::Hypothesis::GetCurrTargetPhrase(), Moses::WordsRange::GetEndPos(), Moses::Hypothesis::GetId(), Moses::WordsBitmap::GetNumWordsCovered(), Moses::StaticData::GetOutputFactorOrder(), Moses::StaticData::GetOutputSearchGraphExtended(), Moses::Hypothesis::GetPrevHypo(), Moses::Hypothesis::GetScore(), Moses::Hypothesis::GetScoreBreakdown(), Moses::StaticData::GetScoreIndexManager(), Moses::WordsRange::GetStartPos(), Moses::Phrase::GetStringRep(), Moses::Hypothesis::GetWordsBitmap(), Moses::SearchGraphNode::hypo, Moses::StaticData::Instance(), Moses::ScoreComponentCollection::MinusEquals(), NULL, Moses::ScoreIndexManager::PrintLabeledScores(), and Moses::SearchGraphNode::recombinationHypo.
Referenced by Moses::Manager::OutputSearchGraph().


| void Moses::OutputWordGraph | ( | std::ostream & | outputWordGraphStream, | |
| const Hypothesis * | hypo, | |||
| size_t & | linkId | |||
| ) |
References Moses::LMList::begin(), Moses::LMList::end(), Moses::StaticData::GetAllLM(), Moses::Hypothesis::GetCurrTargetPhrase(), Moses::StaticData::GetDistortionScoreProducer(), Moses::Hypothesis::GetId(), Moses::StaticData::GetPhraseDictionaries(), Moses::Hypothesis::GetPrevHypo(), Moses::StaticData::GetReorderModels(), Moses::Hypothesis::GetScoreBreakdown(), Moses::ScoreComponentCollection::GetScoreForProducer(), Moses::ScoreComponentCollection::GetScoresForProducer(), and Moses::StaticData::Instance().
Referenced by Moses::Manager::GetWordGraph().


| std::string Moses::ParseXmlTagAttribute | ( | const std::string & | tag, | |
| const std::string & | attributeName | |||
| ) |
| string Moses::ParseXmlTagAttribute | ( | const string & | tag, | |
| const string & | attributeName | |||
| ) |
References TRACE_ERR.
Referenced by ProcessAndStripXMLTags().

| void Moses::PrintUserTime | ( | const std::string & | message | ) |
Referenced by GetIODevice(), Moses::PhraseDictionarySCFG::Load(), Moses::StaticData::LoadLanguageModels(), Moses::StaticData::LoadPhraseTables(), main(), and TranslationTask::Run().

| std::map< std::string, std::string > Moses::ProcessAndStripSGML | ( | std::string & | line | ) |
References ToLower(), TRACE_ERR, and Trim().
Referenced by Moses::WordLattice::Read(), and Moses::Sentence::Read().


| bool Moses::ProcessAndStripXMLTags | ( | std::string & | line, | |
| std::vector< std::vector< XmlOption * > > & | res, | |||
| ReorderingConstraint & | reorderingConstraint, | |||
| std::vector< size_t > & | walls | |||
| ) |
| bool Moses::ProcessAndStripXMLTags | ( | string & | line, | |
| vector< vector< XmlOption * > > & | res, | |||
| ReorderingConstraint & | reorderingConstraint, | |||
| vector< size_t > & | walls | |||
| ) |
Process a sentence with xml annotation Xml tags may specifiy additional/replacing translation options and reordering constraints
| line | in: sentence, out: sentence without the xml | |
| res | vector with translation options specified by xml | |
| reorderingConstraint | reordering constraint zones specified by xml | |
| walls | reordering constraint walls specified by xml |
References Moses::Phrase::CreateFromString(), FloorScore(), Moses::StaticData::GetFactorDelimiter(), Moses::StaticData::GetOutputFactorOrder(), Moses::StaticData::Instance(), isXmlTag(), Output, ParseXmlTagAttribute(), Moses::TargetPhrase::SetScore(), Moses::ReorderingConstraint::SetZone(), Tokenize(), TokenizeMultiCharSeparator(), TokenizeXml(), TRACE_ERR, TransformScore(), Trim(), TrimXml(), VERBOSE, and XmlIgnore.
Referenced by Moses::Sentence::Read().


| void Moses::RemoveAllInColl | ( | COLL & | coll | ) | [inline] |
delete and remove every element of a collection object such as map, set, list etc
Referenced by Moses::PhraseDictionarySCFG::CleanUp(), Moses::PhraseDictionaryOnDisk::CleanUp(), Moses::BilingualDynSuffixArray::GetTargetPhrasesByLexicalWeight(), Moses::LanguageModelSkip::GetValue(), Moses::LanguageModelJoint::GetValue(), Moses::Manager::ProcessSentence(), Moses::BitmapContainer::~BitmapContainer(), Moses::ChartRuleCollection::~ChartRuleCollection(), Moses::DecodeGraph::~DecodeGraph(), Moses::LMList::~LMList(), Moses::PartialTranslOptColl::~PartialTranslOptColl(), Moses::ProcessedRuleStack::~ProcessedRuleStack(), Moses::ProcessedRuleStackOnDisk::~ProcessedRuleStackOnDisk(), Moses::SearchCubePruning::~SearchCubePruning(), Moses::SearchNormal::~SearchNormal(), Moses::StaticData::~StaticData(), Moses::TargetPhraseCollection::~TargetPhraseCollection(), Moses::TranslationOptionCollection::~TranslationOptionCollection(), Moses::TranslationOptionList::~TranslationOptionList(), Moses::TrellisPathCollection::~TrellisPathCollection(), and Moses::TrellisPathList::~TrellisPathList().

| std::string Moses::Replace | ( | const std::string & | str, | |
| const std::string & | todelStr, | |||
| const std::string & | toaddStr | |||
| ) | [inline] |
replace all occurrences of todelStr in str with the string toaddStr
| void Moses::ResetUserTime | ( | ) |
Referenced by Moses::StaticData::LoadData(), and main().

| void Moses::Scan | ( | std::vector< T > & | output, | |
| const std::vector< std::string > & | input | |||
| ) | [inline] |
speeded up version of above
| std::vector<T> Moses::Scan | ( | const std::vector< std::string > & | input | ) | [inline] |
convert vectors of string to vectors of type T variables
| T Moses::Scan | ( | const std::string & | input | ) | [inline] |
convert string to variable of type T. Used to reading floats, int etc from files
Referenced by GetParams().

| bool Moses::Scan< bool > | ( | const std::string & | input | ) | [inline] |
Specialisation to understand yes/no y/n true/false 0/1.
Referenced by Moses::Manager::GetWordGraph(), and Moses::StaticData::LoadData().

| std::string Moses::Scan< std::string > | ( | const std::string & | input | ) | [inline] |
just return input
| void Moses::ShrinkToFit | ( | T & | v | ) | [inline] |
save memory by getting rid of spare, unused elements in a collection
Referenced by Moses::ConfusionNet::ReadFormat0(), and Moses::PrefixTreeSA< T, D >::shrink().

| std::string Moses::SPrint | ( | const T & | input | ) | [inline] |
get string representation of any object/variable, as long as it can pipe to a stream
| Moses::TO_STRING_BODY | ( | WordsRange | ) |
| Moses::TO_STRING_BODY | ( | WordsBitmap | ) |
| Moses::TO_STRING_BODY | ( | Word | ) |
| Moses::TO_STRING_BODY | ( | TrellisPath | ) |
| Moses::TO_STRING_BODY | ( | TranslationOptionList | ) |
| Moses::TO_STRING_BODY | ( | TranslationOptionCollection | ) |
| Moses::TO_STRING_BODY | ( | TranslationOption | ) |
| Moses::TO_STRING_BODY | ( | TargetPhrase | ) |
| Moses::TO_STRING_BODY | ( | SquareMatrix | ) |
| Moses::TO_STRING_BODY | ( | PhraseDictionarySCFG | ) |
| Moses::TO_STRING_BODY | ( | PhraseDictionaryMemory | ) |
| Moses::TO_STRING_BODY | ( | Phrase | ) |
| Moses::TO_STRING_BODY | ( | InputType | ) |
| Moses::TO_STRING_BODY | ( | HypothesisStackNormal | ) |
| Moses::TO_STRING_BODY | ( | HypothesisStackCubePruning | ) |
| Moses::TO_STRING_BODY | ( | FactorMask | ) |
| Moses::TO_STRING_BODY | ( | FactorCollection | ) |
| void Moses::Tokenize | ( | std::vector< T > & | output, | |
| const std::string & | input, | |||
| const std::string & | delimiters = " \t" | |||
| ) | [inline] |
| void Moses::Tokenize | ( | std::vector< std::string > & | output, | |
| const std::string & | str, | |||
| const std::string & | delimiters = " \t" | |||
| ) | [inline] |
| std::vector< T > Moses::Tokenize | ( | const std::string & | str, | |
| const std::string & | delimiters = " \t" | |||
| ) | [inline] |
tokenise input string to vector of type T
tokenise input string to vector of string. each element has been separated by a character in the delimiters argument. The separator can only be 1 character long. The default delimiters are space or tab
Referenced by Moses::PhraseDictionaryTree::Create(), Moses::Word::CreateFromString(), Moses::Phrase::CreateFromStringNewFormat(), Moses::StaticData::GetDecodeStepVL(), Moses::LanguageModelInternal::Load(), Moses::GenerationDictionary::Load(), Moses::StaticData::LoadData(), Moses::StaticData::LoadGenerationTables(), Moses::StaticData::LoadGlobalLexicalModel(), Moses::StaticData::LoadLanguageModels(), Moses::StaticData::LoadLexicalReorderingModel(), Moses::StaticData::LoadNonTerminals(), Moses::StaticData::LoadPhraseTables(), Moses::Phrase::Parse(), ProcessAndStripXMLTags(), Moses::TargetPhrase::SetAlignmentInfo(), Moses::ConfusionNet::String2Word(), and Tokenize().

| void Moses::TokenizeMultiCharSeparator | ( | std::vector< std::string > & | output, | |
| const std::string & | str, | |||
| const std::string & | separator | |||
| ) | [inline] |
| std::vector<std::string> Moses::TokenizeMultiCharSeparator | ( | const std::string & | str, | |
| const std::string & | separator | |||
| ) | [inline] |
Referenced by Moses::PhraseDictionaryTree::Create(), Moses::LexicalReorderingTableTree::Create(), Moses::PDTAimp::CreateTargetPhrase(), Moses::PhraseDictionarySCFG::Load(), Moses::Phrase::Parse(), and ProcessAndStripXMLTags().

| std::vector<std::string> Moses::TokenizeXml | ( | const std::string & | str | ) |
| vector<string> Moses::TokenizeXml | ( | const string & | str | ) |
Split up the input character string into tokens made up of either XML tags or text. example: this is a test . => (this ), (), ( is a ), (), ( test .)
| str | input string |
References TRACE_ERR.
Referenced by ProcessAndStripXMLTags().

| const std::string Moses::ToLower | ( | const std::string & | str | ) |
| float Moses::TransformLMScore | ( | float | irstScore | ) | [inline] |
irst number are in log 10, transform to natural log
Referenced by Moses::LanguageModelSRI::GetValue(), Moses::LanguageModelRemote::GetValue(), Moses::LanguageModelParallelBackoff::GetValue(), and Moses::LanguageModelInternal::Load().

| float Moses::TransformScore | ( | float | prob | ) | [inline] |
transform prob to natural log score
Referenced by Moses::PDTAimp::CacheSource(), CalcTranslationScore(), Moses::LexicalReorderingTableTree::Create(), Moses::PDTAimp::GetTargetPhraseCollection(), Moses::PhraseDictionarySCFG::Load(), Moses::GenerationDictionary::Load(), Moses::StaticData::LoadData(), and ProcessAndStripXMLTags().

| void Moses::TransformString | ( | vector< vector< string > * > & | phraseVector | ) | [inline] |
| const std::string Moses::Trim | ( | const std::string & | str, | |
| const std::string | dropChars | |||
| ) |
delete white spaces at beginning and end of string
Referenced by ProcessAndStripSGML(), ProcessAndStripXMLTags(), Moses::Sentence::Read(), and TokenizeMultiCharSeparator().

| std::string Moses::TrimXml | ( | const std::string & | str | ) |
| string Moses::TrimXml | ( | const string & | str | ) |
Remove "<" and ">" from XML tag
| str | xml token to be stripped |
Referenced by ProcessAndStripXMLTags().

| float Moses::UntransformLMScore | ( | float | logNScore | ) | [inline] |
| float Moses::UntransformScore | ( | float | score | ) | [inline] |
transform natural log score to prob. Not currently used
Referenced by doMBR().

| const size_t Moses::ARRAY_SIZE_INCR = 10 |
| const float Moses::DEFAULT_BEAM_WIDTH = 0.00001f |
Referenced by Moses::StaticData::LoadData().
| const size_t Moses::DEFAULT_CUBE_PRUNING_DIVERSITY = 0 |
Referenced by Moses::StaticData::LoadData().
| const size_t Moses::DEFAULT_CUBE_PRUNING_POP_LIMIT = 1000 |
Referenced by Moses::StaticData::LoadData().
| const float Moses::DEFAULT_EARLY_DISCARDING_THRESHOLD = 0.0f |
Referenced by Moses::StaticData::LoadData().
| const size_t Moses::DEFAULT_MAX_CHART_SPAN = 10 |
Referenced by Moses::StaticData::GetDecodeStepVL().
| const size_t Moses::DEFAULT_MAX_HYPOSTACK_SIZE = 200 |
Referenced by Moses::StaticData::LoadData().
| const size_t Moses::DEFAULT_MAX_PART_TRANS_OPT_SIZE = 10000 |
Referenced by Moses::StaticData::LoadData().
| const size_t Moses::DEFAULT_MAX_PHRASE_LENGTH = 20 |
Referenced by Moses::StaticData::LoadData().
| const size_t Moses::DEFAULT_MAX_TRANS_OPT_CACHE_SIZE = 10000 |
Referenced by Moses::StaticData::LoadData().
| const size_t Moses::DEFAULT_MAX_TRANS_OPT_SIZE = 5000 |
Referenced by Moses::StaticData::LoadChartDecodingParameters(), and Moses::StaticData::LoadData().
| const float Moses::DEFAULT_TRANSLATION_OPTION_THRESHOLD = 0.0f |
Referenced by Moses::StaticData::LoadData().
| const size_t Moses::DEFAULT_VERBOSE_LEVEL = 1 |
Referenced by GetUserTime(), PrintUserTime(), and ResetUserTime().
| const float Moses::LOWEST_SCORE = -100.0f |
| const size_t Moses::MAX_MSG_QUEUE = 5 |
| const size_t Moses::MAX_NUM_FACTORS = 4 |
| const int Moses::NUM_LANGUAGES = 2 |
1.5.9