Skip to content

Commit e460d8a

Browse files
georgthegreatjtrmal
authored andcommitted
Support openfst-1.8.0
1 parent 3f170d4 commit e460d8a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/fstext/fstext-utils-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ void RemoveSomeInputSymbols(const std::vector<I> &to_remove,
163163
MutableFst<Arc> *fst) {
164164
KALDI_ASSERT_IS_INTEGER_TYPE(I);
165165
RemoveSomeInputSymbolsMapper<Arc, I> mapper(to_remove);
166-
Map(fst, mapper);
166+
ArcMap(fst, mapper);
167167
}
168168

169169
template<class Arc, class I>

src/fstext/fstext-utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void PushInLog(VectorFst<StdArc> *fst, uint32 ptype, float delta = kDelta) {
113113
template<class Arc>
114114
void MinimizeEncoded(VectorFst<Arc> *fst, float delta = kDelta) {
115115

116-
Map(fst, QuantizeMapper<Arc>(delta));
116+
ArcMap(fst, QuantizeMapper<Arc>(delta));
117117
EncodeMapper<Arc> encoder(kEncodeLabels | kEncodeWeights, ENCODE);
118118
Encode(fst, &encoder);
119119
internal::AcceptorMinimize(fst);

src/fstext/lattice-utils-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ void ConvertFstToLattice(
268268
MutableFst<ArcTpl<LatticeWeightTpl<Real> > > *ofst) {
269269
int32 num_states_cache = 50000;
270270
fst::CacheOptions cache_opts(true, num_states_cache);
271-
fst::MapFstOptions mapfst_opts(cache_opts);
271+
fst::ArcMapFstOptions mapfst_opts(cache_opts);
272272
StdToLatticeMapper<Real> mapper;
273273
MapFst<StdArc, ArcTpl<LatticeWeightTpl<Real> >,
274274
StdToLatticeMapper<Real> > map_fst(ifst, mapper, mapfst_opts);

0 commit comments

Comments
 (0)