Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SLabel.h « Syntax « moses - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ecb78d74bee41e72abff7c01a03023de83837985 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#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