#include <Hypergraph.h>
Classes | |
struct | Equals |
struct | Hash |
Public Types | |
typedef std::pair< const char *const, WordIndex > | Entry |
Public Member Functions | |
Vocab () | |
const Entry & | FindOrAdd (const StringPiece &str) |
const Entry & | Bos () const |
const Entry & | Eos () const |
Definition at line 86 of file Hypergraph.h.
typedef std::pair<const char *const, WordIndex> MosesTuning::Vocab::Entry |
Definition at line 91 of file Hypergraph.h.
MosesTuning::Vocab::Vocab | ( | ) |
Definition at line 44 of file Hypergraph.cpp.
const Entry& MosesTuning::Vocab::Bos | ( | ) | const [inline] |
Definition at line 95 of file Hypergraph.h.
Referenced by MosesTuning::Graph::IsBoundary().
const Entry& MosesTuning::Vocab::Eos | ( | ) | const [inline] |
Definition at line 99 of file Hypergraph.h.
Referenced by MosesTuning::Graph::IsBoundary().
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().