mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Hypothesis::IncorporateTransOptScores() {
|
|
||||||
m_currScoreBreakdown.PlusEquals(m_transOpt->GetScoreBreakdown());
|
|
||||||
}
|
|
||||||
|
|
||||||
void Hypothesis::EvaluateWith(const StatefulFeatureFunction &sfff,
|
void Hypothesis::EvaluateWith(const StatefulFeatureFunction &sfff,
|
||||||
int state_idx) {
|
int state_idx) {
|
||||||
m_ffStates[state_idx] = sfff.Evaluate(
|
m_ffStates[state_idx] = sfff.Evaluate(
|
||||||
|
@ -260,7 +260,6 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Added by oliver.wilson@ed.ac.uk for async lm stuff.
|
// Added by oliver.wilson@ed.ac.uk for async lm stuff.
|
||||||
void IncorporateTransOptScores();
|
|
||||||
void EvaluateWith(const StatefulFeatureFunction &sfff, int state_idx);
|
void EvaluateWith(const StatefulFeatureFunction &sfff, int state_idx);
|
||||||
void EvaluateWith(const StatelessFeatureFunction &slff);
|
void EvaluateWith(const StatelessFeatureFunction &slff);
|
||||||
|
|
||||||
|
@ -156,9 +156,6 @@ void SearchNormalBatch::EvalAndMergePartialHypos() {
|
|||||||
++partial_hypo_iter) {
|
++partial_hypo_iter) {
|
||||||
Hypothesis* hypo = *partial_hypo_iter;
|
Hypothesis* hypo = *partial_hypo_iter;
|
||||||
|
|
||||||
// Incorporate the translation option scores.
|
|
||||||
hypo->IncorporateTransOptScores();
|
|
||||||
|
|
||||||
// Evaluate with other ffs.
|
// Evaluate with other ffs.
|
||||||
std::map<int, StatefulFeatureFunction*>::iterator sfff_iter;
|
std::map<int, StatefulFeatureFunction*>::iterator sfff_iter;
|
||||||
for (sfff_iter = m_stateful_ffs.begin();
|
for (sfff_iter = m_stateful_ffs.begin();
|
||||||
|
Loading…
Reference in New Issue
Block a user