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:
authorBarry Haddow <barry.haddow@gmail.com>2012-12-21 19:39:25 +0400
committerBarry Haddow <barry.haddow@gmail.com>2012-12-21 19:39:25 +0400
commit861792bfc5bc930197dd99f36126f25f1b13470c (patch)
treed16451631e322184780db2a6e14686ac9c6a0e89 /phrase-extract/PhraseExtractionOptions.h
parent8fe900d312b9fc931de802036fa50700eefe2c7d (diff)
extract can read an instance weights file.
Still have to parallelise.
Diffstat (limited to 'phrase-extract/PhraseExtractionOptions.h')
-rw-r--r--phrase-extract/PhraseExtractionOptions.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/phrase-extract/PhraseExtractionOptions.h b/phrase-extract/PhraseExtractionOptions.h
index 6c7966736..2daeaf0ca 100644
--- a/phrase-extract/PhraseExtractionOptions.h
+++ b/phrase-extract/PhraseExtractionOptions.h
@@ -46,6 +46,7 @@ class PhraseExtractionOptions {
bool includeSentenceIdFlag; //include sentence id in extract file
bool onlyOutputSpanInfo;
bool gzOutput;
+ std::string instanceWeightsFile; //weights for each sentence
public:
PhraseExtractionOptions(const int initmaxPhraseLength):
@@ -99,7 +100,11 @@ public:
}
void initGzOutput (const bool initgzOutput){
gzOutput= initgzOutput;
- }
+ }
+ void initInstanceWeightsFile(const char* initInstanceWeightsFile) {
+ instanceWeightsFile = std::string(initInstanceWeightsFile);
+ }
+
// functions for getting values
bool isAllModelsOutputFlag() const {
return allModelsOutputFlag;
@@ -136,7 +141,10 @@ public:
}
bool isGzOutput () const {
return gzOutput;
- }
+ }
+ std::string getInstanceWeightsFile() const {
+ return instanceWeightsFile;
+ }
};
}