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:
authorHieu Hoang <hieu@hoang.co.uk>2013-05-31 03:00:21 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-05-31 03:00:21 +0400
commit65d2d68bc5aa405e74986c3c1a7b3bcf845ee231 (patch)
treee6e11fe12011a7374b904b6bd16ab4dd96a2e80f
parentd9bd7dc818ade5326e408c9554cfee81e5ca808e (diff)
beautify
-rw-r--r--moses/FactorTypeSet.cpp10
-rw-r--r--moses/FeatureVector.cpp6
-rw-r--r--moses/TranslationModel/PhraseDictionary.h5
3 files changed, 11 insertions, 10 deletions
diff --git a/moses/FactorTypeSet.cpp b/moses/FactorTypeSet.cpp
index 44379e9f8..9ead1053a 100644
--- a/moses/FactorTypeSet.cpp
+++ b/moses/FactorTypeSet.cpp
@@ -36,11 +36,11 @@ FactorMask::FactorMask(const vector<FactorType> &factors)
bool FactorMask::IsUseable(const FactorMask &other) const
{
for (size_t i = 0; i < other.size(); ++i) {
- if (other[i]) {
- if (!this->operator[](i) ) {
- return false;
- }
- }
+ if (other[i]) {
+ if (!this->operator[](i) ) {
+ return false;
+ }
+ }
}
return true;
diff --git a/moses/FeatureVector.cpp b/moses/FeatureVector.cpp
index 359c22154..b495e811f 100644
--- a/moses/FeatureVector.cpp
+++ b/moses/FeatureVector.cpp
@@ -819,9 +819,9 @@ void FVector::merge(const FVector &other)
// sparse
FNVmap::const_iterator iter;
for (iter = other.m_features.begin(); iter != other.m_features.end(); ++iter) {
- const FName &otherKey = iter->first;
- const FValue otherVal = iter->second;
- m_features[otherKey] = otherVal;
+ const FName &otherKey = iter->first;
+ const FValue otherVal = iter->second;
+ m_features[otherKey] = otherVal;
}
}
diff --git a/moses/TranslationModel/PhraseDictionary.h b/moses/TranslationModel/PhraseDictionary.h
index ca150e584..59195f3f4 100644
--- a/moses/TranslationModel/PhraseDictionary.h
+++ b/moses/TranslationModel/PhraseDictionary.h
@@ -92,8 +92,9 @@ public:
return m_filePath;
}
- const std::vector<FeatureFunction*> &GetFeaturesToApply() const
- { return m_featuresToApply; }
+ const std::vector<FeatureFunction*> &GetFeaturesToApply() const {
+ return m_featuresToApply;
+ }
protected:
size_t m_tableLimit;