diff options
author | Nicola Bertoldi <bertoldi@fbk.eu> | 2014-05-19 17:35:08 +0400 |
---|---|---|
committer | Nicola Bertoldi <bertoldi@fbk.eu> | 2014-05-19 17:35:08 +0400 |
commit | 20b3e8929e93c40e0f1ec61b9268330fe59607f9 (patch) | |
tree | ae6102023df2adfd6bfb287cbc6d89caad5afeac /phrase-extract/DomainFeature.cpp | |
parent | 2f3cd5e2fe54f0352eee4657ea91e0039073a95a (diff) |
beautify
Diffstat (limited to 'phrase-extract/DomainFeature.cpp')
-rw-r--r-- | phrase-extract/DomainFeature.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/phrase-extract/DomainFeature.cpp b/phrase-extract/DomainFeature.cpp index 2f99a8709..0526d058b 100644 --- a/phrase-extract/DomainFeature.cpp +++ b/phrase-extract/DomainFeature.cpp @@ -55,9 +55,9 @@ DomainFeature::DomainFeature(const string& domainFile) : m_propertyKey("domain") m_domain.load(domainFile); } -void DomainFeature::addPropertiesToPhrasePair(ExtractionPhrasePair &phrasePair, - float count, - int sentenceId) const +void DomainFeature::addPropertiesToPhrasePair(ExtractionPhrasePair &phrasePair, + float count, + int sentenceId) const { std::string value = m_domain.getDomainOfSentence(sentenceId); phrasePair.AddProperty(m_propertyKey, value, count); @@ -69,13 +69,13 @@ void DomainFeature::add(const ScoreFeatureContext& context, { const map<string,float> *domainCount = context.phrasePair.GetProperty(m_propertyKey); assert( domainCount != NULL ); - add(*domainCount, - context.phrasePair.GetCount(), - context.maybeLog, + add(*domainCount, + context.phrasePair.GetCount(), + context.maybeLog, denseValues, sparseValues); } -void SubsetDomainFeature::add(const map<string,float>& domainCount, +void SubsetDomainFeature::add(const map<string,float>& domainCount, float count, const MaybeLog& maybeLog, std::vector<float>& denseValues, |