Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'moses/src/PhraseDictionaryTreeAdaptor.h')
-rw-r--r--moses/src/PhraseDictionaryTreeAdaptor.h60
1 files changed, 0 insertions, 60 deletions
diff --git a/moses/src/PhraseDictionaryTreeAdaptor.h b/moses/src/PhraseDictionaryTreeAdaptor.h
deleted file mode 100644
index e539e71c8..000000000
--- a/moses/src/PhraseDictionaryTreeAdaptor.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// $Id$
-
-#ifndef PHRASEDICTIONARYTREEADAPTOR_H_
-#define PHRASEDICTIONARYTREEADAPTOR_H_
-#include <vector>
-#include "TypeDef.h"
-#include "PhraseDictionary.h"
-#include "TargetPhraseCollection.h"
-
-class Phrase;
-class PDTAimp;
-class WordsRange;
-class InputType;
-
-class PhraseDictionaryTreeAdaptor : public PhraseDictionaryBase {
- typedef PhraseDictionaryBase MyBase;
- PDTAimp *imp;
- friend class PDTAimp;
- public:
- PhraseDictionaryTreeAdaptor(size_t noScoreComponent,unsigned numInputScores);
- virtual ~PhraseDictionaryTreeAdaptor();
-
- // enable/disable caching
- // you enable caching if you request the target candidates for a source phrase multiple times
- // if you do caching somewhere else, disable it
- // good settings for current Moses: disable for first factor, enable for other factors
- // default: enable
-
- void EnableCache();
- void DisableCache();
-
- // initialize ...
- void Create(const std::vector<FactorType> &input
- , const std::vector<FactorType> &output
- , FactorCollection &factorCollection
- , const std::string &filePath
- , const std::vector<float> &weight
- , size_t maxTargetPhrase
- , const LMList &languageModels
- , float weightWP
-
- );
-
- // get translation candidates for a given source phrase
- // returns null pointer if nothing found
- TargetPhraseCollection const* GetTargetPhraseCollection(Phrase const &src) const;
- TargetPhraseCollection const* GetTargetPhraseCollection(InputType const& src,WordsRange const & srcRange) const;
-
- // clean up temporary memory etc.
- void CleanUp();
-
- void InitializeForInput(InputType const& source);
-
- // change model scaling factors
- void SetWeightTransModel(const std::vector<float> &weightT);
-
- // this function can be only used for UNKNOWN source phrases
- void AddEquivPhrase(const Phrase &source, const TargetPhrase &targetPhrase);
-};
-#endif