table-types.h
Go to the documentation of this file.
1 // util/table-types.h
2 
3 // Copyright 2009-2011 Microsoft Corporation
4 
5 // See ../../COPYING for clarification regarding multiple authors
6 //
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
10 //
11 // http://www.apache.org/licenses/LICENSE-2.0
12 //
13 // THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 // KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
15 // WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
16 // MERCHANTABLITY OR NON-INFRINGEMENT.
17 // See the Apache 2 License for the specific language governing permissions and
18 // limitations under the License.
19 
20 
21 #ifndef KALDI_UTIL_TABLE_TYPES_H_
22 #define KALDI_UTIL_TABLE_TYPES_H_
23 #include "base/kaldi-common.h"
24 #include "util/kaldi-table.h"
25 #include "util/kaldi-holder.h"
26 #include "matrix/matrix-lib.h"
27 
28 namespace kaldi {
29 
30 // This header defines typedefs that are specific instantiations of
31 // the Table types.
32 
35 
36 typedef TableWriter<KaldiObjectHolder<MatrixBase<BaseFloat> > >
44 
53 
56 
65 
72 
81 
90 
99 
106 
107 
111 
117 
123 
129 
136 
144 
148 
152 
153 
154 
160 
161 
166 // Ditto for SequentialTokenVectorReader.
170 
171 
180 
181 
182 
184 
185 // Note: for FST reader/writer, see ../fstext/fstext-utils.h
186 // [not done yet].
187 
188 } // end namespace kaldi
189 
190 
191 
192 #endif // KALDI_UTIL_TABLE_TYPES_H_
TableWriter< BasicHolder< double > > DoubleWriter
Definition: table-types.h:145
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
Definition: chain.dox:20
RandomAccessTableReader< KaldiObjectHolder< Matrix< BaseFloat > > > RandomAccessBaseFloatMatrixReader
Definition: table-types.h:41
TableWriter< KaldiObjectHolder< MatrixBase< BaseFloat > > > BaseFloatMatrixWriter
Definition: table-types.h:37
RandomAccessTableReaderMapped< KaldiObjectHolder< Matrix< BaseFloat > > > RandomAccessBaseFloatMatrixReaderMapped
Definition: table-types.h:43
This class is for when you are reading something in random access, but it may actually be stored per-...
Definition: kaldi-table.h:432
SequentialTableReader< KaldiObjectHolder< GeneralMatrix > > SequentialGeneralMatrixReader
Definition: table-types.h:175
TableWriter< TokenHolder > TokenWriter
TokenWriter is a writer specialized for std::string where the strings are nonempty and whitespace-fre...
Definition: table-types.h:157
SequentialTableReader< KaldiObjectHolder< CuMatrix< double > > > SequentialDoubleCuMatrixReader
Definition: table-types.h:85
RandomAccessTableReader< KaldiObjectHolder< Vector< double > > > RandomAccessDoubleVectorReader
Definition: table-types.h:71
A templated class for writing objects to an archive or script file; see The Table concept...
Definition: kaldi-table.h:368
RandomAccessTableReader< TokenVectorHolder > RandomAccessTokenVectorReader
Definition: table-types.h:169
SequentialTableReader< KaldiObjectHolder< Vector< BaseFloat > > > SequentialBaseFloatVectorReader
Definition: table-types.h:60
RandomAccessTableReader< BasicPairVectorHolder< BaseFloat > > RandomAccessBaseFloatPairVectorReader
Definition: table-types.h:135
TableWriter< BasicVectorVectorHolder< int32 > > Int32VectorVectorWriter
Definition: table-types.h:118
RandomAccessTableReaderMapped< BasicHolder< BaseFloat > > RandomAccessBaseFloatReaderMapped
Definition: table-types.h:143
RandomAccessTableReader< KaldiObjectHolder< CuVector< double > > > RandomAccessDoubleCuVectorReader
Definition: table-types.h:105
RandomAccessTableReader< BasicPairVectorHolder< int32 > > RandomAccessInt32PairVectorReader
Definition: table-types.h:128
Allows random access to a collection of objects in an archive or script file; see The Table concept...
Definition: kaldi-table.h:233
SequentialTableReader< TokenHolder > SequentialTokenReader
Definition: table-types.h:158
RandomAccessTableReader< KaldiObjectHolder< CuMatrix< double > > > RandomAccessDoubleCuMatrixReader
Definition: table-types.h:87
TableWriter< KaldiObjectHolder< MatrixBase< double > > > DoubleMatrixWriter
Definition: table-types.h:46
TableWriter< BasicHolder< int32 > > Int32Writer
Definition: table-types.h:108
TableWriter< KaldiObjectHolder< VectorBase< double > > > DoubleVectorWriter
Definition: table-types.h:67
SequentialTableReader< KaldiObjectHolder< Vector< double > > > SequentialDoubleVectorReader
Definition: table-types.h:69
SequentialTableReader< BasicPairVectorHolder< int32 > > SequentialInt32PairVectorReader
Definition: table-types.h:126
TableWriter< KaldiObjectHolder< CuVector< BaseFloat > > > BaseFloatCuVectorWriter
Definition: table-types.h:92
RandomAccessTableReader< BasicHolder< bool > > RandomAccessBoolReader
Definition: table-types.h:151
RandomAccessTableReaderMapped< KaldiObjectHolder< CuMatrix< double > > > RandomAccessDoubleCuMatrixReaderMapped
Definition: table-types.h:89
RandomAccessTableReader< TokenHolder > RandomAccessTokenReader
Definition: table-types.h:159
SequentialTableReader< BasicPairVectorHolder< BaseFloat > > SequentialBaseFloatPairVectorReader
Definition: table-types.h:133
SequentialTableReader< KaldiObjectHolder< CuVector< BaseFloat > > > SequentialBaseFloatCuVectorReader
Definition: table-types.h:94
A templated class for reading objects sequentially from an archive or script file; see The Table conc...
Definition: kaldi-table.h:287
TableWriter< KaldiObjectHolder< GeneralMatrix > > GeneralMatrixWriter
Definition: table-types.h:173
TableWriter< KaldiObjectHolder< VectorBase< BaseFloat > > > BaseFloatVectorWriter
Definition: table-types.h:58
SequentialTableReader< BasicHolder< double > > SequentialDoubleReader
Definition: table-types.h:146
TableWriter< BasicPairVectorHolder< int32 > > Int32PairVectorWriter
Definition: table-types.h:124
SequentialTableReader< BasicHolder< int32 > > SequentialInt32Reader
Definition: table-types.h:109
RandomAccessTableReaderMapped< KaldiObjectHolder< CuMatrix< BaseFloat > > > RandomAccessBaseFloatCuMatrixReaderMapped
Definition: table-types.h:80
TableWriter< BasicHolder< BaseFloat > > BaseFloatWriter
Definition: table-types.h:137
TableWriter< BasicVectorHolder< int32 > > Int32VectorWriter
Definition: table-types.h:112
TableWriter< KaldiObjectHolder< CompressedMatrix > > CompressedMatrixWriter
Definition: table-types.h:55
TableWriter< TokenVectorHolder > TokenVectorWriter
TokenVectorWriter is a writer specialized for sequences of std::string where the strings are nonempty...
Definition: table-types.h:165
SequentialTableReader< KaldiObjectHolder< Matrix< double > > > SequentialDoubleMatrixReader
Definition: table-types.h:48
SequentialTableReader< KaldiObjectHolder< CuMatrix< BaseFloat > > > SequentialBaseFloatCuMatrixReader
Definition: table-types.h:76
RandomAccessTableReader< BasicHolder< BaseFloat > > RandomAccessBaseFloatReader
Definition: table-types.h:141
SequentialTableReader< BasicVectorHolder< int32 > > SequentialInt32VectorReader
Definition: table-types.h:114
RandomAccessTableReaderMapped< KaldiObjectHolder< CuVector< BaseFloat > > > RandomAccessBaseFloatCuVectorReaderMapped
Definition: table-types.h:98
SequentialTableReader< BasicHolder< BaseFloat > > SequentialBaseFloatReader
Definition: table-types.h:139
SequentialTableReader< KaldiObjectHolder< CuVector< double > > > SequentialDoubleCuVectorReader
Definition: table-types.h:103
RandomAccessTableReader< BasicHolder< int32 > > RandomAccessInt32Reader
Definition: table-types.h:110
TableWriter< BasicPairVectorHolder< BaseFloat > > BaseFloatPairVectorWriter
Definition: table-types.h:131
RandomAccessTableReader< BasicVectorHolder< int32 > > RandomAccessInt32VectorReader
Definition: table-types.h:116
SequentialTableReader< KaldiObjectHolder< Matrix< BaseFloat > > > SequentialBaseFloatMatrixReader
Definition: table-types.h:39
TableWriter< BasicHolder< bool > > BoolWriter
Definition: table-types.h:149
RandomAccessTableReader< KaldiObjectHolder< GeneralMatrix > > RandomAccessGeneralMatrixReader
Definition: table-types.h:177
RandomAccessTableReader< KaldiObjectHolder< CuVector< BaseFloat > > > RandomAccessBaseFloatCuVectorReader
Definition: table-types.h:96
TableWriter< KaldiObjectHolder< CuMatrix< double > > > DoubleCuMatrixWriter
Definition: table-types.h:83
RandomAccessTableReader< BasicVectorVectorHolder< int32 > > RandomAccessInt32VectorVectorReader
Definition: table-types.h:122
SequentialTableReader< TokenVectorHolder > SequentialTokenVectorReader
Definition: table-types.h:167
TableWriter< KaldiObjectHolder< CuVector< double > > > DoubleCuVectorWriter
Definition: table-types.h:101
RandomAccessTableReaderMapped< KaldiObjectHolder< GeneralMatrix > > RandomAccessGeneralMatrixReaderMapped
Definition: table-types.h:179
RandomAccessTableReader< KaldiObjectHolder< Vector< BaseFloat > > > RandomAccessBaseFloatVectorReader
Definition: table-types.h:62
SequentialTableReader< BasicVectorVectorHolder< int32 > > SequentialInt32VectorVectorReader
Definition: table-types.h:120
TableWriter< KaldiObjectHolder< CuMatrix< BaseFloat > > > BaseFloatCuMatrixWriter
Definition: table-types.h:74
RandomAccessTableReader< KaldiObjectHolder< Matrix< double > > > RandomAccessDoubleMatrixReader
Definition: table-types.h:50
RandomAccessTableReaderMapped< KaldiObjectHolder< Matrix< double > > > RandomAccessDoubleMatrixReaderMapped
Definition: table-types.h:52
SequentialTableReader< BasicHolder< bool > > SequentialBoolReader
Definition: table-types.h:150
RandomAccessTableReader< KaldiObjectHolder< CuMatrix< BaseFloat > > > RandomAccessBaseFloatCuMatrixReader
Definition: table-types.h:78
RandomAccessTableReader< BasicHolder< double > > RandomAccessDoubleReader
Definition: table-types.h:147
RandomAccessTableReaderMapped< KaldiObjectHolder< Vector< BaseFloat > > > RandomAccessBaseFloatVectorReaderMapped
Definition: table-types.h:64