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

Classes

struct  Sanity

Functions

std::size_t Align8 (std::size_t in)
std::size_t TotalHeaderSize (unsigned char order)
void ReadLoop (int fd, void *to_void, std::size_t size)
void WriteHeader (void *to, const Parameters &params)

Variables

const char kMagicBeforeVersion [] = "mmap lm http://kheafield.com/code format version"
const char kMagicBytes [] = "mmap lm http://kheafield.com/code format version 4\n\0"
const char kMagicIncomplete [] = "mmap lm http://kheafield.com/code incomplete\n"
const long int kMagicVersion = 4
const char * kModelNames [6] = {"hashed n-grams with probing", "hashed n-grams with sorted uniform find", "trie", "trie with quantization", "trie with array-compressed pointers", "trie with quantization and array-compressed pointers"}

Function Documentation

std::size_t lm::ngram::anonymous_namespace{binary_format.cc}::Align8 ( std::size_t  in)

Here is the call graph for this function:

Here is the caller graph for this function:

void lm::ngram::anonymous_namespace{binary_format.cc}::ReadLoop ( int  fd,
void *  to_void,
std::size_t  size 
)

Here is the call graph for this function:

Here is the caller graph for this function:

std::size_t lm::ngram::anonymous_namespace{binary_format.cc}::TotalHeaderSize ( unsigned char  order)

Here is the call graph for this function:

Here is the caller graph for this function:

void lm::ngram::anonymous_namespace{binary_format.cc}::WriteHeader ( void *  to,
const Parameters &  params 
)

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

const char lm::ngram::anonymous_namespace{binary_format.cc}::kMagicBeforeVersion[] = "mmap lm http://kheafield.com/code format version"
const char lm::ngram::anonymous_namespace{binary_format.cc}::kMagicBytes[] = "mmap lm http://kheafield.com/code format version 4\n\0"
const char lm::ngram::anonymous_namespace{binary_format.cc}::kMagicIncomplete[] = "mmap lm http://kheafield.com/code incomplete\n"
const long int lm::ngram::anonymous_namespace{binary_format.cc}::kMagicVersion = 4
const char* lm::ngram::anonymous_namespace{binary_format.cc}::kModelNames[6] = {"hashed n-grams with probing", "hashed n-grams with sorted uniform find", "trie", "trie with quantization", "trie with array-compressed pointers", "trie with quantization and array-compressed pointers"}