#include <Hypergraph.h>
Public Member Functions | |
Edge () | |
void | AddWord (const Vocab::Entry *word) |
void | AddChild (size_t child) |
void | AddFeature (const StringPiece &name, FeatureStatsType value) |
const WordVec & | Words () const |
const FeaturePtr & | Features () const |
void | SetFeatures (const FeaturePtr &features) |
const std::vector< size_t > & | Children () const |
FeatureStatsType | GetScore (const SparseVector &weights) const |
Definition at line 135 of file Hypergraph.h.
MosesTuning::Edge::Edge | ( | ) | [inline] |
Definition at line 138 of file Hypergraph.h.
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().
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().
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().
const std::vector<size_t>& MosesTuning::Edge::Children | ( | ) | const [inline] |
Definition at line 168 of file Hypergraph.h.
Referenced by MosesTuning::Graph::Prune().
const FeaturePtr& MosesTuning::Edge::Features | ( | ) | const [inline] |
Definition at line 160 of file Hypergraph.h.
Referenced by MosesTuning::Graph::Prune().
FeatureStatsType MosesTuning::Edge::GetScore | ( | const SparseVector & | weights | ) | const [inline] |
Definition at line 172 of file Hypergraph.h.
References MosesTuning::inner_product().
void MosesTuning::Edge::SetFeatures | ( | const FeaturePtr & | features | ) | [inline] |
Definition at line 164 of file Hypergraph.h.
Referenced by MosesTuning::Graph::Prune().
const WordVec& MosesTuning::Edge::Words | ( | ) | const [inline] |
Definition at line 156 of file Hypergraph.h.
Referenced by MosesTuning::Graph::Prune().