|
Joshua
open source statistical hierarchical phrase-based machine translation system
|
#include <virtual_interface.hh>
Public Member Functions | |
| virtual | ~Vocabulary () |
| WordIndex | BeginSentence () const |
| WordIndex | EndSentence () const |
| WordIndex | NotFound () const |
| virtual WordIndex | Index (const StringPiece &str) const =0 |
| virtual WordIndex | Index (const std::string &str) const |
| virtual WordIndex | Index (const char *str) const |
Protected Member Functions | |
| Vocabulary () | |
| Vocabulary (WordIndex begin_sentence, WordIndex end_sentence, WordIndex not_found) | |
| void | SetSpecial (WordIndex begin_sentence, WordIndex end_sentence, WordIndex not_found) |
Protected Attributes | |
| WordIndex | begin_sentence_ |
| WordIndex | end_sentence_ |
| WordIndex | not_found_ |
Private Member Functions | |
| Vocabulary (const Vocabulary &) | |
| Vocabulary & | operator= (const Vocabulary &) |
| lm::base::Vocabulary::~Vocabulary | ( | ) | [virtual] |
Reimplemented in lm::sri::Vocabulary.
| lm::base::Vocabulary::Vocabulary | ( | ) | [protected] |
Reimplemented in lm::sri::Vocabulary.
| lm::base::Vocabulary::Vocabulary | ( | WordIndex | begin_sentence, |
| WordIndex | end_sentence, | ||
| WordIndex | not_found | ||
| ) | [protected] |
| lm::base::Vocabulary::Vocabulary | ( | const Vocabulary & | ) | [private] |
| WordIndex lm::base::Vocabulary::BeginSentence | ( | ) | const |
| WordIndex lm::base::Vocabulary::EndSentence | ( | ) | const |
| virtual WordIndex lm::base::Vocabulary::Index | ( | const StringPiece & | str | ) | const [pure virtual] |
Implemented in lm::ngram::ProbingVocabulary, lm::sri::Vocabulary, and lm::ngram::SortedVocabulary.
| virtual WordIndex lm::base::Vocabulary::Index | ( | const std::string & | str | ) | const [virtual] |
| virtual WordIndex lm::base::Vocabulary::Index | ( | const char * | str | ) | const [virtual] |
| WordIndex lm::base::Vocabulary::NotFound | ( | ) | const |
| Vocabulary& lm::base::Vocabulary::operator= | ( | const Vocabulary & | ) | [private] |
| void lm::base::Vocabulary::SetSpecial | ( | WordIndex | begin_sentence, |
| WordIndex | end_sentence, | ||
| WordIndex | not_found | ||
| ) | [protected] |
WordIndex lm::base::Vocabulary::begin_sentence_ [protected] |
WordIndex lm::base::Vocabulary::end_sentence_ [protected] |
WordIndex lm::base::Vocabulary::not_found_ [protected] |