mosesdecoder/moses/Syntax/SLabel.h
Phil Williams d317fdc373 Store SHyperedge feature scores as deltas instead of totals
This mirrors the change made for the chart decoder in commit 465b4756...
2015-11-16 19:23:27 +00:00

33 lines
794 B
C++

#pragma once
#include "moses/ScoreComponentCollection.h"
#include "moses/TargetPhrase.h"
namespace Moses
{
namespace Syntax
{
// A SHyperedge label.
//
struct SLabel {
// Deltas for individual feature scores. i.e. this object records the change
// in each feature score that results from applying the rule associated with
// this hyperedge.
ScoreComponentCollection deltas;
// Total derivation score to be used for comparison in beam search (i.e.
// including future cost estimates). This is the sum of the 1-best
// subderivations' future scores + deltas.
float futureScore;
// Target-side of the grammar rule.
const TargetPhrase *translation;
// Input weight of this hyperedge (e.g. from weighted input forest).
float inputWeight;
};
} // Syntax
} // Moses