mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-11-10 10:59:21 +03:00
delete different calc functions
This commit is contained in:
parent
c84605a241
commit
d9b1784373
@ -253,10 +253,6 @@ int Hypothesis::RecombineCompare(const Hypothesis &compare) const
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Hypothesis::IncorporateTransOptScores() {
|
||||
m_currScoreBreakdown.PlusEquals(m_transOpt->GetScoreBreakdown());
|
||||
}
|
||||
|
||||
void Hypothesis::EvaluateWith(const StatefulFeatureFunction &sfff,
|
||||
int state_idx) {
|
||||
m_ffStates[state_idx] = sfff.Evaluate(
|
||||
|
@ -260,7 +260,6 @@ public:
|
||||
}
|
||||
|
||||
// Added by oliver.wilson@ed.ac.uk for async lm stuff.
|
||||
void IncorporateTransOptScores();
|
||||
void EvaluateWith(const StatefulFeatureFunction &sfff, int state_idx);
|
||||
void EvaluateWith(const StatelessFeatureFunction &slff);
|
||||
|
||||
|
@ -156,9 +156,6 @@ void SearchNormalBatch::EvalAndMergePartialHypos() {
|
||||
++partial_hypo_iter) {
|
||||
Hypothesis* hypo = *partial_hypo_iter;
|
||||
|
||||
// Incorporate the translation option scores.
|
||||
hypo->IncorporateTransOptScores();
|
||||
|
||||
// Evaluate with other ffs.
|
||||
std::map<int, StatefulFeatureFunction*>::iterator sfff_iter;
|
||||
for (sfff_iter = m_stateful_ffs.begin();
|
||||
|
Loading…
Reference in New Issue
Block a user