MosesTuning::Graph Class Reference

#include <Hypergraph.h>

Collaboration diagram for MosesTuning::Graph:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Graph (Vocab &vocab)
void SetCounts (std::size_t vertices, std::size_t edges)
VocabMutableVocab ()
EdgeNewEdge ()
VertexNewVertex ()
const VertexGetVertex (std::size_t index) const
EdgeGetEdge (std::size_t index)
void Prune (Graph *newGraph, const SparseVector &weights, size_t minEdgeCount) const
std::size_t VertexSize () const
std::size_t EdgeSize () const
bool IsBoundary (const Vocab::Entry *word) const


Detailed Description

Definition at line 213 of file Hypergraph.h.


Constructor & Destructor Documentation

MosesTuning::Graph::Graph ( Vocab vocab  )  [inline]

Definition at line 216 of file Hypergraph.h.


Member Function Documentation

std::size_t MosesTuning::Graph::EdgeSize (  )  const [inline]

Definition at line 251 of file Hypergraph.h.

References MosesTuning::FixedAllocator< T >::Size().

Referenced by BOOST_AUTO_TEST_CASE().

Here is the call graph for this function:

Here is the caller graph for this function:

Edge& MosesTuning::Graph::GetEdge ( std::size_t  index  )  [inline]

Definition at line 239 of file Hypergraph.h.

const Vertex& MosesTuning::Graph::GetVertex ( std::size_t  index  )  const [inline]

Definition at line 235 of file Hypergraph.h.

Referenced by BOOST_AUTO_TEST_CASE(), MosesTuning::HgBleuScorer::HgBleuScorer(), and MosesTuning::Viterbi().

Here is the caller graph for this function:

bool MosesTuning::Graph::IsBoundary ( const Vocab::Entry word  )  const [inline]

Definition at line 255 of file Hypergraph.h.

References MosesTuning::Vocab::Bos(), and MosesTuning::Vocab::Eos().

Referenced by MosesTuning::Viterbi().

Here is the call graph for this function:

Here is the caller graph for this function:

Vocab& MosesTuning::Graph::MutableVocab (  )  [inline]

Definition at line 223 of file Hypergraph.h.

Edge* MosesTuning::Graph::NewEdge (  )  [inline]

Definition at line 227 of file Hypergraph.h.

References MosesTuning::FixedAllocator< T >::New().

Referenced by BOOST_AUTO_TEST_CASE(), and Prune().

Here is the call graph for this function:

Here is the caller graph for this function:

Vertex* MosesTuning::Graph::NewVertex (  )  [inline]

Definition at line 231 of file Hypergraph.h.

References MosesTuning::FixedAllocator< T >::New().

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

Here is the call graph for this function:

Here is the caller graph for this function:

void MosesTuning::Graph::Prune ( Graph newGraph,
const SparseVector weights,
size_t  minEdgeCount 
) const

void MosesTuning::Graph::SetCounts ( std::size_t  vertices,
std::size_t  edges 
) [inline]

Definition at line 218 of file Hypergraph.h.

References MosesTuning::FixedAllocator< T >::Init().

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

Here is the call graph for this function:

Here is the caller graph for this function:

std::size_t MosesTuning::Graph::VertexSize (  )  const [inline]

Definition at line 248 of file Hypergraph.h.

References MosesTuning::FixedAllocator< T >::Size().

Referenced by BOOST_AUTO_TEST_CASE(), MosesTuning::HgBleuScorer::HgBleuScorer(), and MosesTuning::Viterbi().

Here is the call graph for this function:

Here is the caller graph for this function:


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

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