A parsed n-gram from ARPA LM file. More...
#include <arpa-file-parser.h>

Public Member Functions | |
| NGram () | |
Public Attributes | |
| std::vector< int32 > | words |
| Symbols in left to right order. More... | |
| float | logprob |
| Log-prob of the n-gram. More... | |
| float | backoff |
| log-backoff weight of the n-gram. More... | |
A parsed n-gram from ARPA LM file.
Definition at line 68 of file arpa-file-parser.h.
|
inline |
Definition at line 69 of file arpa-file-parser.h.
| float backoff |
log-backoff weight of the n-gram.
Defaults to zero if not specified.
Definition at line 72 of file arpa-file-parser.h.
Referenced by ArpaLmCompilerImpl< HistKey >::ConsumeNGram(), ConstArpaLmBuilder::ConsumeNGram(), and ArpaFileParser::Read().
| float logprob |
Log-prob of the n-gram.
Definition at line 71 of file arpa-file-parser.h.
Referenced by ArpaLmCompilerImpl< HistKey >::ConsumeNGram(), ConstArpaLmBuilder::ConsumeNGram(), and ArpaFileParser::Read().
| std::vector<int32> words |
Symbols in left to right order.
Definition at line 70 of file arpa-file-parser.h.
Referenced by ArpaLmCompiler::ConsumeNGram(), ArpaLmCompilerImpl< HistKey >::ConsumeNGram(), ConstArpaLmBuilder::ConsumeNGram(), and ArpaFileParser::Read().