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:
authorEva Hasler <ehasler@saxnot.inf.ed.ac.uk>2012-06-01 04:49:42 +0400
committerEva Hasler <ehasler@saxnot.inf.ed.ac.uk>2012-06-01 04:49:42 +0400
commit6a6a35c65eaeb42b3f1aa44237332dd6f1bc652c (patch)
tree8a02d798832fe36e9efb60f8a2e30d9368728a13 /moses/src/PhraseDictionary.h
parent62d10a2af3f9509bf7680b8549ff1ffd9774dd83 (diff)
fix start weights in experiment.perl, add hypothesis queue for picking hope and fear translations, add variations to 1slack formulation
Diffstat (limited to 'moses/src/PhraseDictionary.h')
-rw-r--r--[-rwxr-xr-x]moses/src/PhraseDictionary.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/moses/src/PhraseDictionary.h b/moses/src/PhraseDictionary.h
index e8f478079..18b48436e 100755..100644
--- a/moses/src/PhraseDictionary.h
+++ b/moses/src/PhraseDictionary.h
@@ -69,7 +69,7 @@ public:
return Translate;
}
const PhraseDictionaryFeature* GetFeature() const;
-
+ size_t GetDictIndex() const;
//! find list of translations that can translates src. Only for phrase input
virtual const TargetPhraseCollection *GetTargetPhraseCollection(const Phrase& src) const=0;
@@ -105,6 +105,7 @@ public:
, const std::vector<FactorType> &output
, const std::string &filePath
, const std::vector<float> &weight
+ , size_t dictIndex
, size_t tableLimit
, const std::string &targetFile
, const std::string &alignmentsFile);
@@ -131,6 +132,10 @@ public:
//Get the dictionary. Be sure to initialise it first.
const PhraseDictionary* GetDictionary() const;
PhraseDictionary* GetDictionary();
+ size_t GetDictIndex() const;
+
+protected:
+ size_t m_dictIndex;
private:
/** Load the appropriate phrase table */
@@ -138,7 +143,6 @@ private:
unsigned m_numInputScores;
std::string m_filePath;
- std::vector<float> m_weight;
size_t m_tableLimit;
//We instantiate either the the thread-safe or non-thread-safe dictionary,
//but not both. The thread-safe one can be instantiated in the constructor and shared