This group is for classes and functions relatied to Tables; see also "Implementation classes for Table types" and "Specific Table types", and for a description of the Table concept see The Table concept. More...
Classes | |
| struct | WspecifierOptions |
| struct | RspecifierOptions |
| class | RandomAccessTableReader< Holder > |
| Allows random access to a collection of objects in an archive or script file; see The Table concept. More... | |
| class | SequentialTableReader< Holder > |
| A templated class for reading objects sequentially from an archive or script file; see The Table concept. More... | |
| class | TableWriter< Holder > |
| A templated class for writing objects to an archive or script file; see The Table concept. More... | |
| class | RandomAccessTableReaderMapped< Holder > |
| This class is for when you are reading something in random access, but it may actually be stored per-speaker (or something similar) but the keys you're using are per utterance. More... | |
Typedefs | |
| typedef std::vector< std::string > | KeyList |
Enumerations | |
| enum | WspecifierType { kNoWspecifier, kArchiveWspecifier, kScriptWspecifier, kBothWspecifier } |
| enum | RspecifierType { kNoRspecifier, kArchiveRspecifier, kScriptRspecifier } |
Functions | |
| WspecifierType | ClassifyWspecifier (const std::string &wspecifier, std::string *archive_wxfilename, std::string *script_wxfilename, WspecifierOptions *opts) |
| bool | ReadScriptFile (const std::string &rxfilename, bool warn, std::vector< std::pair< std::string, std::string > > *script_out) |
| bool | ReadScriptFile (std::istream &is, bool warn, std::vector< std::pair< std::string, std::string > > *script_out) |
| bool | WriteScriptFile (const std::string &wxfilename, const std::vector< std::pair< std::string, std::string > > &script) |
| bool | WriteScriptFile (std::ostream &os, const std::vector< std::pair< std::string, std::string > > &script) |
| RspecifierType | ClassifyRspecifier (const std::string &rspecifier, std::string *rxfilename, RspecifierOptions *opts) |
This group is for classes and functions relatied to Tables; see also "Implementation classes for Table types" and "Specific Table types", and for a description of the Table concept see The Table concept.
| typedef std::vector<std::string> KeyList |
Definition at line 54 of file kaldi-table.h.
| enum RspecifierType |
| Enumerator | |
|---|---|
| kNoRspecifier | |
| kArchiveRspecifier | |
| kScriptRspecifier | |
Definition at line 219 of file kaldi-table.h.
| enum WspecifierType |
| Enumerator | |
|---|---|
| kNoWspecifier | |
| kArchiveWspecifier | |
| kScriptWspecifier | |
| kBothWspecifier | |
Definition at line 106 of file kaldi-table.h.
| RspecifierType ClassifyRspecifier | ( | const std::string & | rspecifier, |
| std::string * | rxfilename, | ||
| RspecifierOptions * | opts | ||
| ) |
Definition at line 225 of file kaldi-table.cc.
References RspecifierOptions::background, RspecifierOptions::called_sorted, rnnlm::i, kaldi::kArchiveRspecifier, kaldi::kNoRspecifier, kaldi::kScriptRspecifier, RspecifierOptions::once, RspecifierOptions::permissive, RspecifierOptions::sorted, and kaldi::SplitStringToVector().
Referenced by kaldi::ClassifyRxfilename(), kaldi::ClassifyWxfilename(), main(), SequentialTableReaderScriptImpl< Holder >::Open(), RandomAccessTableReader< kaldi::TokenHolder >::Open(), SequentialTableReader< Holder >::Open(), SequentialTableReaderArchiveImpl< Holder >::Open(), RandomAccessTableReaderScriptImpl< Holder >::Open(), RandomAccessTableReaderArchiveImplBase< Holder >::Open(), kaldi::SplitArgOnEquals(), kaldi::TypeThreeUsage(), kaldi::TypeTwoUsage(), and kaldi::UnitTestClassifyRspecifier().
| WspecifierType ClassifyWspecifier | ( | const std::string & | wspecifier, |
| std::string * | archive_wxfilename, | ||
| std::string * | script_wxfilename, | ||
| WspecifierOptions * | opts | ||
| ) |
Definition at line 135 of file kaldi-table.cc.
References WspecifierOptions::binary, WspecifierOptions::flush, rnnlm::i, kaldi::kArchiveWspecifier, kaldi::kBothWspecifier, kaldi::kNoWspecifier, kaldi::kScriptWspecifier, WspecifierOptions::permissive, and kaldi::SplitStringToVector().
Referenced by kaldi::ClassifyRxfilename(), kaldi::ClassifyWxfilename(), main(), TableWriter< Holder >::Open(), TableWriterArchiveImpl< Holder >::Open(), TableWriterScriptImpl< Holder >::Open(), TableWriterBothImpl< Holder >::Open(), kaldi::TypeThreeUsage(), kaldi::TypeTwoUsage(), kaldi::UnitTestClassifyWspecifier(), and WspecifierOptions::WspecifierOptions().
| bool ReadScriptFile | ( | const std::string & | rxfilename, |
| bool | warn, | ||
| std::vector< std::pair< std::string, std::string > > * | script_out | ||
| ) |
Definition at line 26 of file kaldi-table.cc.
References KALDI_WARN, Input::Open(), kaldi::PrintableRxfilename(), and Input::Stream().
Referenced by TableWriterScriptImpl< Holder >::Open(), RandomAccessTableReaderScriptImpl< Holder >::Open(), kaldi::UnitTestReadScriptFile(), kaldi::UnitTestTableSequentialInt32Script(), and WspecifierOptions::WspecifierOptions().
| bool ReadScriptFile | ( | std::istream & | is, |
| bool | warn, | ||
| std::vector< std::pair< std::string, std::string > > * | script_out | ||
| ) |
Definition at line 51 of file kaldi-table.cc.
References KALDI_ASSERT, KALDI_WARN, line_number, and kaldi::SplitStringOnFirstSpace().
| bool WriteScriptFile | ( | std::ostream & | os, |
| const std::vector< std::pair< std::string, std::string > > & | script | ||
| ) |
Definition at line 83 of file kaldi-table.cc.
References kaldi::IsToken(), and KALDI_WARN.
Referenced by kaldi::UnitTestTableSequentialInt32Script(), kaldi::WriteScriptFile(), and WspecifierOptions::WspecifierOptions().
| bool WriteScriptFile | ( | const std::string & | wxfilename, |
| const std::vector< std::pair< std::string, std::string > > & | script | ||
| ) |
Definition at line 115 of file kaldi-table.cc.
References KALDI_ERR, Output::Open(), kaldi::PrintableWxfilename(), Output::Stream(), and kaldi::WriteScriptFile().