#include "lm/config.hh"#include "lm/model_type.hh"#include "lm/read_arpa.hh"#include "util/file_piece.hh"#include "util/mmap.hh"#include "util/scoped.hh"#include <cstddef>#include <vector>#include <stdint.h>Go to the source code of this file.
Classes | |
| struct | lm::ngram::FixedWidthParameters |
| struct | lm::ngram::Parameters |
| struct | lm::ngram::Backing |
Namespaces | |
| namespace | lm |
| namespace | lm::ngram |
| namespace | lm::ngram::detail |
Defines | |
| #define | ALIGN8(a) ((std::ptrdiff_t(((a)-1)/8)+1)*8) |
Functions | |
| bool | lm::ngram::RecognizeBinary (const char *file, ModelType &recognized) |
| uint8_t * | lm::ngram::SetupJustVocab (const Config &config, uint8_t order, std::size_t memory_size, Backing &backing) |
| uint8_t * | lm::ngram::GrowForSearch (const Config &config, std::size_t vocab_pad, std::size_t memory_size, Backing &backing) |
| void | lm::ngram::FinishFile (const Config &config, ModelType model_type, unsigned int search_version, const std::vector< uint64_t > &counts, std::size_t vocab_pad, Backing &backing) |
| bool | lm::ngram::detail::IsBinaryFormat (int fd) |
| void | lm::ngram::detail::ReadHeader (int fd, Parameters &out) |
| void | lm::ngram::detail::MatchCheck (ModelType model_type, unsigned int search_version, const Parameters ¶ms) |
| void | lm::ngram::detail::SeekPastHeader (int fd, const Parameters ¶ms) |
| uint8_t * | lm::ngram::detail::SetupBinary (const Config &config, const Parameters ¶ms, uint64_t memory_size, Backing &backing) |
| void | lm::ngram::detail::ComplainAboutARPA (const Config &config, ModelType model_type) |
| template<class To > | |
| void | lm::ngram::LoadLM (const char *file, const Config &config, To &to) |
| #define ALIGN8 | ( | a | ) | ((std::ptrdiff_t(((a)-1)/8)+1)*8) |
Definition at line 37 of file binary_format.hh.
Referenced by lm::ngram::ProbingVocabulary::SetupMemory(), and lm::ngram::ProbingVocabulary::Size().
1.5.9