lm::ngram::QueryPrinter Class Reference

#include <ngram_query.hh>

Collaboration diagram for lm::ngram::QueryPrinter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 QueryPrinter (int fd, bool print_word, bool print_line, bool print_summary, bool flush)
void Word (StringPiece surface, WordIndex vocab, const FullScoreReturn &ret)
void Line (uint64_t oov, float total)
void Summary (double ppl_including_oov, double ppl_excluding_oov, uint64_t corpus_oov, uint64_t corpus_tokens)


Detailed Description

Definition at line 17 of file ngram_query.hh.


Constructor & Destructor Documentation

lm::ngram::QueryPrinter::QueryPrinter ( int  fd,
bool  print_word,
bool  print_line,
bool  print_summary,
bool  flush 
) [inline]

Definition at line 19 of file ngram_query.hh.


Member Function Documentation

void lm::ngram::QueryPrinter::Line ( uint64_t  oov,
float  total 
) [inline]

Definition at line 28 of file ngram_query.hh.

References util::FileStream::flush().

Here is the call graph for this function:

void lm::ngram::QueryPrinter::Summary ( double  ppl_including_oov,
double  ppl_excluding_oov,
uint64_t  corpus_oov,
uint64_t  corpus_tokens 
) [inline]

Definition at line 34 of file ngram_query.hh.

References util::FileStream::flush().

Here is the call graph for this function:

void lm::ngram::QueryPrinter::Word ( StringPiece  surface,
WordIndex  vocab,
const FullScoreReturn ret 
) [inline]

Definition at line 22 of file ngram_query.hh.

References util::FileStream::flush(), lm::FullScoreReturn::ngram_length, and lm::FullScoreReturn::prob.

Here is the call graph for this function:


The documentation for this class was generated from the following file:

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