MosesTuning::Vocab Class Reference

#include <Hypergraph.h>

Collaboration diagram for MosesTuning::Vocab:

Collaboration graph
[legend]

List of all members.

Classes

struct  Equals
struct  Hash

Public Types

typedef std::pair< const char
*const, WordIndex
Entry

Public Member Functions

 Vocab ()
const EntryFindOrAdd (const StringPiece &str)
const EntryBos () const
const EntryEos () const


Detailed Description

Definition at line 86 of file Hypergraph.h.


Member Typedef Documentation

typedef std::pair<const char *const, WordIndex> MosesTuning::Vocab::Entry

Definition at line 91 of file Hypergraph.h.


Constructor & Destructor Documentation

MosesTuning::Vocab::Vocab (  ) 

Definition at line 44 of file Hypergraph.cpp.


Member Function Documentation

const Entry& MosesTuning::Vocab::Bos (  )  const [inline]

Definition at line 95 of file Hypergraph.h.

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

Here is the caller graph for this function:

const Entry& MosesTuning::Vocab::Eos (  )  const [inline]

Definition at line 99 of file Hypergraph.h.

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

Here is the caller graph for this function:

const Vocab::Entry & MosesTuning::Vocab::FindOrAdd ( const StringPiece str  ) 

Definition at line 48 of file Hypergraph.cpp.

References util::Pool::Allocate(), StringPiece::data(), Moses::Equals(), and StringPiece::size().

Referenced by MosesTuning::ReferenceSet::AddLine(), and BOOST_AUTO_TEST_CASE().

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