MosesTuning::Edge Class Reference

#include <Hypergraph.h>

List of all members.

Public Member Functions

 Edge ()
void AddWord (const Vocab::Entry *word)
void AddChild (size_t child)
void AddFeature (const StringPiece &name, FeatureStatsType value)
const WordVecWords () const
const FeaturePtrFeatures () const
void SetFeatures (const FeaturePtr &features)
const std::vector< size_t > & Children () const
FeatureStatsType GetScore (const SparseVector &weights) const


Detailed Description

An edge has 1 head vertex, 0..n child (tail) vertices, a list of words and a feature vector.

Definition at line 135 of file Hypergraph.h.


Constructor & Destructor Documentation

MosesTuning::Edge::Edge (  )  [inline]

Definition at line 138 of file Hypergraph.h.


Member Function Documentation

void MosesTuning::Edge::AddChild ( size_t  child  )  [inline]

Definition at line 146 of file Hypergraph.h.

Referenced by BOOST_AUTO_TEST_CASE(), and MosesTuning::Graph::Prune().

Here is the caller graph for this function:

void MosesTuning::Edge::AddFeature ( const StringPiece name,
FeatureStatsType  value 
) [inline]

Definition at line 150 of file Hypergraph.h.

References StringPiece::as_string().

Referenced by BOOST_AUTO_TEST_CASE().

Here is the call graph for this function:

Here is the caller graph for this function:

void MosesTuning::Edge::AddWord ( const Vocab::Entry word  )  [inline]

Definition at line 142 of file Hypergraph.h.

Referenced by BOOST_AUTO_TEST_CASE(), and MosesTuning::Graph::Prune().

Here is the caller graph for this function:

const std::vector<size_t>& MosesTuning::Edge::Children (  )  const [inline]

Definition at line 168 of file Hypergraph.h.

Referenced by MosesTuning::Graph::Prune().

Here is the caller graph for this function:

const FeaturePtr& MosesTuning::Edge::Features (  )  const [inline]

Definition at line 160 of file Hypergraph.h.

Referenced by MosesTuning::Graph::Prune().

Here is the caller graph for this function:

FeatureStatsType MosesTuning::Edge::GetScore ( const SparseVector weights  )  const [inline]

Definition at line 172 of file Hypergraph.h.

References MosesTuning::inner_product().

Here is the call graph for this function:

void MosesTuning::Edge::SetFeatures ( const FeaturePtr features  )  [inline]

Definition at line 164 of file Hypergraph.h.

Referenced by MosesTuning::Graph::Prune().

Here is the caller graph for this function:

const WordVec& MosesTuning::Edge::Words (  )  const [inline]

Definition at line 156 of file Hypergraph.h.

Referenced by MosesTuning::Graph::Prune().

Here is the caller graph for this function:


The documentation for this class was generated from the following file:

Generated on Thu Jul 6 00:34:16 2017 for Moses by  doxygen 1.5.9