|
28 | 28 | #include "lat/kws-functions.h"
|
29 | 29 | #include "fstext/epsilon-property.h"
|
30 | 30 |
|
| 31 | +using fst::VectorFst; |
| 32 | +using kaldi::int32; |
| 33 | +using kaldi::uint64; |
| 34 | +using kaldi::BaseFloat; |
| 35 | +using kaldi::ClusterLattice; |
| 36 | +using kaldi::CompactLattice; |
| 37 | +using kaldi::CompactLatticeStateTimes; |
| 38 | +using kaldi::CompactLatticeStateTimes; |
| 39 | +using kaldi::CreateFactorTransducer; |
| 40 | +using kaldi::DoFactorDisambiguation; |
| 41 | +using kaldi::DoFactorMerging; |
| 42 | +using kaldi::KwsLexicographicArc; |
| 43 | +using kaldi::KwsLexicographicFst; |
| 44 | +using kaldi::KwsProductFst; |
| 45 | +using kaldi::MaybeDoSanityCheck; |
| 46 | +using kaldi::OptimizeFactorTransducer; |
| 47 | +using kaldi::ParseOptions; |
| 48 | +using kaldi::RandomAccessInt32Reader; |
| 49 | +using kaldi::RandomAccessTableReader; |
| 50 | +using kaldi::RemoveLongSilences; |
| 51 | +using kaldi::SequentialCompactLatticeReader; |
| 52 | +using kaldi::SequentialTableReader; |
| 53 | +using kaldi::TableWriter; |
| 54 | + |
31 | 55 | int main(int argc, char *argv[]) {
|
32 | 56 | try {
|
33 |
| - using namespace kaldi; |
34 |
| - using fst::VectorFst; |
35 |
| - typedef kaldi::int32 int32; |
36 |
| - typedef kaldi::uint64 uint64; |
37 |
| - |
38 | 57 | const char *usage =
|
39 | 58 | "Create an inverted index of the given lattices. The output index is in the T*T*T\n"
|
40 | 59 | "semiring. For details for the semiring, please refer to Dogan Can and Muran Saraclar's"
|
|
0 commit comments