mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
beautify
This commit is contained in:
parent
78cdf82de8
commit
302eec8283
@ -94,8 +94,7 @@ void FeatureFunction::SetParameter(const std::string& key, const std::string& va
|
||||
{
|
||||
if (key == "tuneable") {
|
||||
m_tuneable = Scan<bool>(value);
|
||||
}
|
||||
else if (key == "filterable") { //ignore
|
||||
} else if (key == "filterable") { //ignore
|
||||
} else {
|
||||
UTIL_THROW(util::Exception, "Unknown argument " << key << "=" << value);
|
||||
}
|
||||
|
@ -301,13 +301,13 @@ GetLexicalWeight(const PhrasePair& pp) const
|
||||
++sc[sx];
|
||||
++tc[tx];
|
||||
#if 0
|
||||
cout << m_srcVocab->GetWord(sw[s]) << " -> "
|
||||
<< m_trgVocab->GetWord(tw[t]) << " "
|
||||
<< m_wrd_cooc.pfwd(sw[s],tw[t]) << " "
|
||||
<< m_wrd_cooc.pbwd(sw[s],tw[t]) << " "
|
||||
<< sp[sx] << " (" << sc[sx] << ") "
|
||||
<< tp[tx] << " (" << tc[tx] << ") "
|
||||
<< endl;
|
||||
cout << m_srcVocab->GetWord(sw[s]) << " -> "
|
||||
<< m_trgVocab->GetWord(tw[t]) << " "
|
||||
<< m_wrd_cooc.pfwd(sw[s],tw[t]) << " "
|
||||
<< m_wrd_cooc.pbwd(sw[s],tw[t]) << " "
|
||||
<< sp[sx] << " (" << sc[sx] << ") "
|
||||
<< tp[tx] << " (" << tc[tx] << ") "
|
||||
<< endl;
|
||||
#endif
|
||||
}
|
||||
pair<float,float> ret(1,1);
|
||||
|
Loading…
Reference in New Issue
Block a user