Skip to content

Commit

Permalink
Import v1.6.9 r1
Browse files Browse the repository at this point in the history
  • Loading branch information
kkm committed Jul 29, 2018
1 parent 33744b7 commit aa1bdb5
Show file tree
Hide file tree
Showing 36 changed files with 169 additions and 235 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
OpenFst: Release 1.6
* Optimized label lookup in SymbolTable (1.6.9)
* Fixed PROGRAM_FLAGS documentation string in binaries (1.6.8)
* Fixed handling of symbol tables in EpsNormalize (1.6.8)
* Fixed HashMatcher issues with SetState() and Find() consistency (1.6.8)
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
OpenFst: Release 1.6.8.
OpenFst: Release 1.6.9.

OpenFst is a library for constructing, combining, optimizing, and searching
weighted finite-state transducers (FSTs).
Expand Down
20 changes: 10 additions & 10 deletions configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for OpenFst 1.6.8.
# Generated by GNU Autoconf 2.69 for OpenFst 1.6.9.
#
# Report bugs to <help@www.openfst.org>.
#
Expand Down Expand Up @@ -590,8 +590,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='OpenFst'
PACKAGE_TARNAME='openfst'
PACKAGE_VERSION='1.6.8'
PACKAGE_STRING='OpenFst 1.6.8'
PACKAGE_VERSION='1.6.9'
PACKAGE_STRING='OpenFst 1.6.9'
PACKAGE_BUGREPORT='help@www.openfst.org'
PACKAGE_URL=''

