void SkeletonStatelessFF::EvaluateWithSourceContext(const InputType &input , const InputPath &inputPath , const TargetPhrase &targetPhrase , const StackVec *stackVec , ScoreComponentCollection &scoreBreakdown , ScoreComponentCollection *estimatedScores) const { if (targetPhrase.GetNumNonTerminals()) { vector<float> newScores(m_numScoreComponents); newScores[0] = - std::numeric_limits<float>::infinity(); scoreBreakdown.PlusEquals(this, newScores); } }
void SyntaxRHS::Evaluate(const InputType &input , const InputPath &inputPath , const TargetPhrase &targetPhrase , const StackVec *stackVec , ScoreComponentCollection &scoreBreakdown , ScoreComponentCollection *estimatedFutureScore) const { assert(stackVec); for (size_t i = 0; i < stackVec->size(); ++i) { const ChartCellLabel &cell = *stackVec->at(i); } if (targetPhrase.GetNumNonTerminals()) { vector<float> newScores(m_numScoreComponents); newScores[0] = - std::numeric_limits<float>::infinity(); scoreBreakdown.PlusEquals(this, newScores); } }