00001 #pragma once 00002 00003 #include "moses/ScoreComponentCollection.h" 00004 #include "moses/TargetPhrase.h" 00005 00006 namespace Moses 00007 { 00008 namespace Syntax 00009 { 00010 00011 // A SHyperedge label. 00012 // 00013 struct SLabel { 00014 // Deltas for individual feature scores. i.e. this object records the change 00015 // in each feature score that results from applying the rule associated with 00016 // this hyperedge. 00017 ScoreComponentCollection deltas; 00018 00019 // Total derivation score to be used for comparison in beam search (i.e. 00020 // including future cost estimates). This is the sum of the 1-best 00021 // subderivations' future scores + deltas. 00022 float futureScore; 00023 00024 // Target-side of the grammar rule. 00025 const TargetPhrase *translation; 00026 00027 // Input weight of this hyperedge (e.g. from weighted input forest). 00028 float inputWeight; 00029 }; 00030 00031 } // Syntax 00032 } // Moses