#include <LVoc.h>
Public Types | |
typedef V::const_iterator | const_iterator |
Public Member Functions | |
LVoc () | |
bool | isKnown (const Key &k) const |
LabelId | index (const Key &k) const |
LabelId | add (const Key &k) |
Key const & | symbol (LabelId i) const |
const_iterator | begin () const |
const_iterator | end () const |
void | Write (const std::string &fname) const |
void | Write (std::ostream &out) const |
void | Read (const std::string &fname) |
void | Read (std::istream &in) |
Definition at line 22 of file LVoc.h.
typedef V::const_iterator LVoc< A, B >::const_iterator |
LabelId LVoc< A, B >::add | ( | const Key & | k | ) | [inline] |
Definition at line 39 of file LVoc.h.
Referenced by Moses::PhraseDictionaryTree::Create().
const_iterator LVoc< A, B >::begin | ( | ) | const [inline] |
const_iterator LVoc< A, B >::end | ( | ) | const [inline] |
LabelId LVoc< A, B >::index | ( | const Key & | k | ) | const [inline] |
Definition at line 35 of file LVoc.h.
Referenced by Moses::PhraseDictionaryTree::GetTargetCandidates(), and Moses::PhraseDictionaryTree::PrintTargetCandidates().
bool LVoc< A, B >::isKnown | ( | const Key & | k | ) | const [inline] |
void LVoc< A, B >::Read | ( | std::istream & | in | ) | [inline] |
void LVoc< A, B >::Read | ( | const std::string & | fname | ) | [inline] |
Definition at line 74 of file LVoc.h.
Referenced by Moses::PDTimp::Read(), LVoc< std::string >::Read(), and Moses::ReadVoc().
Key const& LVoc< A, B >::symbol | ( | LabelId | i | ) | const [inline] |
Definition at line 46 of file LVoc.h.
Referenced by Moses::PDTimp::PrintTgtCand().
void LVoc< A, B >::Write | ( | std::ostream & | out | ) | const [inline] |
void LVoc< A, B >::Write | ( | const std::string & | fname | ) | const [inline] |
Definition at line 59 of file LVoc.h.
Referenced by Moses::PhraseDictionaryTree::Create(), Moses::LexicalReorderingTableTree::Create(), and LVoc< std::string >::Write().