Kaldi
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
b
c
d
g
i
j
k
l
m
n
p
r
w
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerations
+
Enumerator
b
c
d
f
k
t
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
v
w
Enumerations
+
Enumerator
b
g
k
o
+
Related Functions
a
c
d
e
f
i
k
l
m
n
o
p
r
s
t
u
v
+
Files
File List
+
File Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Functions
a
c
d
g
i
m
o
r
s
t
u
Variables
Typedefs
+
Macros
b
c
d
e
f
k
m
n
p
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
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
58
#include "
fstext/prune-special-inl.h
"
59
60
#endif // KALDI_FSTEXT_PRUNE_SPECIAL_H_
prune-special-inl.h
fst::PruneSpecial
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...
Definition:
prune-special-inl.h:161
fst
For an extended explanation of the framework of which grammar-fsts are a part, please see Support for...
Definition:
graph.dox:21
lattice-weight.h
fst::Weight
fst::StdArc::Weight Weight
Definition:
deterministic-fst-test.cc:60
factor.h
fstext
prune-special.h
Generated by
1.8.13