lm::ngram::Config Struct Reference

#include <config.hh>

Collaboration diagram for lm::ngram::Config:

Collaboration graph
[legend]

List of all members.

Public Types

enum  ARPALoadComplain { ALL, EXPENSIVE, NONE }
enum  WriteMethod { WRITE_MMAP, WRITE_AFTER }
enum  RestFunction { REST_MAX, REST_LOWER }

Public Member Functions

std::ostream * ProgressMessages () const
 Config ()

Public Attributes

bool show_progress
std::ostream * messages
EnumerateVocabenumerate_vocab
WarningAction unknown_missing
WarningAction sentence_marker_missing
WarningAction positive_log_probability
float unknown_missing_logprob
float probing_multiplier
std::size_t building_memory
std::string temporary_directory_prefix
ARPALoadComplain arpa_complain
const char * write_mmap
WriteMethod write_method
bool include_vocab
RestFunction rest_function
std::vector< std::string > rest_lower_files
uint8_t prob_bits
uint8_t backoff_bits
uint8_t pointer_bhiksha_bits
util::LoadMethod load_method


Detailed Description

Definition at line 19 of file config.hh.


Member Enumeration Documentation

Enumerator:
ALL 
EXPENSIVE 
NONE 

Definition at line 75 of file config.hh.

Enumerator:
REST_MAX 
REST_LOWER 

Definition at line 93 of file config.hh.

Enumerator:
WRITE_MMAP 
WRITE_AFTER 

Definition at line 82 of file config.hh.


Constructor & Destructor Documentation

lm::ngram::Config::Config (  ) 

Definition at line 8 of file config.cc.


Member Function Documentation

std::ostream* lm::ngram::Config::ProgressMessages (  )  const [inline]

Definition at line 29 of file config.hh.

References messages, and show_progress.

Referenced by lm::ngram::trie::BuildTrie().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 76 of file config.hh.

Definition at line 89 of file config.hh.

Referenced by lm::ngram::BinaryFormat::FinishFile().

Definition at line 27 of file config.hh.

Referenced by Moses::LanguageModelKen< Model >::LoadModel(), and ProgressMessages().

Definition at line 50 of file config.hh.

Referenced by lm::ngram::detail::HashedSearch< Value >::InitializeFromARPA(), and main().

std::vector<std::string> lm::ngram::Config::rest_lower_files

Definition at line 99 of file config.hh.

Referenced by lm::ngram::LowerRestBuild< Model >::LowerRestBuild(), and main().

Definition at line 46 of file config.hh.

Referenced by main().

Definition at line 23 of file config.hh.

Referenced by ProgressMessages().

Definition at line 43 of file config.hh.

Definition at line 54 of file config.hh.

Referenced by lm::ngram::LowerRestBuild< Model >::LowerRestBuild(), and main().

Definition at line 86 of file config.hh.

Referenced by main().


The documentation for this struct was generated from the following files:

Generated on Thu Jul 6 00:32:44 2017 for Moses by  doxygen 1.5.9