#include "lm/binary_format.hh"#include "lm/lm_exception.hh"#include "util/file.hh"#include "util/file_piece.hh"#include <cstddef>#include <cstring>#include <limits>#include <string>#include <cstdlib>#include <stdint.h>Go to the source code of this file.
Namespaces | |
| namespace | lm |
| namespace | lm::ngram |
Functions | |
| bool | lm::ngram::IsBinaryFormat (int fd) |
| void | lm::ngram::ReadHeader (int fd, Parameters &out) |
| void | lm::ngram::MatchCheck (ModelType model_type, unsigned int search_version, const Parameters ¶ms) |
| bool | lm::ngram::RecognizeBinary (const char *file, ModelType &recognized) |
Variables | |
| const char * | lm::ngram::kModelNames [6] = {"probing hash tables", "probing hash tables with rest costs", "trie", "trie with quantization", "trie with array-compressed pointers", "trie with quantization and array-compressed pointers"} |
| const std::size_t | lm::ngram::kInvalidSize = static_cast<std::size_t>(-1) |
| char magic[ALIGN8(sizeof(kMagicBytes))] |
Definition at line 30 of file binary_format.cc.
Definition at line 32 of file binary_format.cc.
| float minus_half_f |
Definition at line 31 of file binary_format.cc.
| float one_f |
Definition at line 31 of file binary_format.cc.
| uint64_t one_uint64 |
Definition at line 33 of file binary_format.cc.
Definition at line 32 of file binary_format.cc.
Definition at line 50 of file binary_format.cc.
| float zero_f |
Definition at line 31 of file binary_format.cc.
1.5.9