Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
lm::sri::Vocabulary Class Reference

#include <sri.hh>

Inheritance diagram for lm::sri::Vocabulary:
[legend]
Collaboration diagram for lm::sri::Vocabulary:
[legend]

List of all members.

Public Member Functions

 Vocabulary ()
 ~Vocabulary ()
WordIndex Index (const StringPiece &str) const
WordIndex Index (const std::string &str) const
WordIndex Index (const char *str) const
const char * Word (WordIndex index) const

Private Member Functions

void FinishedLoading ()

Private Attributes

std::auto_ptr< Vocab > sri_

Friends

class Model

Constructor & Destructor Documentation

Reimplemented from lm::base::Vocabulary.


Member Function Documentation

Here is the call graph for this function:

WordIndex lm::sri::Vocabulary::Index ( const StringPiece str) const [virtual]

Implements lm::base::Vocabulary.

Here is the call graph for this function:

Here is the caller graph for this function:

WordIndex lm::sri::Vocabulary::Index ( const std::string &  str) const [virtual]

Reimplemented from lm::base::Vocabulary.

Here is the call graph for this function:

WordIndex lm::sri::Vocabulary::Index ( const char *  str) const [virtual]

Reimplemented from lm::base::Vocabulary.

const char * lm::sri::Vocabulary::Word ( WordIndex  index) const

Friends And Related Function Documentation

friend class Model [friend]

Member Data Documentation

std::auto_ptr<Vocab> lm::sri::Vocabulary::sri_ [mutable, private]