#include <output.hh>
Public Member Functions | |
Output (StringPiece file_base, bool keep_buffer, bool output_q) | |
void | Add (OutputHook *hook) |
bool | Have (HookType hook_type) const |
int | VocabFile () const |
void | SetHeader (const HeaderInfo &header) |
const HeaderInfo & | GetHeader () const |
void | SinkProbs (util::stream::Chains &chains) |
unsigned int | Steps () const |
Definition at line 38 of file output.hh.
lm::builder::Output::Output | ( | StringPiece | file_base, | |
bool | keep_buffer, | |||
bool | output_q | |||
) |
void lm::builder::Output::Add | ( | OutputHook * | hook | ) | [inline] |
Definition at line 43 of file output.hh.
References lm::builder::OutputHook::Type().
Referenced by main().
const HeaderInfo& lm::builder::Output::GetHeader | ( | ) | const [inline] |
bool lm::builder::Output::Have | ( | HookType | hook_type | ) | const [inline] |
Definition at line 47 of file output.hh.
Referenced by SinkProbs(), and Steps().
void lm::builder::Output::SetHeader | ( | const HeaderInfo & | header | ) | [inline] |
Definition at line 53 of file output.hh.
Referenced by lm::builder::Pipeline().
void lm::builder::Output::SinkProbs | ( | util::stream::Chains & | chains | ) |
Definition at line 17 of file output.cc.
References lm::builder::HeaderInfo::counts_pruned, Have(), lm::ModelBuffer::Keep(), util::stream::kRecycle, lm::builder::PROB_PARALLEL_HOOK, lm::builder::PROB_SEQUENTIAL_HOOK, lm::ModelBuffer::Sink(), lm::ModelBuffer::Source(), and util::stream::Chains::Wait().
unsigned int lm::builder::Output::Steps | ( | ) | const [inline] |
Definition at line 59 of file output.hh.
References Have(), and lm::builder::PROB_SEQUENTIAL_HOOK.
Referenced by lm::builder::Pipeline().
int lm::builder::Output::VocabFile | ( | ) | const [inline] |
Definition at line 51 of file output.hh.
References lm::ModelBuffer::VocabFile().
Referenced by lm::builder::Pipeline().