prune-special.h
Go to the documentation of this file.
1 // fstext/prune-special.h
2 
3 // Copyright 2014 Johns Hopkins University (author: Daniel Povey)
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_FSTEXT_PRUNE_SPECIAL_H_
22 #define KALDI_FSTEXT_PRUNE_SPECIAL_H_
23 
24 #include "fst/fstlib.h"
25 #include "fstext/lattice-weight.h"
26 #include "fstext/factor.h"
27 
28 namespace fst {
29 
30 
31 
48 template<class Arc>
49 void PruneSpecial(const Fst<Arc> &ifst,
50  VectorFst<Arc> *ofst,
51  typename Arc::Weight beam,
52  size_t max_states = 0);
53 
54 
55 
56 } // end namespace fst
57 
59 
60 #endif // KALDI_FSTEXT_PRUNE_SPECIAL_H_
void PruneSpecial(const Fst< Arc > &ifst, VectorFst< Arc > *ofst, typename Arc::Weight beam, size_t max_states)
The function PruneSpecial is like the standard OpenFst function "prune", except it does not expand th...
For an extended explanation of the framework of which grammar-fsts are a part, please see Support for...
Definition: graph.dox:21
fst::StdArc::Weight Weight