#include <kaldi-table-inl.h>
Public Types | |
typedef Holder::T | T |
Public Types inherited from TableWriterImplBase< Holder > | |
typedef Holder::T | T |
Public Member Functions | |
TableWriterScriptImpl () | |
virtual bool | Open (const std::string &wspecifier) |
virtual bool | IsOpen () const |
virtual bool | Close () |
virtual bool | Write (const std::string &key, const T &value) |
virtual void | Flush () |
virtual | ~TableWriterScriptImpl () |
Public Member Functions inherited from TableWriterImplBase< Holder > | |
virtual | ~TableWriterImplBase () |
TableWriterImplBase () | |
Private Types | |
enum | { kUninitialized, kReadScript, kNotReadScript } |
Private Member Functions | |
bool | LookupFilename (const std::string &key, std::string *wxfilename) |
Private Attributes | |
WspecifierOptions | opts_ |
std::string | wspecifier_ |
std::string | script_rxfilename_ |
std::vector< std::pair< std::string, std::string > > | script_ |
size_t | last_found_ |
enum kaldi::TableWriterScriptImpl:: { ... } | state_ |
Definition at line 1136 of file kaldi-table-inl.h.
typedef Holder::T T |
Definition at line 1138 of file kaldi-table-inl.h.
|
private |
Enumerator | |
---|---|
kUninitialized | |
kReadScript | |
kNotReadScript |
Definition at line 1278 of file kaldi-table-inl.h.
|
inline |
Definition at line 1140 of file kaldi-table-inl.h.
|
inlinevirtual |
Definition at line 1233 of file kaldi-table-inl.h.
|
inlinevirtual |
Implements TableWriterImplBase< Holder >.
Definition at line 1180 of file kaldi-table-inl.h.
References SequentialTableReader< Holder >::IsOpen(), and KALDI_ERR.
|
inlinevirtual |
Implements TableWriterImplBase< Holder >.
Definition at line 1230 of file kaldi-table-inl.h.
|
inlinevirtual |
Implements TableWriterImplBase< Holder >.
Definition at line 1178 of file kaldi-table-inl.h.
|
inlineprivate |
Definition at line 1240 of file kaldi-table-inl.h.
|
inlinevirtual |
Implements TableWriterImplBase< Holder >.
Definition at line 1142 of file kaldi-table-inl.h.
References kaldi::ClassifyWspecifier(), rnnlm::i, KALDI_ASSERT, KALDI_ERR, KALDI_WARN, kaldi::kScriptWspecifier, kaldi::PrintableRxfilename(), and kaldi::ReadScriptFile().
Implements TableWriterImplBase< Holder >.
Definition at line 1191 of file kaldi-table-inl.h.
References Output::Close(), SequentialTableReader< Holder >::IsOpen(), kaldi::IsToken(), KALDI_ERR, KALDI_WARN, Output::Open(), kaldi::PrintableRxfilename(), kaldi::PrintableWxfilename(), and Output::Stream().
|
private |
Definition at line 1276 of file kaldi-table-inl.h.
|
private |
Definition at line 1264 of file kaldi-table-inl.h.
|
private |
Definition at line 1275 of file kaldi-table-inl.h.
|
private |
Definition at line 1266 of file kaldi-table-inl.h.
enum { ... } state_ |
|
private |
Definition at line 1265 of file kaldi-table-inl.h.