Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
lm::ngram::anonymous_namespace{vocab.cc} Namespace Reference

Functions

WordIndex ReadWords (int fd, EnumerateVocab *enumerate)
void WriteOrThrow (int fd, const void *data_void, std::size_t size)

Variables

const uint64_t kUnknownHash = detail::HashForVocab("<unk>", 5)
const uint64_t kUnknownCapHash = detail::HashForVocab("<UNK>", 5)

Function Documentation

WordIndex lm::ngram::anonymous_namespace{vocab.cc}::ReadWords ( int  fd,
EnumerateVocab *  enumerate 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void lm::ngram::anonymous_namespace{vocab.cc}::WriteOrThrow ( int  fd,
const void *  data_void,
std::size_t  size 
)

Variable Documentation

const uint64_t lm::ngram::anonymous_namespace{vocab.cc}::kUnknownCapHash = detail::HashForVocab("<UNK>", 5)
const uint64_t lm::ngram::anonymous_namespace{vocab.cc}::kUnknownHash = detail::HashForVocab("<unk>", 5)