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 'OnDiskPt/TargetPhrase.h')
-rw-r--r--OnDiskPt/TargetPhrase.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/OnDiskPt/TargetPhrase.h b/OnDiskPt/TargetPhrase.h
index b41b788d5..2197372fc 100644
--- a/OnDiskPt/TargetPhrase.h
+++ b/OnDiskPt/TargetPhrase.h
@@ -102,21 +102,23 @@ public:
return m_scores[ind];
}
- Moses::TargetPhrase *ConvertToMoses(const std::vector<Moses::FactorType> &inputFactors
- , const std::vector<Moses::FactorType> &outputFactors
- , const Vocab &vocab
- , const Moses::PhraseDictionary &phraseDict
- , const std::vector<float> &weightT
- , bool isSyntax) const;
uint64_t ReadOtherInfoFromFile(uint64_t filePos, std::fstream &fileTPColl);
uint64_t ReadFromFile(std::fstream &fileTP);
virtual void DebugPrint(std::ostream &out, const Vocab &vocab) const;
+ const std::string &GetProperty() const {
+ return m_property;
+ }
+
void SetProperty(const std::string &value) {
m_property = value;
}
+ const std::string &GetSparseFeatures() const {
+ return m_sparseFeatures;
+ }
+
void SetSparseFeatures(const std::string &value) {
m_sparseFeatures = value;
}