Options that control ArpaFileParser. More...
#include <arpa-file-parser.h>
Public Types | |
enum | OovHandling { kRaiseError, kAddToSymbols, kReplaceWithUnk, kSkipNGram } |
Public Member Functions | |
ArpaParseOptions () | |
void | Register (OptionsItf *opts) |
Public Attributes | |
int32 | bos_symbol |
Symbol for <s>, Required non-epsilon. More... | |
int32 | eos_symbol |
Symbol for </s>, Required non-epsilon. More... | |
int32 | unk_symbol |
Symbol for <unk>, Required for kReplaceWithUnk. More... | |
OovHandling | oov_handling |
How to handle OOV words in the file. More... | |
int32 | max_warnings |
Maximum warnings to report, <0 unlimited. More... | |
Options that control ArpaFileParser.
Definition at line 37 of file arpa-file-parser.h.
enum OovHandling |
Enumerator | |
---|---|
kRaiseError | Abort on OOV words. |
kAddToSymbols | Add novel words to the symbol table. |
kReplaceWithUnk | Replace OOV words with <unk>. |
kSkipNGram | Skip n-gram with OOV word and continue. |
Definition at line 38 of file arpa-file-parser.h.
|
inline |
Definition at line 45 of file arpa-file-parser.h.
|
inline |
Definition at line 49 of file arpa-file-parser.h.
References ArpaParseOptions::max_warnings, and OptionsItf::Register().
int32 bos_symbol |
Symbol for <s>, Required non-epsilon.
Definition at line 58 of file arpa-file-parser.h.
Referenced by kaldi::Compile(), and ArpaFileParser::Read().
int32 eos_symbol |
Symbol for </s>, Required non-epsilon.
Definition at line 59 of file arpa-file-parser.h.
Referenced by kaldi::Compile(), and ArpaFileParser::Read().
int32 max_warnings |
Maximum warnings to report, <0 unlimited.
Definition at line 62 of file arpa-file-parser.h.
Referenced by ArpaFileParser::Read(), ArpaParseOptions::Register(), and ArpaFileParser::ShouldWarn().
OovHandling oov_handling |
How to handle OOV words in the file.
Definition at line 61 of file arpa-file-parser.h.
Referenced by kaldi::Compile(), and ArpaFileParser::Read().
int32 unk_symbol |
Symbol for <unk>, Required for kReplaceWithUnk.
Definition at line 60 of file arpa-file-parser.h.
Referenced by ArpaFileParser::Read().