diff options
author | Nicola Bertoldi <bertoldi@fbk.eu> | 2014-05-19 17:34:27 +0400 |
---|---|---|
committer | Nicola Bertoldi <bertoldi@fbk.eu> | 2014-05-19 17:34:27 +0400 |
commit | 2f3cd5e2fe54f0352eee4657ea91e0039073a95a (patch) | |
tree | 535b1f445dd9f762997bc0dd0ef7a17f9500e250 /moses/WordLattice.cpp | |
parent | d85bd05e1827ceb917ab3664fee34fd05725eab6 (diff) |
beautify
Diffstat (limited to 'moses/WordLattice.cpp')
-rw-r--r-- | moses/WordLattice.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/moses/WordLattice.cpp b/moses/WordLattice.cpp index cc91345cb..269ad46ca 100644 --- a/moses/WordLattice.cpp +++ b/moses/WordLattice.cpp @@ -49,11 +49,11 @@ void WordLattice::Print(std::ostream& out) const out<<"\n\n"; } -int +int WordLattice:: InitializeFromPCNDataType -(const PCN::CN& cn, - const std::vector<FactorType>& factorOrder, +(const PCN::CN& cn, + const std::vector<FactorType>& factorOrder, const std::string& debug_line) { const StaticData &staticData = StaticData::Instance(); @@ -78,20 +78,20 @@ InitializeFromPCNDataType //check for correct number of link parameters if (alt.m_denseFeatures.size() != numInputScores) { - TRACE_ERR("ERROR: need " << numInputScores - << " link parameters, found " - << alt.m_denseFeatures.size() - << " while reading column " << i - << " from " << debug_line << "\n"); + TRACE_ERR("ERROR: need " << numInputScores + << " link parameters, found " + << alt.m_denseFeatures.size() + << " while reading column " << i + << " from " << debug_line << "\n"); return false; } //check each element for bounds std::vector<float>::const_iterator probsIterator; data[i][j].second = std::vector<float>(0); - for(probsIterator = alt.m_denseFeatures.begin(); - probsIterator < alt.m_denseFeatures.end(); - probsIterator++) { + for(probsIterator = alt.m_denseFeatures.begin(); + probsIterator < alt.m_denseFeatures.end(); + probsIterator++) { IFVERBOSE(1) { if (*probsIterator < 0.0f) { TRACE_ERR("WARN: neg probability: " << *probsIterator << "\n"); |