mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-10-26 19:37:58 +03:00
d317fdc373
This mirrors the change made for the chart decoder in commit 465b4756...
33 lines
794 B
C++
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
|