remove-eps-local.h
Go to the documentation of this file.
1 // fstext/remove-eps-local.h
2 
3 // Copyright 2009-2011 Microsoft Corporation
4 // 2014 Johns Hopkins University (author: Daniel Povey)
5 
6 // See ../../COPYING for clarification regarding multiple authors
7 //
8 // Licensed under the Apache License, Version 2.0 (the "License");
9 // you may not use this file except in compliance with the License.
10 // You may obtain a copy of the License at
11 //
12 // http://www.apache.org/licenses/LICENSE-2.0
13 //
14 // THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 // KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
16 // WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
17 // MERCHANTABLITY OR NON-INFRINGEMENT.
18 // See the Apache 2 License for the specific language governing permissions and
19 // limitations under the License.
20 
21 #ifndef KALDI_FSTEXT_REMOVE_EPS_LOCAL_H_
22 #define KALDI_FSTEXT_REMOVE_EPS_LOCAL_H_
23 
24 
25 #include <fst/fstlib.h>
26 #include <fst/fst-decl.h>
27 
28 namespace fst {
29 
30 
47 
48 template<class Arc>
49 void RemoveEpsLocal(MutableFst<Arc> *fst);
50 
53 inline void RemoveEpsLocalSpecial(MutableFst<StdArc> *fst);
54 
55 
56 } // namespace fst
57 
58 #include "remove-eps-local-inl.h"
59 
60 #endif
void RemoveEpsLocal(MutableFst< Arc > *fst)
RemoveEpsLocal remove some (but not necessarily all) epsilons in an FST, using an algorithm that is g...
For an extended explanation of the framework of which grammar-fsts are a part, please see Support for...
Definition: graph.dox:21
void RemoveEpsLocalSpecial(MutableFst< StdArc > *fst)
As RemoveEpsLocal but takes care to preserve stochasticity when cast to LogArc.