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:
authorNicola Bertoldi <bertoldi@fbk.eu>2014-12-13 14:52:47 +0300
committerNicola Bertoldi <bertoldi@fbk.eu>2014-12-13 14:52:47 +0300
commite4eb201c52be74fee74399a6f35fcbe8eb85d834 (patch)
tree7792ef96d63262f6e28f1857741e1162c7dccbc4 /moses/StaticData.h
parentcea2d9d8bb34a81660974cae20d66aefec4e0468 (diff)
parenta0b6b6a341e74b47bbef4652ad7fd928cf91e17c (diff)
merged master into dynamic-models and solved conflicts
Diffstat (limited to 'moses/StaticData.h')
-rw-r--r--moses/StaticData.h41
1 files changed, 20 insertions, 21 deletions
diff --git a/moses/StaticData.h b/moses/StaticData.h
index 96b1972e2..8d399bfb2 100644
--- a/moses/StaticData.h
+++ b/moses/StaticData.h
@@ -206,7 +206,10 @@ protected:
FactorType m_placeHolderFactor;
bool m_useLegacyPT;
- bool m_adjacentOnly;
+ bool m_defaultNonTermOnlyForEmptyRange;
+ bool m_useS2TDecoder;
+ S2TParsingAlgorithm m_s2tParsingAlgorithm;
+ bool m_printNBestTrees;
FeatureRegistry m_registry;
PhrasePropertyFactory m_phrasePropertyFactory;
@@ -216,9 +219,6 @@ protected:
void LoadChartDecodingParameters();
void LoadNonTerminals();
- //! helper fn to set bool param from ini file/command line
- void SetBooleanParameter(bool *paramter, std::string parameterName, bool defaultValue);
-
//! load decoding steps
bool LoadDecodeGraphs();
@@ -269,8 +269,8 @@ public:
bool LoadData(Parameter *parameter);
void ClearData();
- const PARAM_VEC &GetParam(const std::string &paramName) const {
- return m_parameter->GetParam(paramName);
+ const Parameter &GetParameter() const {
+ return *m_parameter;
}
const std::vector<FactorType> &GetInputFactorOrder() const {
@@ -399,10 +399,6 @@ public:
return m_minlexrMemory;
}
- const std::vector<std::string> &GetDescription() const {
- return m_parameter->GetParam("description");
- }
-
// for mert
size_t GetNBestSize() const {
return m_nBestSize;
@@ -465,10 +461,6 @@ public:
return m_allWeights.GetScoresForProducer(sp);
}
- float GetSparseWeight(const FName& featureName) const {
- return m_allWeights.GetSparseWeight(featureName);
- }
-
//Weights for feature with fixed number of values
void SetWeights(const FeatureFunction* sp, const std::vector<float>& weights);
@@ -778,15 +770,8 @@ public:
return m_softMatchesMap;
}
-
- bool AdjacentOnly() const {
- return m_adjacentOnly;
- }
-
-
void ResetWeights(const std::string &denseWeights, const std::string &sparseFile);
-
// need global access for output of tree structure
const StatefulFeatureFunction* GetTreeStructure() const {
return m_treeStructure;
@@ -796,6 +781,20 @@ public:
m_treeStructure = treeStructure;
}
+ bool GetDefaultNonTermOnlyForEmptyRange() const
+ { return m_defaultNonTermOnlyForEmptyRange; }
+
+ bool UseS2TDecoder() const {
+ return m_useS2TDecoder;
+ }
+ S2TParsingAlgorithm GetS2TParsingAlgorithm() const {
+ return m_s2tParsingAlgorithm;
+ }
+
+ bool PrintNBestTrees() const {
+ return m_printNBestTrees;
+ }
+
};
}