Expand Down Expand Up @@ -1395,7 +1395,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures OpenFst 1.6.8 to adapt to many kinds of systems.
\`configure' configures OpenFst 1.6.9 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

Expand Down Expand Up @@ -1466,7 +1466,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of OpenFst 1.6.8:";;
short | recursive ) echo "Configuration of OpenFst 1.6.9:";;
esac
cat <<\_ACEOF

Expand Down Expand Up @@ -1598,7 +1598,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
OpenFst configure 1.6.8
OpenFst configure 1.6.9
generated by GNU Autoconf 2.69

Copyright (C) 2012 Free Software Foundation, Inc.
Expand Down Expand Up @@ -1997,7 +1997,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by OpenFst $as_me 1.6.8, which was
It was created by OpenFst $as_me 1.6.9, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ $0 $@
Expand Down Expand Up @@ -2860,7 +2860,7 @@ fi

# Define the identity of the package.
PACKAGE='openfst'
VERSION='1.6.8'
VERSION='1.6.9'


cat >>confdefs.h <<_ACEOF
Expand Down Expand Up @@ -17391,7 +17391,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by OpenFst $as_me 1.6.8, which was
This file was extended by OpenFst $as_me 1.6.9, which was
generated by GNU Autoconf 2.69. Invocation command line was

CONFIG_FILES = $CONFIG_FILES
Expand Down Expand Up @@ -17457,7 +17457,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
OpenFst config.status 1.6.8
OpenFst config.status 1.6.9
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([OpenFst], [1.6.8], [help@www.openfst.org])
AC_INIT([OpenFst], [1.6.9], [help@www.openfst.org])
AM_INIT_AUTOMAKE([foreign nostdinc -Wall -Werror subdir-objects])
AM_PROG_AR

Expand Down
2 changes: 1 addition & 1 deletion src/extensions/compact/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ libfst_LTLIBRARIES = compact8_acceptor-fst.la compact8_string-fst.la compact8_un
lib_LTLIBRARIES = libfstcompact.la

libfstcompact_la_SOURCES = compact8_acceptor-fst.cc compact8_string-fst.cc compact8_unweighted-fst.cc compact8_unweighted_acceptor-fst.cc compact8_weighted_string-fst.cc compact16_acceptor-fst.cc compact16_string-fst.cc compact16_unweighted-fst.cc compact16_unweighted_acceptor-fst.cc compact16_weighted_string-fst.cc compact64_acceptor-fst.cc compact64_string-fst.cc compact64_unweighted-fst.cc compact64_unweighted_acceptor-fst.cc compact64_weighted_string-fst.cc
libfstcompact_la_LDFLAGS = -version-info 11:0:0
libfstcompact_la_LDFLAGS = -version-info 13:0:0
libfstcompact_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)

compact8_acceptor_fst_la_SOURCES = compact8_acceptor-fst.cc
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/compact/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ AM_CPPFLAGS = -I$(srcdir)/../../include $(ICU_CPPFLAGS)
libfst_LTLIBRARIES = compact8_acceptor-fst.la compact8_string-fst.la compact8_unweighted-fst.la compact8_unweighted_acceptor-fst.la compact8_weighted_string-fst.la compact16_acceptor-fst.la compact16_string-fst.la compact16_unweighted-fst.la compact16_unweighted_acceptor-fst.la compact16_weighted_string-fst.la compact64_acceptor-fst.la compact64_string-fst.la compact64_unweighted-fst.la compact64_unweighted_acceptor-fst.la compact64_weighted_string-fst.la
lib_LTLIBRARIES = libfstcompact.la
libfstcompact_la_SOURCES = compact8_acceptor-fst.cc compact8_string-fst.cc compact8_unweighted-fst.cc compact8_unweighted_acceptor-fst.cc compact8_weighted_string-fst.cc compact16_acceptor-fst.cc compact16_string-fst.cc compact16_unweighted-fst.cc compact16_unweighted_acceptor-fst.cc compact16_weighted_string-fst.cc compact64_acceptor-fst.cc compact64_string-fst.cc compact64_unweighted-fst.cc compact64_unweighted_acceptor-fst.cc compact64_weighted_string-fst.cc
libfstcompact_la_LDFLAGS = -version-info 11:0:0
libfstcompact_la_LDFLAGS = -version-info 13:0:0
libfstcompact_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)
compact8_acceptor_fst_la_SOURCES = compact8_acceptor-fst.cc
compact8_acceptor_fst_la_LDFLAGS = -module
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/compress/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ endif

if HAVE_SCRIPT
libfstcompressscript_la_SOURCES = compress-script.cc
libfstcompressscript_la_LDFLAGS = -version-info 11:0:0
libfstcompressscript_la_LDFLAGS = -version-info 13:0:0
libfstcompressscript_la_LIBADD = \
../../script/libfstscript.la \
../../lib/libfst.la -lz -lm $(DL_LIBS)
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/compress/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ AM_CPPFLAGS = -I$(srcdir)/../../include $(ICU_CPPFLAGS)
@HAVE_BIN_TRUE@fstcompress_SOURCES = fstcompress.cc
@HAVE_BIN_TRUE@fstrandmod_SOURCES = fstrandmod.cc
@HAVE_SCRIPT_TRUE@libfstcompressscript_la_SOURCES = compress-script.cc
@HAVE_SCRIPT_TRUE@libfstcompressscript_la_LDFLAGS = -version-info 11:0:0
@HAVE_SCRIPT_TRUE@libfstcompressscript_la_LDFLAGS = -version-info 13:0:0
@HAVE_SCRIPT_TRUE@libfstcompressscript_la_LIBADD = \
@HAVE_SCRIPT_TRUE@ ../../script/libfstscript.la \
@HAVE_SCRIPT_TRUE@ ../../lib/libfst.la -lz -lm $(DL_LIBS)
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/const/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ libfst_LTLIBRARIES = const8-fst.la const16-fst.la const64-fst.la
lib_LTLIBRARIES = libfstconst.la

libfstconst_la_SOURCES = const8-fst.cc const16-fst.cc const64-fst.cc
libfstconst_la_LDFLAGS = -version-info 11:0:0 -lm $(DL_LIBS)
libfstconst_la_LDFLAGS = -version-info 13:0:0 -lm $(DL_LIBS)
libfstconst_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)

const8_fst_la_SOURCES = const8-fst.cc
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/const/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ AM_CPPFLAGS = -I$(srcdir)/../../include $(ICU_CPPFLAGS)
libfst_LTLIBRARIES = const8-fst.la const16-fst.la const64-fst.la
lib_LTLIBRARIES = libfstconst.la
libfstconst_la_SOURCES = const8-fst.cc const16-fst.cc const64-fst.cc
libfstconst_la_LDFLAGS = -version-info 11:0:0 -lm $(DL_LIBS)
libfstconst_la_LDFLAGS = -version-info 13:0:0 -lm $(DL_LIBS)
libfstconst_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)
const8_fst_la_SOURCES = const8-fst.cc
const8_fst_la_LDFLAGS = -module
Expand Down
4 changes: 2 additions & 2 deletions src/extensions/far/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ lib_LTLIBRARIES = libfstfar.la
endif

libfstfar_la_SOURCES = sttable.cc stlist.cc
libfstfar_la_LDFLAGS = -version-info 11:0:0
libfstfar_la_LDFLAGS = -version-info 13:0:0
libfstfar_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)

if HAVE_SCRIPT
libfstfarscript_la_SOURCES = far-class.cc farscript.cc getters.cc script-impl.cc \
strings.cc
libfstfarscript_la_LDFLAGS = -version-info 11:0:0
libfstfarscript_la_LDFLAGS = -version-info 13:0:0
libfstfarscript_la_LIBADD = \
libfstfar.la ../../script/libfstscript.la \
../../lib/libfst.la -lm $(DL_LIBS)
Expand Down
4 changes: 2 additions & 2 deletions src/extensions/far/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -426,12 +426,12 @@ AM_CPPFLAGS = -I$(srcdir)/../../include $(ICU_CPPFLAGS)
@HAVE_SCRIPT_FALSE@lib_LTLIBRARIES = libfstfar.la
@HAVE_SCRIPT_TRUE@lib_LTLIBRARIES = libfstfar.la libfstfarscript.la
libfstfar_la_SOURCES = sttable.cc stlist.cc
libfstfar_la_LDFLAGS = -version-info 11:0:0
libfstfar_la_LDFLAGS = -version-info 13:0:0
libfstfar_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)
@HAVE_SCRIPT_TRUE@libfstfarscript_la_SOURCES = far-class.cc farscript.cc getters.cc script-impl.cc \
@HAVE_SCRIPT_TRUE@ strings.cc

@HAVE_SCRIPT_TRUE@libfstfarscript_la_LDFLAGS = -version-info 11:0:0
@HAVE_SCRIPT_TRUE@libfstfarscript_la_LDFLAGS = -version-info 13:0:0
@HAVE_SCRIPT_TRUE@libfstfarscript_la_LIBADD = \
@HAVE_SCRIPT_TRUE@ libfstfar.la ../../script/libfstscript.la \
@HAVE_SCRIPT_TRUE@ ../../lib/libfst.la -lm $(DL_LIBS)
Expand Down
16 changes: 1 addition & 15 deletions src/extensions/far/far-class.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,8 @@ FarReaderClass *FarReaderClass::Open(const std::vector<string> &filenames) {
LOG(ERROR) << "FarReaderClass::Open: No files specified";
return nullptr;
}
auto it = filenames.cbegin();
const auto arc_type = LoadArcTypeFromFar(*it);
const auto arc_type = LoadArcTypeFromFar(filenames.front());
if (arc_type.empty()) return nullptr;
// FIXME(kbg): Is any of this really necessary? I am doing this purely
// to conform to what I did with fst::script::Replace.
++it;
for (; it != filenames.cend(); ++it) {
const string other_arc_type = LoadArcTypeFromFar(*it);
if (other_arc_type.empty()) return nullptr;
if (arc_type != other_arc_type) {
LOG(ERROR) << "FarReaderClass::Open: Trying to open FARs with "
<< "non-matching arc types:\n\t" << arc_type << " and "
<< other_arc_type;
return nullptr;
}
}
OpenFarReaderClassArgs2 args(filenames);
args.retval = nullptr;
Apply<Operation<OpenFarReaderClassArgs2>>("OpenFarReaderClass", arc_type,
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/linear/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ endif

if HAVE_SCRIPT
libfstlinearscript_la_SOURCES = linearscript.cc
libfstlinearscript_la_LDFLAGS = -version-info 11:0:0 -lm $(DL_LIBS)
libfstlinearscript_la_LDFLAGS = -version-info 13:0:0 -lm $(DL_LIBS)
libfstlinearscript_la_LIBADD = ../../script/libfstscript.la \
../../lib/libfst.la -lm $(DL_LIBS)
endif
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/linear/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ AM_CPPFLAGS = -I$(srcdir)/../../include $(ICU_CPPFLAGS)
@HAVE_BIN_TRUE@fstlinear_SOURCES = fstlinear.cc
@HAVE_BIN_TRUE@fstloglinearapply_SOURCES = fstloglinearapply.cc
@HAVE_SCRIPT_TRUE@libfstlinearscript_la_SOURCES = linearscript.cc
@HAVE_SCRIPT_TRUE@libfstlinearscript_la_LDFLAGS = -version-info 11:0:0 -lm $(DL_LIBS)
@HAVE_SCRIPT_TRUE@libfstlinearscript_la_LDFLAGS = -version-info 13:0:0 -lm $(DL_LIBS)
@HAVE_SCRIPT_TRUE@libfstlinearscript_la_LIBADD = ../../script/libfstscript.la \
@HAVE_SCRIPT_TRUE@ ../../lib/libfst.la -lm $(DL_LIBS)

Expand Down
2 changes: 1 addition & 1 deletion src/extensions/lookahead/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ lib_LTLIBRARIES = libfstlookahead.la

libfstlookahead_la_SOURCES = arc_lookahead-fst.cc ilabel_lookahead-fst.cc \
olabel_lookahead-fst.cc
libfstlookahead_la_LDFLAGS = -version-info 11:0:0
libfstlookahead_la_LDFLAGS = -version-info 13:0:0
libfstlookahead_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)

arc_lookahead_fst_la_SOURCES = arc_lookahead-fst.cc
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/lookahead/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ lib_LTLIBRARIES = libfstlookahead.la
libfstlookahead_la_SOURCES = arc_lookahead-fst.cc ilabel_lookahead-fst.cc \
olabel_lookahead-fst.cc

libfstlookahead_la_LDFLAGS = -version-info 11:0:0
libfstlookahead_la_LDFLAGS = -version-info 13:0:0
libfstlookahead_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)
arc_lookahead_fst_la_SOURCES = arc_lookahead-fst.cc
arc_lookahead_fst_la_LDFLAGS = -module
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/mpdt/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ endif
if HAVE_SCRIPT
lib_LTLIBRARIES = libfstmpdtscript.la
libfstmpdtscript_la_SOURCES = mpdtscript.cc
libfstmpdtscript_la_LDFLAGS = -version-info 11:0:0
libfstmpdtscript_la_LDFLAGS = -version-info 13:0:0
libfstmpdtscript_la_LIBADD = ../../script/libfstscript.la \
../../lib/libfst.la -lm $(DL_LIBS)
endif
2 changes: 1 addition & 1 deletion src/extensions/mpdt/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ AM_CPPFLAGS = -I$(srcdir)/../../include $(ICU_CPPFLAGS)
@HAVE_BIN_TRUE@mpdtreverse_SOURCES = mpdtreverse.cc
@HAVE_SCRIPT_TRUE@lib_LTLIBRARIES = libfstmpdtscript.la
@HAVE_SCRIPT_TRUE@libfstmpdtscript_la_SOURCES = mpdtscript.cc
@HAVE_SCRIPT_TRUE@libfstmpdtscript_la_LDFLAGS = -version-info 11:0:0
@HAVE_SCRIPT_TRUE@libfstmpdtscript_la_LDFLAGS = -version-info 13:0:0
@HAVE_SCRIPT_TRUE@libfstmpdtscript_la_LIBADD = ../../script/libfstscript.la \
@HAVE_SCRIPT_TRUE@ ../../lib/libfst.la -lm $(DL_LIBS)

Expand Down
2 changes: 1 addition & 1 deletion src/extensions/ngram/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ ngram_fst_la_SOURCES = bitmap-index.cc ngram-fst.cc nthbit.cc
ngram_fst_la_LDFLAGS = -module

libfstngram_la_SOURCES = bitmap-index.cc ngram-fst.cc nthbit.cc
libfstngram_la_LDFLAGS = -version-info 11:0:0
libfstngram_la_LDFLAGS = -version-info 13:0:0
libfstngram_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)
2 changes: 1 addition & 1 deletion src/extensions/ngram/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ lib_LTLIBRARIES = libfstngram.la
ngram_fst_la_SOURCES = bitmap-index.cc ngram-fst.cc nthbit.cc
ngram_fst_la_LDFLAGS = -module
libfstngram_la_SOURCES = bitmap-index.cc ngram-fst.cc nthbit.cc
libfstngram_la_LDFLAGS = -version-info 11:0:0
libfstngram_la_LDFLAGS = -version-info 13:0:0
libfstngram_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)
all: all-am

Expand Down
2 changes: 1 addition & 1 deletion src/extensions/pdt/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ endif
if HAVE_SCRIPT
lib_LTLIBRARIES = libfstpdtscript.la
libfstpdtscript_la_SOURCES = getters.cc pdtscript.cc
libfstpdtscript_la_LDFLAGS = -version-info 11:0:0
libfstpdtscript_la_LDFLAGS = -version-info 13:0:0
libfstpdtscript_la_LIBADD = ../../script/libfstscript.la \
../../lib/libfst.la -lm $(DL_LIBS)
endif
2 changes: 1 addition & 1 deletion src/extensions/pdt/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ AM_CPPFLAGS = -I$(srcdir)/../../include $(ICU_CPPFLAGS)
@HAVE_BIN_TRUE@pdtshortestpath_SOURCES = pdtshortestpath.cc
@HAVE_SCRIPT_TRUE@lib_LTLIBRARIES = libfstpdtscript.la
@HAVE_SCRIPT_TRUE@libfstpdtscript_la_SOURCES = getters.cc pdtscript.cc
@HAVE_SCRIPT_TRUE@libfstpdtscript_la_LDFLAGS = -version-info 11:0:0
@HAVE_SCRIPT_TRUE@libfstpdtscript_la_LDFLAGS = -version-info 13:0:0
@HAVE_SCRIPT_TRUE@libfstpdtscript_la_LIBADD = ../../script/libfstscript.la \
@HAVE_SCRIPT_TRUE@ ../../lib/libfst.la -lm $(DL_LIBS)

Expand Down
3 changes: 1 addition & 2 deletions src/extensions/python/pywrapfst.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -4335,8 +4335,7 @@ cdef class FarReader(object):
self._reader.get().Reset()

def __getitem__(self, key):
cdef string ckey = tostring(key)
if self.get_key() == ckey or self._reader.get().Find(ckey):
if self._reader.get().Find(tostring(key)):
return self.get_fst()
else:
raise KeyError(key)
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/special/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ libfst_LTLIBRARIES = phi-fst.la rho-fst.la sigma-fst.la
lib_LTLIBRARIES = libfstspecial.la

libfstspecial_la_SOURCES = phi-fst.cc rho-fst.cc sigma-fst.cc
libfstspecial_la_LDFLAGS = -version-info 11:0:0 -lm $(DL_LIBS)
libfstspecial_la_LDFLAGS = -version-info 13:0:0 -lm $(DL_LIBS)
libfstspecial_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)

phi_fst_la_SOURCES = phi-fst.cc
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/special/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ AM_CPPFLAGS = -I$(srcdir)/../../include -I$(srcdir)/../../bin $(ICU_CPPFLAGS)
libfst_LTLIBRARIES = phi-fst.la rho-fst.la sigma-fst.la
lib_LTLIBRARIES = libfstspecial.la
libfstspecial_la_SOURCES = phi-fst.cc rho-fst.cc sigma-fst.cc
libfstspecial_la_LDFLAGS = -version-info 11:0:0 -lm $(DL_LIBS)
libfstspecial_la_LDFLAGS = -version-info 13:0:0 -lm $(DL_LIBS)
libfstspecial_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)
phi_fst_la_SOURCES = phi-fst.cc
phi_fst_la_LDFLAGS = -module
Expand Down
1 change: 0 additions & 1 deletion src/include/fst/extensions/far/far.h
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ class FstFarReader : public FarReader<A> {
if (keys_[i].empty()) {
if (!has_stdin_) {
streams_[i] = &std::cin;
// sources_[i] = "stdin";
has_stdin_ = true;
} else {
FSTERROR() << "FstFarReader::FstFarReader: standard input should "
Expand Down
6 changes: 3 additions & 3 deletions src/include/fst/queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ class NaturalShortestFirstQueue final

private:
// This is non-static because the constructor for non-idempotent weights will
// result in a an error.
// result in an error.
const NaturalLess<Weight> less_{};
};

Expand Down Expand Up @@ -663,7 +663,7 @@ void AutoQueue<StateId>::SccQueueType(const Fst<Arc> &fst,
}
}

// An A* estimate is a function object that maps from a state ID to a an
// An A* estimate is a function object that maps from a state ID to an
// estimate of the shortest distance to the final states.

// A trivial A* estimate, yielding a queue which behaves the same in Dijkstra's
Expand Down Expand Up @@ -731,7 +731,7 @@ class NaturalAStarQueue : public ShortestFirstQueue<

private:
// This is non-static because the constructor for non-idempotent weights will
// result in a an error.
// result in an error.
const NaturalLess<Weight> less_{};
};

Expand Down
Loading

0 comments on commit aa1bdb5

Please sign in to comment.