chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
|
||||
#-DHAVE_CONFIG_H -I./../include -fno-exceptions -funsigned-char -std=c++11 -MT symbol-table.lo -MD -MP -MF .deps/symbol-table.Tpo -c symbol-table.cc -fno-common -DPIC -o .libs/symbol-table.o
|
||||
|
||||
include_directories(./include/)
|
||||
install(DIRECTORY include/ DESTINATION include/
|
||||
FILES_MATCHING PATTERN "*.h")
|
||||
|
||||
add_subdirectory(lib)
|
||||
|
||||
if(HAVE_SCRIPT)
|
||||
add_subdirectory(script)
|
||||
endif(HAVE_SCRIPT)
|
||||
|
||||
if(HAVE_BIN)
|
||||
add_subdirectory(bin)
|
||||
endif(HAVE_BIN)
|
||||
|
||||
add_subdirectory(extensions)
|
||||
|
||||
if(BUILD_TESTING)
|
||||
enable_testing()
|
||||
add_subdirectory(test)
|
||||
endif(BUILD_TESTING)
|
||||
@@ -0,0 +1 @@
|
||||
SUBDIRS = include lib script bin test extensions
|
||||
@@ -0,0 +1,638 @@
|
||||
# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
false; \
|
||||
elif test -n '$(MAKE_HOST)'; then \
|
||||
true; \
|
||||
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||
true; \
|
||||
else \
|
||||
false; \
|
||||
fi; \
|
||||
}
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = src
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/ac_python_devel.m4 \
|
||||
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
|
||||
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
|
||||
$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h \
|
||||
$(top_builddir)/src/include/fst/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
|
||||
ctags-recursive dvi-recursive html-recursive info-recursive \
|
||||
install-data-recursive install-dvi-recursive \
|
||||
install-exec-recursive install-html-recursive \
|
||||
install-info-recursive install-pdf-recursive \
|
||||
install-ps-recursive install-recursive installcheck-recursive \
|
||||
installdirs-recursive pdf-recursive ps-recursive \
|
||||
tags-recursive uninstall-recursive
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
|
||||
distclean-recursive maintainer-clean-recursive
|
||||
am__recursive_targets = \
|
||||
$(RECURSIVE_TARGETS) \
|
||||
$(RECURSIVE_CLEAN_TARGETS) \
|
||||
$(am__extra_recursive_targets)
|
||||
AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
|
||||
distdir
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
# Read a list of newline-separated strings from the standard input,
|
||||
# and print each of them once, without duplicates. Input order is
|
||||
# *not* preserved.
|
||||
am__uniquify_input = $(AWK) '\
|
||||
BEGIN { nonempty = 0; } \
|
||||
{ items[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in items) print i; }; } \
|
||||
'
|
||||
# Make sure the list of sources is unique. This is necessary because,
|
||||
# e.g., the same source file might be shared among _SOURCES variables
|
||||
# for different programs/libraries.
|
||||
am__define_uniq_tagged_files = \
|
||||
list='$(am__tagged_files)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | $(am__uniquify_input)`
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
am__relativize = \
|
||||
dir0=`pwd`; \
|
||||
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
|
||||
sed_rest='s,^[^/]*/*,,'; \
|
||||
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
|
||||
sed_butlast='s,/*[^/]*$$,,'; \
|
||||
while test -n "$$dir1"; do \
|
||||
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
|
||||
if test "$$first" != "."; then \
|
||||
if test "$$first" = ".."; then \
|
||||
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
|
||||
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
|
||||
else \
|
||||
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
|
||||
if test "$$first2" = "$$first"; then \
|
||||
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
|
||||
else \
|
||||
dir2="../$$dir2"; \
|
||||
fi; \
|
||||
dir0="$$dir0"/"$$first"; \
|
||||
fi; \
|
||||
fi; \
|
||||
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
|
||||
done; \
|
||||
reldir="$$dir2"
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
CXXDEPMODE = @CXXDEPMODE@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DL_LIBS = @DL_LIBS@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GREP = @GREP@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PYTHON = @PYTHON@
|
||||
PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@
|
||||
PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
|
||||
PYTHON_EXTRA_LDFLAGS = @PYTHON_EXTRA_LDFLAGS@
|
||||
PYTHON_EXTRA_LIBS = @PYTHON_EXTRA_LIBS@
|
||||
PYTHON_LDFLAGS = @PYTHON_LDFLAGS@
|
||||
PYTHON_PLATFORM = @PYTHON_PLATFORM@
|
||||
PYTHON_PREFIX = @PYTHON_PREFIX@
|
||||
PYTHON_SITE_PKG = @PYTHON_SITE_PKG@
|
||||
PYTHON_VERSION = @PYTHON_VERSION@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
libfstdir = @libfstdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
pkgpyexecdir = @pkgpyexecdir@
|
||||
pkgpythondir = @pkgpythondir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
pyexecdir = @pyexecdir@
|
||||
pythondir = @pythondir@
|
||||
runstatedir = @runstatedir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
SUBDIRS = include lib script bin test extensions
|
||||
all: all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign src/Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run 'make' without going through this Makefile.
|
||||
# To change the values of 'make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in 'config.status', edit 'config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run 'make');
|
||||
# (2) otherwise, pass the desired values on the 'make' command line.
|
||||
$(am__recursive_targets):
|
||||
@fail=; \
|
||||
if $(am__make_keepgoing); then \
|
||||
failcom='fail=yes'; \
|
||||
else \
|
||||
failcom='exit 1'; \
|
||||
fi; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
ID: $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); mkid -fID $$unique
|
||||
tags: tags-recursive
|
||||
TAGS: tags
|
||||
|
||||
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
set x; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
$(am__define_uniq_tagged_files); \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi
|
||||
ctags: ctags-recursive
|
||||
|
||||
CTAGS: ctags
|
||||
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); \
|
||||
test -z "$(CTAGS_ARGS)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__cd) $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) "$$here"
|
||||
cscopelist: cscopelist-recursive
|
||||
|
||||
cscopelist-am: $(am__tagged_files)
|
||||
list='$(am__tagged_files)'; \
|
||||
case "$(srcdir)" in \
|
||||
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
||||
*) sdir=$(subdir)/$(srcdir) ;; \
|
||||
esac; \
|
||||
for i in $$list; do \
|
||||
if test -f "$$i"; then \
|
||||
echo "$(subdir)/$$i"; \
|
||||
else \
|
||||
echo "$$sdir/$$i"; \
|
||||
fi; \
|
||||
done >> $(top_builddir)/cscope.files
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
$(am__make_dryrun) \
|
||||
|| test -d "$(distdir)/$$subdir" \
|
||||
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
|
||||
$(am__relativize); \
|
||||
new_distdir=$$reldir; \
|
||||
dir1=$$subdir; dir2="$(top_distdir)"; \
|
||||
$(am__relativize); \
|
||||
new_top_distdir=$$reldir; \
|
||||
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
|
||||
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
|
||||
($(am__cd) $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$new_top_distdir" \
|
||||
distdir="$$new_distdir" \
|
||||
am__remove_distdir=: \
|
||||
am__skip_length_check=: \
|
||||
am__skip_mode_fix=: \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-recursive
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-dvi: install-dvi-recursive
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-recursive
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-recursive
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-recursive
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am:
|
||||
|
||||
.MAKE: $(am__recursive_targets) install-am install-strip
|
||||
|
||||
.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
|
||||
check-am clean clean-generic clean-libtool cscopelist-am ctags \
|
||||
ctags-am distclean distclean-generic distclean-libtool \
|
||||
distclean-tags distdir dvi dvi-am html html-am info info-am \
|
||||
install install-am install-data install-data-am install-dvi \
|
||||
install-dvi-am install-exec install-exec-am install-html \
|
||||
install-html-am install-info install-info-am install-man \
|
||||
install-pdf install-pdf-am install-ps install-ps-am \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
installdirs-am maintainer-clean maintainer-clean-generic \
|
||||
mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
|
||||
ps ps-am tags tags-am uninstall uninstall-am
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
@@ -0,0 +1,86 @@
|
||||
function (add_executable2 _name)
|
||||
add_executable(${ARGV})
|
||||
if (TARGET ${_name})
|
||||
target_link_libraries(${_name} fstscript fst ${CMAKE_DL_LIBS})
|
||||
set_target_properties(${_name} PROPERTIES FOLDER bin)
|
||||
endif()
|
||||
|
||||
install(TARGETS ${_name} RUNTIME DESTINATION bin)
|
||||
endfunction()
|
||||
|
||||
include_directories(../include ../script/)
|
||||
|
||||
add_executable2(fstarcsort fstarcsort-main.cc fstarcsort.cc)
|
||||
|
||||
add_executable2(fstclosure fstclosure-main.cc fstclosure.cc)
|
||||
|
||||
add_executable2(fstcompile fstcompile-main.cc fstcompile.cc)
|
||||
|
||||
add_executable2(fstcompose fstcompose-main.cc fstcompose.cc)
|
||||
|
||||
add_executable2(fstconcat fstconcat-main.cc fstconcat.cc)
|
||||
|
||||
add_executable2(fstconnect fstconnect-main.cc fstconnect.cc)
|
||||
|
||||
add_executable2(fstconvert fstconvert-main.cc fstconvert.cc)
|
||||
|
||||
add_executable2(fstdeterminize fstdeterminize-main.cc fstdeterminize.cc)
|
||||
|
||||
add_executable2(fstdifference fstdifference-main.cc fstdifference.cc)
|
||||
|
||||
add_executable2(fstdisambiguate fstdisambiguate-main.cc fstdisambiguate.cc)
|
||||
|
||||
add_executable2(fstdraw fstdraw-main.cc fstdraw.cc)
|
||||
|
||||
add_executable2(fstencode fstencode-main.cc fstencode.cc)
|
||||
|
||||
add_executable2(fstepsnormalize fstepsnormalize-main.cc fstepsnormalize.cc)
|
||||
|
||||
add_executable2(fstequal fstequal-main.cc fstequal.cc)
|
||||
|
||||
add_executable2(fstequivalent fstequivalent-main.cc fstequivalent.cc)
|
||||
|
||||
add_executable2(fstinfo fstinfo-main.cc fstinfo.cc)
|
||||
|
||||
add_executable2(fstintersect fstintersect-main.cc fstintersect.cc)
|
||||
|
||||
add_executable2(fstinvert fstinvert-main.cc fstinvert.cc)
|
||||
|
||||
add_executable2(fstisomorphic fstisomorphic-main.cc fstisomorphic.cc)
|
||||
|
||||
add_executable2(fstmap fstmap-main.cc fstmap.cc)
|
||||
|
||||
add_executable2(fstminimize fstminimize-main.cc fstminimize.cc)
|
||||
|
||||
add_executable2(fstprint fstprint-main.cc fstprint.cc)
|
||||
|
||||
add_executable2(fstproject fstproject-main.cc fstproject.cc)
|
||||
|
||||
add_executable2(fstprune fstprune-main.cc fstprune.cc)
|
||||
|
||||
add_executable2(fstpush fstpush-main.cc fstpush.cc)
|
||||
|
||||
add_executable2(fstrandgen fstrandgen-main.cc fstrandgen.cc)
|
||||
|
||||
add_executable2(fstrelabel fstrelabel-main.cc fstrelabel.cc)
|
||||
|
||||
add_executable2(fstreplace fstreplace-main.cc fstreplace.cc)
|
||||
|
||||
add_executable2(fstreverse fstreverse-main.cc fstreverse.cc)
|
||||
|
||||
add_executable2(fstreweight fstreweight-main.cc fstreweight.cc)
|
||||
|
||||
add_executable2(fstrmepsilon fstrmepsilon-main.cc fstrmepsilon.cc)
|
||||
|
||||
add_executable2(fstshortestdistance fstshortestdistance-main.cc fstshortestdistance.cc)
|
||||
|
||||
add_executable2(fstshortestpath fstshortestpath-main.cc fstshortestpath.cc)
|
||||
|
||||
add_executable2(fstsymbols fstsymbols-main.cc fstsymbols.cc)
|
||||
|
||||
add_executable2(fstsynchronize fstsynchronize-main.cc fstsynchronize.cc)
|
||||
|
||||
add_executable2(fsttopsort fsttopsort-main.cc fsttopsort.cc)
|
||||
|
||||
add_executable2(fstunion fstunion-main.cc fstunion.cc)
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
AM_CPPFLAGS = -I$(srcdir)/../include -I$(srcdir)/../script $(ICU_FLAGS)
|
||||
LDADD = ../script/libfstscript.la ../lib/libfst.la -lm $(DL_LIBS)
|
||||
|
||||
if HAVE_BIN
|
||||
bin_PROGRAMS = fstarcsort fstclosure fstcompile fstcompose fstconcat \
|
||||
fstconnect fstconvert fstdeterminize fstdifference fstdisambiguate fstdraw \
|
||||
fstencode fstepsnormalize fstequal fstequivalent fstinfo fstintersect \
|
||||
fstinvert fstisomorphic fstmap fstminimize fstprint fstproject fstprune \
|
||||
fstpush fstrandgen fstrelabel fstreplace fstreverse fstreweight fstrmepsilon \
|
||||
fstshortestdistance fstshortestpath fstsymbols fstsynchronize fsttopsort \
|
||||
fstunion
|
||||
|
||||
fstarcsort_SOURCES = fstarcsort.cc fstarcsort-main.cc
|
||||
|
||||
fstclosure_SOURCES = fstclosure.cc fstclosure-main.cc
|
||||
|
||||
fstcompile_SOURCES = fstcompile.cc fstcompile-main.cc
|
||||
|
||||
fstcompose_SOURCES = fstcompose.cc fstcompose-main.cc
|
||||
|
||||
fstconcat_SOURCES = fstconcat.cc fstconcat-main.cc
|
||||
|
||||
fstconnect_SOURCES = fstconnect.cc fstconnect-main.cc
|
||||
|
||||
fstconvert_SOURCES = fstconvert.cc fstconvert-main.cc
|
||||
|
||||
fstdeterminize_SOURCES = fstdeterminize.cc fstdeterminize-main.cc
|
||||
|
||||
fstdifference_SOURCES = fstdifference.cc fstdifference-main.cc
|
||||
|
||||
fstdisambiguate_SOURCES = fstdisambiguate.cc fstdisambiguate-main.cc
|
||||
|
||||
fstdraw_SOURCES = fstdraw.cc fstdraw-main.cc
|
||||
|
||||
fstencode_SOURCES = fstencode.cc fstencode-main.cc
|
||||
|
||||
fstepsnormalize_SOURCES = fstepsnormalize.cc fstepsnormalize-main.cc
|
||||
|
||||
fstequal_SOURCES = fstequal.cc fstequal-main.cc
|
||||
|
||||
fstequivalent_SOURCES = fstequivalent.cc fstequivalent-main.cc
|
||||
|
||||
fstinfo_SOURCES = fstinfo.cc fstinfo-main.cc
|
||||
|
||||
fstintersect_SOURCES = fstintersect.cc fstintersect-main.cc
|
||||
|
||||
fstinvert_SOURCES = fstinvert.cc fstinvert-main.cc
|
||||
|
||||
fstisomorphic_SOURCES = fstisomorphic.cc fstisomorphic-main.cc
|
||||
|
||||
fstmap_SOURCES = fstmap.cc fstmap-main.cc
|
||||
|
||||
fstminimize_SOURCES = fstminimize.cc fstminimize-main.cc
|
||||
|
||||
fstprint_SOURCES = fstprint.cc fstprint-main.cc
|
||||
|
||||
fstproject_SOURCES = fstproject.cc fstproject-main.cc
|
||||
|
||||
fstprune_SOURCES = fstprune.cc fstprune-main.cc
|
||||
|
||||
fstpush_SOURCES = fstpush.cc fstpush-main.cc
|
||||
|
||||
fstrandgen_SOURCES = fstrandgen.cc fstrandgen-main.cc
|
||||
|
||||
fstrelabel_SOURCES = fstrelabel.cc fstrelabel-main.cc
|
||||
|
||||
fstreplace_SOURCES = fstreplace.cc fstreplace-main.cc
|
||||
|
||||
fstreverse_SOURCES = fstreverse.cc fstreverse-main.cc
|
||||
|
||||
fstreweight_SOURCES = fstreweight.cc fstreweight-main.cc
|
||||
|
||||
fstrmepsilon_SOURCES = fstrmepsilon.cc fstrmepsilon-main.cc
|
||||
|
||||
fstshortestdistance_SOURCES = fstshortestdistance.cc fstshortestdistance-main.cc
|
||||
|
||||
fstshortestpath_SOURCES = fstshortestpath.cc fstshortestpath-main.cc
|
||||
|
||||
fstsymbols_SOURCES = fstsymbols.cc fstsymbols-main.cc
|
||||
|
||||
fstsynchronize_SOURCES = fstsynchronize.cc fstsynchronize-main.cc
|
||||
|
||||
fsttopsort_SOURCES = fsttopsort.cc fsttopsort-main.cc
|
||||
|
||||
fstunion_SOURCES = fstunion.cc fstunion-main.cc
|
||||
endif
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,27 @@
|
||||
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<!--
|
||||
Need ConfigurationType set before importing openfst.props!
|
||||
-->
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{84657A19-CAF2-49E8-8DB3-A428C19F460D}</ProjectGuid>
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<MultiBin>true</MultiBin>
|
||||
</PropertyGroup>
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
<Import Project="../openfst.props" />
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
<ItemGroup>
|
||||
<ClCompile Include="*.cc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\lib\libfst.vcxproj">
|
||||
<Project>{de80efec-9ed9-4631-bd96-8568c31ed26d}</Project>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\script\libfstscript.vcxproj">
|
||||
<Project>{111f46ed-da1f-469b-b912-ba2acc2ff8e6}</Project>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
<Import Project="../openfst.targets" />
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
</Project>
|
||||
@@ -0,0 +1,51 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Sorts arcs of an FST.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/log.h>
|
||||
#include <fst/script/arcsort.h>
|
||||
#include <fst/script/getters.h>
|
||||
|
||||
DECLARE_string(sort_type);
|
||||
|
||||
int fstarcsort_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::MutableFstClass;
|
||||
|
||||
string usage = "Sorts arcs of an FST.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [out.fst]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name =
|
||||
(argc > 1 && (strcmp(argv[1], "-") != 0)) ? argv[1] : "";
|
||||
const string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<MutableFstClass> fst(MutableFstClass::Read(in_name, true));
|
||||
if (!fst) return 1;
|
||||
|
||||
s::ArcSortType sort_type;
|
||||
if (!s::GetArcSortType(FLAGS_sort_type, &sort_type)) {
|
||||
LOG(ERROR) << argv[0] << ": Unknown or unsupported sort type: "
|
||||
<< FLAGS_sort_type;
|
||||
return 1;
|
||||
}
|
||||
|
||||
s::ArcSort(fst.get(), sort_type);
|
||||
|
||||
return !fst->Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/compat.h>
|
||||
#include <fst/flags.h>
|
||||
|
||||
DEFINE_string(sort_type, "ilabel",
|
||||
"Comparison method, one of: \"ilabel\", \"olabel\"");
|
||||
|
||||
int fstarcsort_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstarcsort_main(argc, argv); }
|
||||
@@ -0,0 +1,41 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Creates the Kleene closure of an FST.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/script/closure.h>
|
||||
#include <fst/script/getters.h>
|
||||
|
||||
DECLARE_bool(closure_plus);
|
||||
|
||||
int fstclosure_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::MutableFstClass;
|
||||
|
||||
string usage = "Creates the Kleene closure of an FST.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [out.fst]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
|
||||
const string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<MutableFstClass> fst(MutableFstClass::Read(in_name, true));
|
||||
if (!fst) return 1;
|
||||
|
||||
s::Closure(fst.get(), s::GetClosureType(FLAGS_closure_plus));
|
||||
|
||||
return !fst->Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
|
||||
DEFINE_bool(closure_plus, false,
|
||||
"Do not add the empty path (T+ instead of T*)?");
|
||||
|
||||
int fstclosure_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstclosure_main(argc, argv); }
|
||||
@@ -0,0 +1,84 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Creates binary FSTs from simple text format used by AT&T.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <fstream>
|
||||
#include <istream>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/log.h>
|
||||
#include <fst/script/compile.h>
|
||||
|
||||
DECLARE_bool(acceptor);
|
||||
DECLARE_string(arc_type);
|
||||
DECLARE_string(fst_type);
|
||||
DECLARE_string(isymbols);
|
||||
DECLARE_string(osymbols);
|
||||
DECLARE_string(ssymbols);
|
||||
DECLARE_bool(keep_isymbols);
|
||||
DECLARE_bool(keep_osymbols);
|
||||
DECLARE_bool(keep_state_numbering);
|
||||
DECLARE_bool(allow_negative_labels);
|
||||
|
||||
int fstcompile_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::SymbolTable;
|
||||
using fst::SymbolTableTextOptions;
|
||||
|
||||
string usage = "Creates binary FSTs from simple text format.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [text.fst [binary.fst]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
string source = "standard input";
|
||||
std::ifstream fstrm;
|
||||
if (argc > 1 && strcmp(argv[1], "-") != 0) {
|
||||
fstrm.open(argv[1]);
|
||||
if (!fstrm) {
|
||||
LOG(ERROR) << argv[0] << ": Open failed, file = " << argv[1];
|
||||
return 1;
|
||||
}
|
||||
source = argv[1];
|
||||
}
|
||||
std::istream &istrm = fstrm.is_open() ? fstrm : std::cin;
|
||||
|
||||
const SymbolTableTextOptions opts(FLAGS_allow_negative_labels);
|
||||
|
||||
std::unique_ptr<const SymbolTable> isyms;
|
||||
if (!FLAGS_isymbols.empty()) {
|
||||
isyms.reset(SymbolTable::ReadText(FLAGS_isymbols, opts));
|
||||
if (!isyms) return 1;
|
||||
}
|
||||
|
||||
std::unique_ptr<const SymbolTable> osyms;
|
||||
if (!FLAGS_osymbols.empty()) {
|
||||
osyms.reset(SymbolTable::ReadText(FLAGS_osymbols, opts));
|
||||
if (!osyms) return 1;
|
||||
}
|
||||
|
||||
std::unique_ptr<const SymbolTable> ssyms;
|
||||
if (!FLAGS_ssymbols.empty()) {
|
||||
ssyms.reset(SymbolTable::ReadText(FLAGS_ssymbols));
|
||||
if (!ssyms) return 1;
|
||||
}
|
||||
|
||||
const string dest = argc > 2 ? argv[2] : "";
|
||||
|
||||
s::CompileFst(istrm, source, dest, FLAGS_fst_type, FLAGS_arc_type,
|
||||
isyms.get(), osyms.get(), ssyms.get(), FLAGS_acceptor,
|
||||
FLAGS_keep_isymbols, FLAGS_keep_osymbols,
|
||||
FLAGS_keep_state_numbering, FLAGS_allow_negative_labels);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
|
||||
DEFINE_bool(acceptor, false, "Input in acceptor format");
|
||||
DEFINE_string(arc_type, "standard", "Output arc type");
|
||||
DEFINE_string(fst_type, "vector", "Output FST type");
|
||||
DEFINE_string(isymbols, "", "Input label symbol table");
|
||||
DEFINE_string(osymbols, "", "Output label symbol table");
|
||||
DEFINE_string(ssymbols, "", "State label symbol table");
|
||||
DEFINE_bool(keep_isymbols, false, "Store input label symbol table with FST");
|
||||
DEFINE_bool(keep_osymbols, false, "Store output label symbol table with FST");
|
||||
DEFINE_bool(keep_state_numbering, false, "Do not renumber input states");
|
||||
DEFINE_bool(allow_negative_labels, false,
|
||||
"Allow negative labels (not recommended; may cause conflicts)");
|
||||
|
||||
int fstcompile_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstcompile_main(argc, argv); }
|
||||
@@ -0,0 +1,72 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Composes two FSTs.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/log.h>
|
||||
#include <fst/script/compose.h>
|
||||
#include <fst/script/getters.h>
|
||||
|
||||
DECLARE_string(compose_filter);
|
||||
DECLARE_bool(connect);
|
||||
|
||||
int fstcompose_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::ComposeFilter;
|
||||
using fst::ComposeOptions;
|
||||
using fst::script::FstClass;
|
||||
using fst::script::VectorFstClass;
|
||||
|
||||
string usage = "Composes two FSTs.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " in1.fst in2.fst [out.fst]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc < 3 || argc > 4) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in1_name = strcmp(argv[1], "-") != 0 ? argv[1] : "";
|
||||
const string in2_name =
|
||||
(argc > 2 && (strcmp(argv[2], "-") != 0)) ? argv[2] : "";
|
||||
const string out_name = argc > 3 ? argv[3] : "";
|
||||
|
||||
if (in1_name.empty() && in2_name.empty()) {
|
||||
LOG(ERROR) << argv[0] << ": Can't take both inputs from standard input";
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::unique_ptr<FstClass> ifst1(FstClass::Read(in1_name));
|
||||
if (!ifst1) return 1;
|
||||
|
||||
std::unique_ptr<FstClass> ifst2(FstClass::Read(in2_name));
|
||||
if (!ifst2) return 1;
|
||||
|
||||
if (ifst1->ArcType() != ifst2->ArcType()) {
|
||||
LOG(ERROR) << argv[0] << ": Input FSTs must have the same arc type";
|
||||
return 1;
|
||||
}
|
||||
|
||||
VectorFstClass ofst(ifst1->ArcType());
|
||||
|
||||
ComposeFilter compose_filter;
|
||||
if (!s::GetComposeFilter(FLAGS_compose_filter, &compose_filter)) {
|
||||
LOG(ERROR) << argv[0] << ": Unknown or unsupported compose filter type: "
|
||||
<< FLAGS_compose_filter;
|
||||
return 1;
|
||||
}
|
||||
|
||||
const ComposeOptions opts(FLAGS_connect, compose_filter);
|
||||
|
||||
s::Compose(*ifst1, *ifst2, &ofst, opts);
|
||||
|
||||
return !ofst.Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
|
||||
DEFINE_string(compose_filter, "auto",
|
||||
"Composition filter, one of: \"alt_sequence\", \"auto\", "
|
||||
"\"match\", \"no_match\", \"null\", \"sequence\", \"trivial\"");
|
||||
DEFINE_bool(connect, true, "Trim output");
|
||||
|
||||
int fstcompose_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstcompose_main(argc, argv); }
|
||||
@@ -0,0 +1,49 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Concatenates two FSTs.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/log.h>
|
||||
#include <fst/script/concat.h>
|
||||
|
||||
int fstconcat_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::FstClass;
|
||||
using fst::script::MutableFstClass;
|
||||
|
||||
string usage = "Concatenates two FSTs.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " in1.fst in2.fst [out.fst]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc < 3 || argc > 4) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in1_name = strcmp(argv[1], "-") == 0 ? "" : argv[1];
|
||||
const string in2_name = strcmp(argv[2], "-") == 0 ? "" : argv[2];
|
||||
const string out_name = argc > 3 ? argv[3] : "";
|
||||
|
||||
if (in1_name.empty() && in2_name.empty()) {
|
||||
LOG(ERROR) << argv[0] << ": Can't take both inputs from standard input";
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::unique_ptr<MutableFstClass> fst1(MutableFstClass::Read(in1_name, true));
|
||||
if (!fst1) return 1;
|
||||
|
||||
std::unique_ptr<FstClass> fst2(FstClass::Read(in2_name));
|
||||
if (!fst2) return 1;
|
||||
|
||||
s::Concat(fst1.get(), *fst2);
|
||||
|
||||
return !fst1->Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
int fstconcat_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstconcat_main(argc, argv); }
|
||||
@@ -0,0 +1,40 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Removes useless (inaccessible or non-coaccessible) states and arcs from an
|
||||
// FST.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/script/connect.h>
|
||||
|
||||
int fstconnect_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::FstClass;
|
||||
using fst::script::MutableFstClass;
|
||||
|
||||
string usage = "Removes useless states and arcs from an FST.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [out.fst]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
|
||||
const string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<MutableFstClass> fst(MutableFstClass::Read(in_name, true));
|
||||
if (!fst) return 1;
|
||||
|
||||
s::Connect(fst.get());
|
||||
|
||||
return !fst->Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
int fstconnect_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstconnect_main(argc, argv); }
|
||||
@@ -0,0 +1,44 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Converts an FST to another type.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/script/convert.h>
|
||||
|
||||
DECLARE_string(fst_type);
|
||||
|
||||
int fstconvert_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::FstClass;
|
||||
|
||||
string usage = "Converts an FST to another type.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [out.fst]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
|
||||
const string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<FstClass> ifst(FstClass::Read(in_name));
|
||||
if (!ifst) return 1;
|
||||
|
||||
if (ifst->FstType() != FLAGS_fst_type) {
|
||||
std::unique_ptr<FstClass> ofst(s::Convert(*ifst, FLAGS_fst_type));
|
||||
if (!ofst) return 1;
|
||||
return !ofst->Write(out_name);
|
||||
} else {
|
||||
return !ifst->Write(out_name);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
|
||||
DEFINE_string(fst_type, "vector", "Output FST type");
|
||||
|
||||
int fstconvert_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstconvert_main(argc, argv); }
|
||||
@@ -0,0 +1,66 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Determinizes an FST.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/script/determinize.h>
|
||||
#include <fst/script/getters.h>
|
||||
|
||||
DECLARE_double(delta);
|
||||
DECLARE_string(weight);
|
||||
DECLARE_int64(nstate);
|
||||
DECLARE_int64(subsequential_label);
|
||||
DECLARE_string(det_type);
|
||||
DECLARE_bool(increment_subsequential_label);
|
||||
|
||||
int fstdeterminize_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::DeterminizeType;
|
||||
using fst::script::FstClass;
|
||||
using fst::script::VectorFstClass;
|
||||
using fst::script::WeightClass;
|
||||
|
||||
string usage = "Determinizes an FST.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [out.fst]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
DeterminizeType det_type;
|
||||
if (!s::GetDeterminizeType(FLAGS_det_type, &det_type)) {
|
||||
LOG(ERROR) << argv[0] << ": Unknown or unsupported determinization type: "
|
||||
<< FLAGS_det_type;
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
|
||||
const string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<FstClass> ifst(FstClass::Read(in_name));
|
||||
if (!ifst) return 1;
|
||||
|
||||
VectorFstClass ofst(ifst->ArcType());
|
||||
|
||||
const auto weight_threshold =
|
||||
FLAGS_weight.empty() ? WeightClass::Zero(ifst->WeightType())
|
||||
: WeightClass(ifst->WeightType(), FLAGS_weight);
|
||||
|
||||
const s::DeterminizeOptions opts(FLAGS_delta, weight_threshold, FLAGS_nstate,
|
||||
FLAGS_subsequential_label, det_type,
|
||||
FLAGS_increment_subsequential_label);
|
||||
|
||||
s::Determinize(*ifst, &ofst, opts);
|
||||
|
||||
return !ofst.Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/fst.h>
|
||||
#include <fst/weight.h>
|
||||
|
||||
DEFINE_double(delta, fst::kDelta, "Comparison/quantization delta");
|
||||
DEFINE_string(weight, "", "Weight threshold");
|
||||
DEFINE_int64(nstate, fst::kNoStateId, "State number threshold");
|
||||
DEFINE_int64(subsequential_label, 0,
|
||||
"Input label of arc corresponding to residual final output when"
|
||||
" producing a subsequential transducer");
|
||||
DEFINE_string(det_type, "functional",
|
||||
"Type of determinization: \"functional\", "
|
||||
"\"nonfunctional\", \"disambiguate\"");
|
||||
DEFINE_bool(increment_subsequential_label, false,
|
||||
"Increment subsequential_label to obtain distinct labels for "
|
||||
" subsequential arcs at a given state");
|
||||
|
||||
int fstdeterminize_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstdeterminize_main(argc, argv); }
|
||||
@@ -0,0 +1,66 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Subtracts an unweighted DFA from an FSA.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/log.h>
|
||||
#include <fst/script/difference.h>
|
||||
#include <fst/script/getters.h>
|
||||
|
||||
DECLARE_string(compose_filter);
|
||||
DECLARE_bool(connect);
|
||||
|
||||
int fstdifference_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::ComposeFilter;
|
||||
using fst::DifferenceOptions;
|
||||
using fst::script::FstClass;
|
||||
using fst::script::VectorFstClass;
|
||||
|
||||
string usage = "Subtracts an unweighted DFA from an FSA.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " in1.fst in2.fst [out.fst]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc < 3 || argc > 4) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in1_name = strcmp(argv[1], "-") == 0 ? "" : argv[1];
|
||||
const string in2_name = strcmp(argv[2], "-") == 0 ? "" : argv[2];
|
||||
const string out_name = argc > 3 ? argv[3] : "";
|
||||
|
||||
if (in1_name.empty() && in2_name.empty()) {
|
||||
LOG(ERROR) << argv[0] << ": Can't take both inputs from standard input";
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::unique_ptr<FstClass> ifst1(FstClass::Read(in1_name));
|
||||
if (!ifst1) return 1;
|
||||
|
||||
std::unique_ptr<FstClass> ifst2(FstClass::Read(in2_name));
|
||||
if (!ifst2) return 1;
|
||||
|
||||
VectorFstClass ofst(ifst1->ArcType());
|
||||
|
||||
ComposeFilter compose_filter;
|
||||
if (!s::GetComposeFilter(FLAGS_compose_filter, &compose_filter)) {
|
||||
LOG(ERROR) << argv[0] << ": Unknown or unsupported compose filter type: "
|
||||
<< FLAGS_compose_filter;
|
||||
return 1;
|
||||
}
|
||||
|
||||
const DifferenceOptions opts(FLAGS_connect, compose_filter);
|
||||
|
||||
s::Difference(*ifst1, *ifst2, &ofst, opts);
|
||||
|
||||
return !ofst.Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
|
||||
DEFINE_string(compose_filter, "auto",
|
||||
"Composition filter, one of: \"alt_sequence\", \"auto\", "
|
||||
"\"match\", \"null\", \"sequence\", \"trivial\"");
|
||||
DEFINE_bool(connect, true, "Trim output");
|
||||
|
||||
int fstdifference_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstdifference_main(argc, argv); }
|
||||
@@ -0,0 +1,54 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Disambiguates an FST.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/script/disambiguate.h>
|
||||
|
||||
DECLARE_double(delta);
|
||||
DECLARE_int64(nstate);
|
||||
DECLARE_string(weight);
|
||||
DECLARE_int64(subsequential_label);
|
||||
|
||||
int fstdisambiguate_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::FstClass;
|
||||
using fst::script::VectorFstClass;
|
||||
using fst::script::WeightClass;
|
||||
|
||||
string usage = "Disambiguates an FST.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [out.fst]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
|
||||
const string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<FstClass> ifst(FstClass::Read(in_name));
|
||||
if (!ifst) return 1;
|
||||
|
||||
VectorFstClass ofst(ifst->ArcType());
|
||||
|
||||
const auto weight_threshold =
|
||||
FLAGS_weight.empty() ? WeightClass::Zero(ifst->WeightType())
|
||||
: WeightClass(ifst->WeightType(), FLAGS_weight);
|
||||
|
||||
const s::DisambiguateOptions opts(FLAGS_delta, weight_threshold, FLAGS_nstate,
|
||||
FLAGS_subsequential_label);
|
||||
|
||||
s::Disambiguate(*ifst, &ofst, opts);
|
||||
|
||||
return !ofst.Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/fst.h>
|
||||
#include <fst/weight.h>
|
||||
|
||||
DEFINE_double(delta, fst::kDelta, "Comparison/quantization delta");
|
||||
DEFINE_int64(nstate, fst::kNoStateId, "State number threshold");
|
||||
DEFINE_string(weight, "", "Weight threshold");
|
||||
DEFINE_int64(subsequential_label, 0,
|
||||
"Input label of arc corresponding to residual final output when"
|
||||
" producing a subsequential transducer");
|
||||
|
||||
int fstdisambiguate_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstdisambiguate_main(argc, argv); }
|
||||
@@ -0,0 +1,104 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Draws a binary FSTs in the Graphviz dot text format.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <fstream>
|
||||
#include <memory>
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/log.h>
|
||||
#include <fst/script/draw.h>
|
||||
|
||||
DECLARE_bool(acceptor);
|
||||
DECLARE_string(isymbols);
|
||||
DECLARE_string(osymbols);
|
||||
DECLARE_string(ssymbols);
|
||||
DECLARE_bool(numeric);
|
||||
DECLARE_int32(precision);
|
||||
DECLARE_string(float_format);
|
||||
DECLARE_bool(show_weight_one);
|
||||
DECLARE_string(title);
|
||||
DECLARE_bool(portrait);
|
||||
DECLARE_bool(vertical);
|
||||
DECLARE_int32(fontsize);
|
||||
DECLARE_double(height);
|
||||
DECLARE_double(width);
|
||||
DECLARE_double(nodesep);
|
||||
DECLARE_double(ranksep);
|
||||
DECLARE_bool(allow_negative_labels);
|
||||
|
||||
int fstdraw_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::FstClass;
|
||||
using fst::SymbolTable;
|
||||
using fst::SymbolTableTextOptions;
|
||||
|
||||
string usage = "Prints out binary FSTs in dot text format.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [binary.fst [text.dot]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
|
||||
|
||||
std::unique_ptr<FstClass> fst(FstClass::Read(in_name));
|
||||
if (!fst) return 1;
|
||||
|
||||
string dest = "stdout";
|
||||
std::ofstream fstrm;
|
||||
if (argc == 3) {
|
||||
fstrm.open(argv[2]);
|
||||
if (!fstrm) {
|
||||
LOG(ERROR) << argv[0] << ": Open failed, file = " << argv[2];
|
||||
return 1;
|
||||
}
|
||||
dest = argv[2];
|
||||
}
|
||||
std::ostream &ostrm = fstrm.is_open() ? fstrm : std::cout;
|
||||
|
||||
const SymbolTableTextOptions opts(FLAGS_allow_negative_labels);
|
||||
|
||||
std::unique_ptr<const SymbolTable> isyms;
|
||||
if (!FLAGS_isymbols.empty() && !FLAGS_numeric) {
|
||||
isyms.reset(SymbolTable::ReadText(FLAGS_isymbols, opts));
|
||||
if (!isyms) return 1;
|
||||
}
|
||||
|
||||
std::unique_ptr<const SymbolTable> osyms;
|
||||
if (!FLAGS_osymbols.empty() && !FLAGS_numeric) {
|
||||
osyms.reset(SymbolTable::ReadText(FLAGS_osymbols, opts));
|
||||
if (!osyms) return 1;
|
||||
}
|
||||
|
||||
std::unique_ptr<const SymbolTable> ssyms;
|
||||
if (!FLAGS_ssymbols.empty() && !FLAGS_numeric) {
|
||||
ssyms.reset(SymbolTable::ReadText(FLAGS_ssymbols));
|
||||
if (!ssyms) return 1;
|
||||
}
|
||||
|
||||
if (!isyms && !FLAGS_numeric && fst->InputSymbols()) {
|
||||
isyms.reset(fst->InputSymbols()->Copy());
|
||||
}
|
||||
|
||||
if (!osyms && !FLAGS_numeric && fst->OutputSymbols()) {
|
||||
osyms.reset(fst->OutputSymbols()->Copy());
|
||||
}
|
||||
|
||||
s::DrawFst(*fst, isyms.get(), osyms.get(), ssyms.get(), FLAGS_acceptor,
|
||||
FLAGS_title, FLAGS_width, FLAGS_height, FLAGS_portrait,
|
||||
FLAGS_vertical, FLAGS_ranksep, FLAGS_nodesep, FLAGS_fontsize,
|
||||
FLAGS_precision, FLAGS_float_format, FLAGS_show_weight_one,
|
||||
&ostrm, dest);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
|
||||
DEFINE_bool(acceptor, false, "Input in acceptor format");
|
||||
DEFINE_string(isymbols, "", "Input label symbol table");
|
||||
DEFINE_string(osymbols, "", "Output label symbol table");
|
||||
DEFINE_string(ssymbols, "", "State label symbol table");
|
||||
DEFINE_bool(numeric, false, "Print numeric labels");
|
||||
DEFINE_int32(precision, 5, "Set precision (number of char/float)");
|
||||
DEFINE_string(float_format, "g",
|
||||
"Floating-point format, one of: \"e\", \"f\", or \"g\"");
|
||||
DEFINE_bool(show_weight_one, false,
|
||||
"Print/draw arc weights and final weights equal to Weight::One()");
|
||||
DEFINE_string(title, "", "Set figure title");
|
||||
DEFINE_bool(portrait, false, "Portrait mode (def: landscape)");
|
||||
DEFINE_bool(vertical, false, "Draw bottom-to-top instead of left-to-right");
|
||||
DEFINE_int32(fontsize, 14, "Set fontsize");
|
||||
DEFINE_double(height, 11, "Set height");
|
||||
DEFINE_double(width, 8.5, "Set width");
|
||||
DEFINE_double(nodesep, 0.25,
|
||||
"Set minimum separation between nodes (see dot documentation)");
|
||||
DEFINE_double(ranksep, 0.40,
|
||||
"Set minimum separation between ranks (see dot documentation)");
|
||||
DEFINE_bool(allow_negative_labels, false,
|
||||
"Allow negative labels (not recommended; may cause conflicts)");
|
||||
|
||||
int fstdraw_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstdraw_main(argc, argv); }
|
||||
@@ -0,0 +1,53 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Encode transducer labels and/or weights.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/script/decode.h>
|
||||
#include <fst/script/encode.h>
|
||||
#include <fst/script/getters.h>
|
||||
|
||||
DECLARE_bool(encode_labels);
|
||||
DECLARE_bool(encode_weights);
|
||||
DECLARE_bool(encode_reuse);
|
||||
DECLARE_bool(decode);
|
||||
|
||||
int fstencode_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::FstClass;
|
||||
using fst::script::MutableFstClass;
|
||||
|
||||
string usage = "Encodes transducer labels and/or weights.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " in.fst codex [out.fst]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc < 3 || argc > 4) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name = (strcmp(argv[1], "-") != 0) ? argv[1] : "";
|
||||
const string codex_name = argv[2];
|
||||
const string out_name = argc > 3 ? argv[3] : "";
|
||||
|
||||
std::unique_ptr<MutableFstClass> fst(MutableFstClass::Read(in_name, true));
|
||||
if (!fst) return 1;
|
||||
|
||||
if (FLAGS_decode) {
|
||||
s::Decode(fst.get(), codex_name);
|
||||
return !fst->Write(out_name);
|
||||
} else {
|
||||
const auto flags =
|
||||
s::GetEncodeFlags(FLAGS_encode_labels, FLAGS_encode_weights);
|
||||
s::Encode(fst.get(), flags, FLAGS_encode_reuse, codex_name);
|
||||
return !fst->Write(out_name);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
|
||||
DEFINE_bool(encode_labels, false, "Encode output labels");
|
||||
DEFINE_bool(encode_weights, false, "Encode weights");
|
||||
DEFINE_bool(encode_reuse, false, "Re-use existing codex");
|
||||
DEFINE_bool(decode, false, "Decode labels and/or weights");
|
||||
|
||||
int fstencode_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstencode_main(argc, argv); }
|
||||
@@ -0,0 +1,44 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Epsilon-normalizes an FST.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/script/epsnormalize.h>
|
||||
#include <fst/script/getters.h>
|
||||
|
||||
DECLARE_bool(eps_norm_output);
|
||||
|
||||
int fstepsnormalize_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::FstClass;
|
||||
using fst::script::VectorFstClass;
|
||||
|
||||
string usage = "Epsilon normalizes an FST.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [out.fst]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
|
||||
const string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<FstClass> ifst(FstClass::Read(in_name));
|
||||
if (!ifst) return 1;
|
||||
|
||||
VectorFstClass ofst(ifst->ArcType());
|
||||
|
||||
s::EpsNormalize(*ifst, &ofst, s::GetEpsNormalizeType(FLAGS_eps_norm_output));
|
||||
|
||||
return !ofst.Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
|
||||
DEFINE_bool(eps_norm_output, false, "Normalize output epsilons");
|
||||
|
||||
int fstepsnormalize_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstepsnormalize_main(argc, argv); }
|
||||
@@ -0,0 +1,50 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Two FSTS are equal iff their exit status is zero.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/log.h>
|
||||
#include <fst/script/equal.h>
|
||||
|
||||
DECLARE_double(delta);
|
||||
|
||||
int fstequal_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::FstClass;
|
||||
|
||||
string usage = "Two FSTs are equal iff the exit status is zero.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " in1.fst in2.fst\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc != 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in1_name = strcmp(argv[1], "-") == 0 ? "" : argv[1];
|
||||
const string in2_name = strcmp(argv[2], "-") == 0 ? "" : argv[2];
|
||||
|
||||
if (in1_name.empty() && in2_name.empty()) {
|
||||
LOG(ERROR) << argv[0] << ": Can't take both inputs from standard input";
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::unique_ptr<FstClass> ifst1(FstClass::Read(in1_name));
|
||||
if (!ifst1) return 1;
|
||||
|
||||
std::unique_ptr<FstClass> ifst2(FstClass::Read(in2_name));
|
||||
if (!ifst2) return 1;
|
||||
|
||||
bool result = s::Equal(*ifst1, *ifst2, FLAGS_delta);
|
||||
if (!result) VLOG(1) << "FSTs are not equal.";
|
||||
|
||||
return result ? 0 : 2;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/weight.h>
|
||||
|
||||
DEFINE_double(delta, fst::kDelta, "Comparison/quantization delta");
|
||||
|
||||
int fstequal_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstequal_main(argc, argv); }
|
||||
@@ -0,0 +1,73 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Two DFAs are equivalent iff their exit status is zero.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/log.h>
|
||||
#include <fst/script/equivalent.h>
|
||||
#include <fst/script/getters.h>
|
||||
#include <fst/script/randequivalent.h>
|
||||
|
||||
DECLARE_double(delta);
|
||||
DECLARE_bool(random);
|
||||
DECLARE_int32(max_length);
|
||||
DECLARE_int32(npath);
|
||||
DECLARE_int32(seed);
|
||||
DECLARE_string(select);
|
||||
|
||||
int fstequivalent_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::RandGenOptions;
|
||||
using fst::script::FstClass;
|
||||
|
||||
string usage =
|
||||
"Two DFAs are equivalent iff the exit status is zero.\n\n"
|
||||
" Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " in1.fst in2.fst\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc != 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in1_name = strcmp(argv[1], "-") == 0 ? "" : argv[1];
|
||||
const string in2_name = strcmp(argv[2], "-") == 0 ? "" : argv[2];
|
||||
|
||||
if (in1_name.empty() && in2_name.empty()) {
|
||||
LOG(ERROR) << argv[0] << ": Can't take both inputs from standard input";
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::unique_ptr<FstClass> ifst1(FstClass::Read(in1_name));
|
||||
if (!ifst1) return 1;
|
||||
|
||||
std::unique_ptr<FstClass> ifst2(FstClass::Read(in2_name));
|
||||
if (!ifst2) return 1;
|
||||
|
||||
if (!FLAGS_random) {
|
||||
bool result = s::Equivalent(*ifst1, *ifst2, FLAGS_delta);
|
||||
if (!result) VLOG(1) << "FSTs are not equivalent";
|
||||
return result ? 0 : 2;
|
||||
} else {
|
||||
s::RandArcSelection ras;
|
||||
if (!s::GetRandArcSelection(FLAGS_select, &ras)) {
|
||||
LOG(ERROR) << argv[0] << ": Unknown or unsupported select type "
|
||||
<< FLAGS_select;
|
||||
return 1;
|
||||
}
|
||||
const RandGenOptions<s::RandArcSelection> opts(ras, FLAGS_max_length);
|
||||
bool result = s::RandEquivalent(*ifst1, *ifst2, FLAGS_npath, FLAGS_delta,
|
||||
FLAGS_seed, opts);
|
||||
if (!result) VLOG(1) << "FSTs are not equivalent";
|
||||
return result ? 0 : 2;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
#ifndef _MSC_VER
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#include <process.h>
|
||||
#define getpid _getpid
|
||||
#endif
|
||||
|
||||
#include <climits>
|
||||
#include <ctime>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/weight.h>
|
||||
|
||||
DEFINE_double(delta, fst::kDelta, "Comparison/quantization delta");
|
||||
DEFINE_bool(random, false,
|
||||
"Test equivalence by randomly selecting paths in the input FSTs");
|
||||
DEFINE_int32(max_length, INT32_MAX, "Maximum path length");
|
||||
DEFINE_int32(npath, 1, "Number of paths to generate");
|
||||
DEFINE_int32(seed, time(nullptr) + getpid(), "Random seed");
|
||||
DEFINE_string(select, "uniform",
|
||||
"Selection type: one of: "
|
||||
" \"uniform\", \"log_prob\" (when appropriate),"
|
||||
" \"fast_log_prob\" (when appropriate)");
|
||||
|
||||
int fstequivalent_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstequivalent_main(argc, argv); }
|
||||
@@ -0,0 +1,46 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Prints out various information about an FST such as number of states
|
||||
// and arcs and property values (see properties.h).
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/script/info.h>
|
||||
|
||||
DECLARE_string(arc_filter);
|
||||
DECLARE_string(info_type);
|
||||
DECLARE_bool(pipe);
|
||||
DECLARE_bool(test_properties);
|
||||
DECLARE_bool(fst_verify);
|
||||
|
||||
int fstinfo_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::FstClass;
|
||||
|
||||
string usage = "Prints out information about an FST.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 2) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name =
|
||||
(argc > 1 && (strcmp(argv[1], "-") != 0)) ? argv[1] : "";
|
||||
|
||||
std::unique_ptr<FstClass> ifst(FstClass::Read(in_name));
|
||||
if (!ifst) return 1;
|
||||
|
||||
s::PrintFstInfo(*ifst, FLAGS_test_properties, FLAGS_arc_filter,
|
||||
FLAGS_info_type, FLAGS_fst_verify, FLAGS_pipe);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
|
||||
DEFINE_string(arc_filter, "any",
|
||||
"Arc filter: one of:"
|
||||
" \"any\", \"epsilon\", \"iepsilon\", \"oepsilon\"; "
|
||||
"this only affects the counts of (co)accessible states, "
|
||||
"connected states, and (strongly) connected components");
|
||||
DEFINE_string(info_type, "auto",
|
||||
"Info format: one of: \"auto\", \"long\", \"short\"");
|
||||
DEFINE_bool(pipe, false, "Send info to stderr, input to stdout");
|
||||
DEFINE_bool(test_properties, true,
|
||||
"Compute property values (if unknown to FST)");
|
||||
DEFINE_bool(fst_verify, true, "Verify FST sanity");
|
||||
|
||||
int fstinfo_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstinfo_main(argc, argv); }
|
||||
@@ -0,0 +1,65 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Intersects two FSTs.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/log.h>
|
||||
#include <fst/script/getters.h>
|
||||
#include <fst/script/intersect.h>
|
||||
|
||||
DECLARE_string(compose_filter);
|
||||
DECLARE_bool(connect);
|
||||
|
||||
int fstintersect_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::ComposeFilter;
|
||||
using fst::script::FstClass;
|
||||
using fst::script::VectorFstClass;
|
||||
|
||||
string usage = "Intersects two FSAs.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " in1.fst in2.fst [out.fst]\n";
|
||||
usage += " Flags: connect\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc < 3 || argc > 4) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in1_name = strcmp(argv[1], "-") == 0 ? "" : argv[1];
|
||||
const string in2_name = strcmp(argv[2], "-") == 0 ? "" : argv[2];
|
||||
const string out_name = argc > 3 ? argv[3] : "";
|
||||
|
||||
if (in1_name.empty() && in2_name.empty()) {
|
||||
LOG(ERROR) << argv[0] << ": Can't take both inputs from standard input";
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::unique_ptr<FstClass> ifst1(FstClass::Read(in1_name));
|
||||
if (!ifst1) return 1;
|
||||
std::unique_ptr<FstClass> ifst2(FstClass::Read(in2_name));
|
||||
if (!ifst2) return 1;
|
||||
|
||||
VectorFstClass ofst(ifst1->ArcType());
|
||||
|
||||
ComposeFilter compose_filter;
|
||||
if (!s::GetComposeFilter(FLAGS_compose_filter, &compose_filter)) {
|
||||
LOG(ERROR) << argv[0] << ": Unknown or unsupported compose filter type: "
|
||||
<< FLAGS_compose_filter;
|
||||
return 1;
|
||||
}
|
||||
|
||||
const fst::IntersectOptions opts(FLAGS_connect, compose_filter);
|
||||
|
||||
s::Intersect(*ifst1, *ifst2, &ofst, opts);
|
||||
|
||||
return !ofst.Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
|
||||
DEFINE_string(compose_filter, "auto",
|
||||
"Composition filter, one of: \"alt_sequence\", \"auto\", "
|
||||
"\"match\", \"null\", \"sequence\", \"trivial\"");
|
||||
DEFINE_bool(connect, true, "Trim output");
|
||||
|
||||
int fstintersect_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstintersect_main(argc, argv); }
|
||||
@@ -0,0 +1,38 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Inverts a transduction.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/script/invert.h>
|
||||
|
||||
int fstinvert_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::MutableFstClass;
|
||||
|
||||
string usage = "Inverts a transduction.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [out.fst]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
|
||||
const string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<MutableFstClass> fst(MutableFstClass::Read(in_name, true));
|
||||
if (!fst) return 1;
|
||||
|
||||
s::Invert(fst.get());
|
||||
|
||||
return !fst->Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
int fstinvert_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstinvert_main(argc, argv); }
|
||||
@@ -0,0 +1,53 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Two FSTS are isomorphic (equal up to state and arc re-ordering) iff their
|
||||
// exit status is zero. FSTs should be deterministic when viewed as unweighted
|
||||
// automata.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/log.h>
|
||||
#include <fst/script/isomorphic.h>
|
||||
|
||||
DECLARE_double(delta);
|
||||
|
||||
int fstisomorphic_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::FstClass;
|
||||
|
||||
string usage =
|
||||
"Two FSTs are isomorphic iff the exit status is zero.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " in1.fst in2.fst\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc != 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in1_name = strcmp(argv[1], "-") == 0 ? "" : argv[1];
|
||||
const string in2_name = strcmp(argv[2], "-") == 0 ? "" : argv[2];
|
||||
|
||||
if (in1_name.empty() && in2_name.empty()) {
|
||||
LOG(ERROR) << argv[0] << ": Can't take both inputs from standard input";
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::unique_ptr<FstClass> ifst1(FstClass::Read(in1_name));
|
||||
if (!ifst1) return 1;
|
||||
|
||||
std::unique_ptr<FstClass> ifst2(FstClass::Read(in2_name));
|
||||
if (!ifst2) return 1;
|
||||
|
||||
bool result = s::Isomorphic(*ifst1, *ifst2, FLAGS_delta);
|
||||
if (!result) VLOG(1) << "FSTs are not isomorphic";
|
||||
|
||||
return result ? 0 : 2;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/weight.h>
|
||||
|
||||
DEFINE_double(delta, fst::kDelta, "Comparison/quantization delta");
|
||||
|
||||
int fstisomorphic_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstisomorphic_main(argc, argv); }
|
||||
@@ -0,0 +1,60 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Applies an operation to each arc of an FST.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/log.h>
|
||||
#include <fst/script/getters.h>
|
||||
#include <fst/script/map.h>
|
||||
|
||||
DECLARE_double(delta);
|
||||
DECLARE_string(map_type);
|
||||
DECLARE_double(power);
|
||||
DECLARE_string(weight);
|
||||
|
||||
int fstmap_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::FstClass;
|
||||
using fst::script::WeightClass;
|
||||
|
||||
string usage = "Applies an operation to each arc of an FST.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [out.fst]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
|
||||
const string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<FstClass> ifst(FstClass::Read(in_name));
|
||||
if (!ifst) return 1;
|
||||
|
||||
s::MapType map_type;
|
||||
if (!s::GetMapType(FLAGS_map_type, &map_type)) {
|
||||
LOG(ERROR) << argv[0] << ": Unknown or unsupported map type "
|
||||
<< FLAGS_map_type;
|
||||
return 1;
|
||||
}
|
||||
|
||||
const auto weight_param =
|
||||
!FLAGS_weight.empty()
|
||||
? WeightClass(ifst->WeightType(), FLAGS_weight)
|
||||
: (FLAGS_map_type == "times" ? WeightClass::One(ifst->WeightType())
|
||||
: WeightClass::Zero(ifst->WeightType()));
|
||||
|
||||
std::unique_ptr<FstClass> ofst(
|
||||
s::Map(*ifst, map_type, FLAGS_delta, FLAGS_power, weight_param));
|
||||
|
||||
return !ofst->Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/weight.h>
|
||||
|
||||
DEFINE_double(delta, fst::kDelta, "Comparison/quantization delta");
|
||||
DEFINE_string(map_type, "identity",
|
||||
"Map operation, one of: \"arc_sum\", \"arc_unique\", "
|
||||
"\"float_power\" (--power)\", \"identity\", \"input_epsilon\", "
|
||||
"\"invert\", \"output_epsilon\", \"plus (--weight)\", "
|
||||
"\"quantize (--delta)\", \"rmweight\", \"superfinal\", "
|
||||
"\"power (--power)\", \"times (--weight)\", \"to_log\", "
|
||||
"\"to_log64\", \"to_std\"");
|
||||
DEFINE_double(power, 1.0, "Power parameter");
|
||||
DEFINE_string(weight, "", "Weight parameter");
|
||||
|
||||
int fstmap_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstmap_main(argc, argv); }
|
||||
@@ -0,0 +1,57 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Minimizes a deterministic FST.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/log.h>
|
||||
#include <fst/script/minimize.h>
|
||||
|
||||
DECLARE_double(delta);
|
||||
DECLARE_bool(allow_nondet);
|
||||
|
||||
int fstminimize_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::MutableFstClass;
|
||||
using fst::script::VectorFstClass;
|
||||
|
||||
string usage = "Minimizes a deterministic FST.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [out1.fst [out2.fst]]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 4) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
|
||||
const string out1_name =
|
||||
(argc > 2 && strcmp(argv[2], "-") != 0) ? argv[2] : "";
|
||||
const string out2_name =
|
||||
(argc > 3 && strcmp(argv[3], "-") != 0) ? argv[3] : "";
|
||||
|
||||
if (out1_name.empty() && out2_name.empty() && argc > 3) {
|
||||
LOG(ERROR) << argv[0] << ": Both outputs can't be standard output.";
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::unique_ptr<MutableFstClass> fst1(MutableFstClass::Read(in_name, true));
|
||||
if (!fst1) return 1;
|
||||
|
||||
if (argc > 3) {
|
||||
std::unique_ptr<MutableFstClass> fst2(new VectorFstClass(fst1->ArcType()));
|
||||
s::Minimize(fst1.get(), fst2.get(), FLAGS_delta, FLAGS_allow_nondet);
|
||||
if (!fst2->Write(out2_name)) return 1;
|
||||
} else {
|
||||
s::Minimize(fst1.get(), nullptr, FLAGS_delta, FLAGS_allow_nondet);
|
||||
}
|
||||
|
||||
return !fst1->Write(out1_name);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/shortest-distance.h>
|
||||
#include <fst/weight.h>
|
||||
|
||||
DEFINE_double(delta, fst::kShortestDelta, "Comparison/quantization delta");
|
||||
DEFINE_bool(allow_nondet, false, "Minimize non-deterministic FSTs");
|
||||
|
||||
int fstminimize_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstminimize_main(argc, argv); }
|
||||
@@ -0,0 +1,104 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Prints out binary FSTs in simple text format used by AT&T.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <fstream>
|
||||
#include <memory>
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/log.h>
|
||||
#include <fst/script/print.h>
|
||||
|
||||
DECLARE_bool(acceptor);
|
||||
DECLARE_string(isymbols);
|
||||
DECLARE_string(osymbols);
|
||||
DECLARE_string(ssymbols);
|
||||
DECLARE_bool(numeric);
|
||||
DECLARE_string(save_isymbols);
|
||||
DECLARE_string(save_osymbols);
|
||||
DECLARE_bool(show_weight_one);
|
||||
DECLARE_bool(allow_negative_labels);
|
||||
DECLARE_string(missing_symbol);
|
||||
|
||||
int fstprint_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::FstClass;
|
||||
using fst::SymbolTable;
|
||||
using fst::SymbolTableTextOptions;
|
||||
|
||||
string usage = "Prints out binary FSTs in simple text format.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [binary.fst [text.fst]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
|
||||
const string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<FstClass> fst(FstClass::Read(in_name));
|
||||
if (!fst) return 1;
|
||||
|
||||
string dest = "standard output";
|
||||
std::ofstream fstrm;
|
||||
if (argc == 3) {
|
||||
fstrm.open(argv[2]);
|
||||
if (!fstrm) {
|
||||
LOG(ERROR) << argv[0] << ": Open failed, file = " << argv[2];
|
||||
return 1;
|
||||
}
|
||||
dest = argv[2];
|
||||
}
|
||||
std::ostream &ostrm = fstrm.is_open() ? fstrm : std::cout;
|
||||
ostrm.precision(9);
|
||||
|
||||
const SymbolTableTextOptions opts(FLAGS_allow_negative_labels);
|
||||
|
||||
std::unique_ptr<const SymbolTable> isyms;
|
||||
if (!FLAGS_isymbols.empty() && !FLAGS_numeric) {
|
||||
isyms.reset(SymbolTable::ReadText(FLAGS_isymbols, opts));
|
||||
if (!isyms) return 1;
|
||||
}
|
||||
|
||||
std::unique_ptr<const SymbolTable> osyms;
|
||||
if (!FLAGS_osymbols.empty() && !FLAGS_numeric) {
|
||||
osyms.reset(SymbolTable::ReadText(FLAGS_osymbols, opts));
|
||||
if (!osyms) return 1;
|
||||
}
|
||||
|
||||
std::unique_ptr<const SymbolTable> ssyms;
|
||||
if (!FLAGS_ssymbols.empty() && !FLAGS_numeric) {
|
||||
ssyms.reset(SymbolTable::ReadText(FLAGS_ssymbols));
|
||||
if (!ssyms) return 1;
|
||||
}
|
||||
|
||||
if (!isyms && !FLAGS_numeric && fst->InputSymbols()) {
|
||||
isyms.reset(fst->InputSymbols()->Copy());
|
||||
}
|
||||
|
||||
if (!osyms && !FLAGS_numeric && fst->OutputSymbols()) {
|
||||
osyms.reset(fst->OutputSymbols()->Copy());
|
||||
}
|
||||
|
||||
s::PrintFst(*fst, ostrm, dest, isyms.get(), osyms.get(), ssyms.get(),
|
||||
FLAGS_acceptor, FLAGS_show_weight_one, FLAGS_missing_symbol);
|
||||
|
||||
if (isyms && !FLAGS_save_isymbols.empty()) {
|
||||
if (!isyms->WriteText(FLAGS_save_isymbols)) return 1;
|
||||
}
|
||||
|
||||
if (osyms && !FLAGS_save_osymbols.empty()) {
|
||||
if (!osyms->WriteText(FLAGS_save_osymbols)) return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
|
||||
DEFINE_bool(acceptor, false, "Input in acceptor format?");
|
||||
DEFINE_string(isymbols, "", "Input label symbol table");
|
||||
DEFINE_string(osymbols, "", "Output label symbol table");
|
||||
DEFINE_string(ssymbols, "", "State label symbol table");
|
||||
DEFINE_bool(numeric, false, "Print numeric labels?");
|
||||
DEFINE_string(save_isymbols, "", "Save input symbol table to file");
|
||||
DEFINE_string(save_osymbols, "", "Save output symbol table to file");
|
||||
DEFINE_bool(show_weight_one, false,
|
||||
"Print/draw arc weights and final weights equal to semiring One?");
|
||||
DEFINE_bool(allow_negative_labels, false,
|
||||
"Allow negative labels (not recommended; may cause conflicts)?");
|
||||
DEFINE_string(missing_symbol, "",
|
||||
"Symbol to print when lookup fails (default raises error)");
|
||||
|
||||
int fstprint_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstprint_main(argc, argv); }
|
||||
@@ -0,0 +1,43 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Projects a transduction onto its input or output language.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/script/getters.h>
|
||||
#include <fst/script/project.h>
|
||||
|
||||
DECLARE_bool(project_output);
|
||||
|
||||
int fstproject_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::MutableFstClass;
|
||||
|
||||
string usage =
|
||||
"Projects a transduction onto its input"
|
||||
" or output language.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [out.fst]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
|
||||
const string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<MutableFstClass> fst(MutableFstClass::Read(in_name, true));
|
||||
if (!fst) return 1;
|
||||
|
||||
s::Project(fst.get(), s::GetProjectType(FLAGS_project_output));
|
||||
|
||||
return !fst->Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
|
||||
DEFINE_bool(project_output, false, "Project on output (vs. input)");
|
||||
|
||||
int fstproject_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstproject_main(argc, argv); }
|
||||
@@ -0,0 +1,47 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Prunes states and arcs of an FST w.r.t. the shortest path weight.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/script/prune.h>
|
||||
|
||||
DECLARE_double(delta);
|
||||
DECLARE_int64(nstate);
|
||||
DECLARE_string(weight);
|
||||
|
||||
int fstprune_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::MutableFstClass;
|
||||
using fst::script::WeightClass;
|
||||
|
||||
string usage = "Prunes states and arcs of an FST.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [out.fst]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
|
||||
const string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<MutableFstClass> fst(MutableFstClass::Read(in_name, true));
|
||||
if (!fst) return 1;
|
||||
|
||||
const auto weight_threshold =
|
||||
FLAGS_weight.empty() ? WeightClass::Zero(fst->WeightType())
|
||||
: WeightClass(fst->WeightType(), FLAGS_weight);
|
||||
|
||||
s::Prune(fst.get(), weight_threshold, FLAGS_nstate, FLAGS_delta);
|
||||
|
||||
return !fst->Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/fst.h>
|
||||
#include <fst/weight.h>
|
||||
|
||||
DEFINE_double(delta, fst::kDelta, "Comparison/quantization delta");
|
||||
DEFINE_int64(nstate, fst::kNoStateId, "State number threshold");
|
||||
DEFINE_string(weight, "", "Weight threshold");
|
||||
|
||||
int fstprune_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstprune_main(argc, argv); }
|
||||
@@ -0,0 +1,55 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Pushes weights and/or output labels in an FST toward the initial or final
|
||||
// states.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/script/getters.h>
|
||||
#include <fst/script/push.h>
|
||||
|
||||
DECLARE_double(delta);
|
||||
DECLARE_bool(push_weights);
|
||||
DECLARE_bool(push_labels);
|
||||
DECLARE_bool(remove_total_weight);
|
||||
DECLARE_bool(remove_common_affix);
|
||||
DECLARE_bool(to_final);
|
||||
|
||||
int fstpush_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::FstClass;
|
||||
using fst::script::VectorFstClass;
|
||||
|
||||
string usage = "Pushes weights and/or olabels in an FST.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [out.fst]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
|
||||
string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<FstClass> ifst(FstClass::Read(in_name));
|
||||
if (!ifst) return 1;
|
||||
|
||||
const auto flags =
|
||||
s::GetPushFlags(FLAGS_push_weights, FLAGS_push_labels,
|
||||
FLAGS_remove_total_weight, FLAGS_remove_common_affix);
|
||||
|
||||
VectorFstClass ofst(ifst->ArcType());
|
||||
|
||||
s::Push(*ifst, &ofst, flags, s::GetReweightType(FLAGS_to_final),
|
||||
FLAGS_delta);
|
||||
|
||||
return !ofst.Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/weight.h>
|
||||
|
||||
DEFINE_double(delta, fst::kDelta, "Comparison/quantization delta");
|
||||
DEFINE_bool(push_weights, false, "Push weights");
|
||||
DEFINE_bool(push_labels, false, "Push output labels");
|
||||
DEFINE_bool(remove_total_weight, false,
|
||||
"Remove total weight when pushing weights");
|
||||
DEFINE_bool(remove_common_affix, false,
|
||||
"Remove common prefix/suffix when pushing labels");
|
||||
DEFINE_bool(to_final, false, "Push/reweight to final (vs. to initial) states");
|
||||
|
||||
int fstpush_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstpush_main(argc, argv); }
|
||||
@@ -0,0 +1,62 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Generates random paths through an FST.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/log.h>
|
||||
#include <fst/script/getters.h>
|
||||
#include <fst/script/randgen.h>
|
||||
|
||||
DECLARE_int32(max_length);
|
||||
DECLARE_int32(npath);
|
||||
DECLARE_int32(seed);
|
||||
DECLARE_string(select);
|
||||
DECLARE_bool(weighted);
|
||||
DECLARE_bool(remove_total_weight);
|
||||
|
||||
int fstrandgen_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::FstClass;
|
||||
using fst::script::VectorFstClass;
|
||||
|
||||
string usage = "Generates random paths through an FST.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [out.fst]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
VLOG(1) << argv[0] << ": Seed = " << FLAGS_seed;
|
||||
|
||||
const string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
|
||||
const string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<FstClass> ifst(FstClass::Read(in_name));
|
||||
if (!ifst) return 1;
|
||||
|
||||
VectorFstClass ofst(ifst->ArcType());
|
||||
|
||||
s::RandArcSelection ras;
|
||||
if (!s::GetRandArcSelection(FLAGS_select, &ras)) {
|
||||
LOG(ERROR) << argv[0] << ": Unknown or unsupported select type "
|
||||
<< FLAGS_select;
|
||||
return 1;
|
||||
}
|
||||
|
||||
s::RandGen(*ifst, &ofst, FLAGS_seed,
|
||||
fst::RandGenOptions<s::RandArcSelection>(
|
||||
ras, FLAGS_max_length, FLAGS_npath, FLAGS_weighted,
|
||||
FLAGS_remove_total_weight));
|
||||
|
||||
return !ofst.Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
#ifndef _MSC_VER
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#include <process.h>
|
||||
#define getpid _getpid
|
||||
#endif
|
||||
|
||||
#include <climits>
|
||||
#include <ctime>
|
||||
|
||||
#include <fst/flags.h>
|
||||
|
||||
DEFINE_int32(max_length, INT32_MAX, "Maximum path length");
|
||||
DEFINE_int32(npath, 1, "Number of paths to generate");
|
||||
DEFINE_int32(seed, time(nullptr) + getpid(), "Random seed");
|
||||
DEFINE_string(select, "uniform",
|
||||
"Selection type: one of: "
|
||||
" \"uniform\", \"log_prob\" (when appropriate),"
|
||||
" \"fast_log_prob\" (when appropriate)");
|
||||
DEFINE_bool(weighted, false,
|
||||
"Output tree weighted by path count vs. unweighted paths");
|
||||
DEFINE_bool(remove_total_weight, false,
|
||||
"Remove total weight when output weighted");
|
||||
|
||||
int fstrandgen_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstrandgen_main(argc, argv); }
|
||||
@@ -0,0 +1,104 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Relabels input or output space of an FST.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/util.h>
|
||||
#include <fst/script/relabel.h>
|
||||
#include <fst/script/weight-class.h>
|
||||
|
||||
DECLARE_string(isymbols);
|
||||
DECLARE_string(osymbols);
|
||||
DECLARE_string(relabel_isymbols);
|
||||
DECLARE_string(relabel_osymbols);
|
||||
DECLARE_string(relabel_ipairs);
|
||||
DECLARE_string(relabel_opairs);
|
||||
DECLARE_string(unknown_isymbol);
|
||||
DECLARE_string(unknown_osymbol);
|
||||
DECLARE_bool(allow_negative_labels);
|
||||
|
||||
int fstrelabel_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::MutableFstClass;
|
||||
using fst::SymbolTable;
|
||||
using fst::SymbolTableTextOptions;
|
||||
|
||||
string usage =
|
||||
"Relabels the input and/or the output labels of the FST.\n\n"
|
||||
" Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [out.fst]]\n";
|
||||
usage += "\n Using SymbolTables flags:\n";
|
||||
usage += " --relabel_isymbols isyms.map\n";
|
||||
usage += " --relabel_osymbols osyms.map\n";
|
||||
usage += "\n Using numeric labels flags:\n";
|
||||
usage += " --relabel_ipairs ipairs.txt\n";
|
||||
usage += " --relabel_opairs opairs.txt\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name =
|
||||
(argc > 1 && (strcmp(argv[1], "-") != 0)) ? argv[1] : "";
|
||||
const string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<MutableFstClass> fst(MutableFstClass::Read(in_name, true));
|
||||
if (!fst) return 1;
|
||||
|
||||
// Relabel with symbol tables.
|
||||
const SymbolTableTextOptions opts(FLAGS_allow_negative_labels);
|
||||
|
||||
if (!FLAGS_relabel_isymbols.empty() || !FLAGS_relabel_osymbols.empty()) {
|
||||
bool attach_new_isymbols = (fst->InputSymbols() != nullptr);
|
||||
std::unique_ptr<const SymbolTable> old_isymbols(
|
||||
FLAGS_isymbols.empty() ? nullptr
|
||||
: SymbolTable::ReadText(FLAGS_isymbols, opts));
|
||||
const std::unique_ptr<const SymbolTable> relabel_isymbols(
|
||||
FLAGS_relabel_isymbols.empty()
|
||||
? nullptr
|
||||
: SymbolTable::ReadText(FLAGS_relabel_isymbols, opts));
|
||||
bool attach_new_osymbols = (fst->OutputSymbols() != nullptr);
|
||||
std::unique_ptr<const SymbolTable> old_osymbols(
|
||||
FLAGS_osymbols.empty() ? nullptr
|
||||
: SymbolTable::ReadText(FLAGS_osymbols, opts));
|
||||
const std::unique_ptr<const SymbolTable> relabel_osymbols(
|
||||
FLAGS_relabel_osymbols.empty()
|
||||
? nullptr
|
||||
: SymbolTable::ReadText(FLAGS_relabel_osymbols, opts));
|
||||
s::Relabel(fst.get(),
|
||||
old_isymbols ? old_isymbols.get() : fst->InputSymbols(),
|
||||
relabel_isymbols.get(), FLAGS_unknown_isymbol,
|
||||
attach_new_isymbols,
|
||||
old_osymbols ? old_osymbols.get() : fst->OutputSymbols(),
|
||||
relabel_osymbols.get(), FLAGS_unknown_osymbol,
|
||||
attach_new_osymbols);
|
||||
} else {
|
||||
// Reads in relabeling pairs.
|
||||
std::vector<s::LabelPair> ipairs;
|
||||
std::vector<s::LabelPair> opairs;
|
||||
if (!FLAGS_relabel_ipairs.empty()) {
|
||||
if (!fst::ReadLabelPairs(FLAGS_relabel_ipairs, &ipairs,
|
||||
FLAGS_allow_negative_labels))
|
||||
return 1;
|
||||
}
|
||||
if (!FLAGS_relabel_opairs.empty()) {
|
||||
if (!fst::ReadLabelPairs(FLAGS_relabel_opairs, &opairs,
|
||||
FLAGS_allow_negative_labels))
|
||||
return 1;
|
||||
}
|
||||
s::Relabel(fst.get(), ipairs, opairs);
|
||||
}
|
||||
|
||||
return !fst->Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
|
||||
DEFINE_string(isymbols, "", "Input label symbol table");
|
||||
DEFINE_string(osymbols, "", "Output label symbol table");
|
||||
DEFINE_string(relabel_isymbols, "", "Input symbol set to relabel to");
|
||||
DEFINE_string(relabel_osymbols, "", "Output symbol set to relabel to");
|
||||
DEFINE_string(relabel_ipairs, "", "Input relabel pairs (numeric)");
|
||||
DEFINE_string(relabel_opairs, "", "Output relabel pairs (numeric)");
|
||||
DEFINE_string(unknown_isymbol, "",
|
||||
"Input symbol to use to relabel OOVs (default: OOVs are errors)");
|
||||
DEFINE_string(unknown_osymbol, "",
|
||||
"Output symbol to use to relabel OOVs (default: OOVs are errors)");
|
||||
DEFINE_bool(allow_negative_labels, false,
|
||||
"Allow negative labels (not recommended; may cause conflicts)");
|
||||
|
||||
int fstrelabel_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstrelabel_main(argc, argv); }
|
||||
@@ -0,0 +1,91 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Performs the dynamic replacement of arcs in one FST with another FST,
|
||||
// allowing for the definition of FSTs analogous to RTNs.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/script/getters.h>
|
||||
#include <fst/script/replace.h>
|
||||
|
||||
DECLARE_string(call_arc_labeling);
|
||||
DECLARE_string(return_arc_labeling);
|
||||
DECLARE_int64(return_label);
|
||||
DECLARE_bool(epsilon_on_replace);
|
||||
|
||||
void Cleanup(std::vector<fst::script::LabelFstClassPair> *pairs) {
|
||||
for (const auto &pair : *pairs) {
|
||||
delete pair.second;
|
||||
}
|
||||
pairs->clear();
|
||||
}
|
||||
|
||||
int fstreplace_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::FstClass;
|
||||
using fst::script::VectorFstClass;
|
||||
using fst::ReplaceLabelType;
|
||||
|
||||
string usage = "Recursively replaces FST arcs with other FST(s).\n\n"
|
||||
" Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " root.fst rootlabel [rule1.fst label1 ...] [out.fst]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc < 4) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name = argv[1];
|
||||
const string out_name = argc % 2 == 0 ? argv[argc - 1] : "";
|
||||
|
||||
auto *ifst = FstClass::Read(in_name);
|
||||
if (!ifst) return 1;
|
||||
|
||||
std::vector<s::LabelFstClassPair> pairs;
|
||||
// Note that if the root label is beyond the range of the underlying FST's
|
||||
// labels, truncation will occur.
|
||||
const auto root = atoll(argv[2]);
|
||||
pairs.emplace_back(root, ifst);
|
||||
|
||||
for (auto i = 3; i < argc - 1; i += 2) {
|
||||
ifst = FstClass::Read(argv[i]);
|
||||
if (!ifst) {
|
||||
Cleanup(&pairs);
|
||||
return 1;
|
||||
}
|
||||
// Note that if the root label is beyond the range of the underlying FST's
|
||||
// labels, truncation will occur.
|
||||
const auto label = atoll(argv[i + 1]);
|
||||
pairs.emplace_back(label, ifst);
|
||||
}
|
||||
|
||||
ReplaceLabelType call_label_type;
|
||||
if (!s::GetReplaceLabelType(FLAGS_call_arc_labeling, FLAGS_epsilon_on_replace,
|
||||
&call_label_type)) {
|
||||
LOG(ERROR) << argv[0] << ": Unknown or unsupported call arc replace "
|
||||
<< "label type: " << FLAGS_call_arc_labeling;
|
||||
}
|
||||
ReplaceLabelType return_label_type;
|
||||
if (!s::GetReplaceLabelType(FLAGS_return_arc_labeling,
|
||||
FLAGS_epsilon_on_replace, &return_label_type)) {
|
||||
LOG(ERROR) << argv[0] << ": Unknown or unsupported return arc replace "
|
||||
<< "label type: " << FLAGS_return_arc_labeling;
|
||||
}
|
||||
|
||||
s::ReplaceOptions opts(root, call_label_type, return_label_type,
|
||||
FLAGS_return_label);
|
||||
|
||||
VectorFstClass ofst(ifst->ArcType());
|
||||
s::Replace(pairs, &ofst, opts);
|
||||
Cleanup(&pairs);
|
||||
|
||||
return !ofst.Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
|
||||
DEFINE_string(call_arc_labeling, "input",
|
||||
"Which labels to make non-epsilon on the call arc. "
|
||||
"One of: \"input\" (default), \"output\", \"both\", \"neither\"");
|
||||
DEFINE_string(return_arc_labeling, "neither",
|
||||
"Which labels to make non-epsilon on the return arc. "
|
||||
"One of: \"input\", \"output\", \"both\", \"neither\" (default)");
|
||||
DEFINE_int64(return_label, 0, "Label to put on return arc");
|
||||
DEFINE_bool(epsilon_on_replace, false, "Call/return arcs are epsilon arcs?");
|
||||
|
||||
int fstreplace_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstreplace_main(argc, argv); }
|
||||
@@ -0,0 +1,45 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Reverses the paths in an FST.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/script/fst-class.h>
|
||||
#include <fst/script/reverse.h>
|
||||
|
||||
DECLARE_bool(require_superinitial);
|
||||
|
||||
int fstreverse_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::FstClass;
|
||||
using fst::script::VectorFstClass;
|
||||
|
||||
string usage = "Reverses the paths in an FST.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [out.fst]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name =
|
||||
(argc > 1 && (strcmp(argv[1], "-") != 0)) ? argv[1] : "";
|
||||
const string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<FstClass> ifst(FstClass::Read(in_name));
|
||||
if (!ifst) return 1;
|
||||
|
||||
VectorFstClass ofst(ifst->ArcType());
|
||||
|
||||
s::Reverse(*ifst, &ofst, FLAGS_require_superinitial);
|
||||
|
||||
return !ofst.Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
|
||||
DEFINE_bool(require_superinitial, true, "Always create a superinitial state");
|
||||
|
||||
int fstreverse_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstreverse_main(argc, argv); }
|
||||
@@ -0,0 +1,50 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Reweights an FST.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/script/getters.h>
|
||||
#include <fst/script/reweight.h>
|
||||
#include <fst/script/text-io.h>
|
||||
|
||||
DECLARE_bool(to_final);
|
||||
|
||||
int fstreweight_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::MutableFstClass;
|
||||
using fst::script::WeightClass;
|
||||
|
||||
string usage = "Reweights an FST.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " in.fst potential.txt [out.fst]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc < 3 || argc > 4) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name = argv[1];
|
||||
const string potentials_name = argv[2];
|
||||
const string out_name = argc > 3 ? argv[3] : "";
|
||||
|
||||
std::unique_ptr<MutableFstClass> fst(MutableFstClass::Read(in_name, true));
|
||||
if (!fst) return 1;
|
||||
|
||||
std::vector<WeightClass> potential;
|
||||
if (!s::ReadPotentials(fst->WeightType(), potentials_name, &potential)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
s::Reweight(fst.get(), potential, s::GetReweightType(FLAGS_to_final));
|
||||
|
||||
return !fst->Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
|
||||
DEFINE_bool(to_final, false, "Push/reweight to final (vs. to initial) states");
|
||||
|
||||
int fstreweight_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstreweight_main(argc, argv); }
|
||||
@@ -0,0 +1,61 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Removes epsilons from an FST.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/log.h>
|
||||
#include <fst/script/getters.h>
|
||||
#include <fst/script/rmepsilon.h>
|
||||
|
||||
DECLARE_bool(connect);
|
||||
DECLARE_double(delta);
|
||||
DECLARE_int64(nstate);
|
||||
DECLARE_string(queue_type);
|
||||
DECLARE_string(weight);
|
||||
|
||||
int fstrmepsilon_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::MutableFstClass;
|
||||
using fst::script::WeightClass;
|
||||
|
||||
string usage = "Removes epsilons from an FST.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [out.fst]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
|
||||
const string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<MutableFstClass> fst(MutableFstClass::Read(in_name, true));
|
||||
if (!fst) return 1;
|
||||
|
||||
const auto weight_threshold =
|
||||
FLAGS_weight.empty() ? WeightClass::Zero(fst->WeightType())
|
||||
: WeightClass(fst->WeightType(), FLAGS_weight);
|
||||
|
||||
fst::QueueType queue_type;
|
||||
if (!s::GetQueueType(FLAGS_queue_type, &queue_type)) {
|
||||
LOG(ERROR) << argv[0]
|
||||
<< ": Unknown or unsupported queue type: " << FLAGS_queue_type;
|
||||
return 1;
|
||||
}
|
||||
|
||||
const s::RmEpsilonOptions opts(queue_type, FLAGS_connect, weight_threshold,
|
||||
FLAGS_nstate, FLAGS_delta);
|
||||
|
||||
s::RmEpsilon(fst.get(), opts);
|
||||
|
||||
return !fst->Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/fst.h>
|
||||
#include <fst/shortest-distance.h>
|
||||
#include <fst/weight.h>
|
||||
|
||||
DEFINE_bool(connect, true, "Trim output");
|
||||
DEFINE_double(delta, fst::kShortestDelta, "Comparison/quantization delta");
|
||||
DEFINE_int64(nstate, fst::kNoStateId, "State number threshold");
|
||||
DEFINE_string(queue_type, "auto",
|
||||
"Queue type: one of: \"auto\", "
|
||||
"\"fifo\", \"lifo\", \"shortest\", \"state\", \"top\"");
|
||||
DEFINE_string(weight, "", "Weight threshold");
|
||||
|
||||
int fstrmepsilon_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstrmepsilon_main(argc, argv); }
|
||||
@@ -0,0 +1,70 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Find shortest distances in an FST.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/log.h>
|
||||
#include <fst/script/getters.h>
|
||||
#include <fst/script/shortest-distance.h>
|
||||
#include <fst/script/text-io.h>
|
||||
|
||||
DECLARE_bool(reverse);
|
||||
DECLARE_double(delta);
|
||||
DECLARE_int64(nstate);
|
||||
DECLARE_string(queue_type);
|
||||
|
||||
int fstshortestdistance_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::FstClass;
|
||||
using fst::script::WeightClass;
|
||||
using fst::QueueType;
|
||||
using fst::AUTO_QUEUE;
|
||||
|
||||
string usage = "Finds shortest distance(s) in an FST.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [distance.txt]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
string in_name = (argc > 1 && (strcmp(argv[1], "-") != 0)) ? argv[1] : "";
|
||||
string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<FstClass> ifst(FstClass::Read(in_name));
|
||||
if (!ifst) return 1;
|
||||
|
||||
std::vector<WeightClass> distance;
|
||||
|
||||
QueueType queue_type;
|
||||
if (!s::GetQueueType(FLAGS_queue_type, &queue_type)) {
|
||||
LOG(ERROR) << argv[0]
|
||||
<< ": Unknown or unsupported queue type: " << FLAGS_queue_type;
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (FLAGS_reverse && queue_type != AUTO_QUEUE) {
|
||||
LOG(ERROR) << argv[0] << ": Can't use non-default queue with reverse";
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (FLAGS_reverse) {
|
||||
s::ShortestDistance(*ifst, &distance, FLAGS_reverse, FLAGS_delta);
|
||||
} else {
|
||||
const s::ShortestDistanceOptions opts(queue_type, s::ANY_ARC_FILTER,
|
||||
FLAGS_nstate, FLAGS_delta);
|
||||
s::ShortestDistance(*ifst, &distance, opts);
|
||||
}
|
||||
|
||||
return !s::WritePotentials(out_name, distance);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/fst.h>
|
||||
#include <fst/shortest-distance.h>
|
||||
#include <fst/weight.h>
|
||||
|
||||
DEFINE_bool(reverse, false, "Perform in the reverse direction");
|
||||
DEFINE_double(delta, fst::kShortestDelta, "Comparison/quantization delta");
|
||||
DEFINE_int64(nstate, fst::kNoStateId, "State number threshold");
|
||||
DEFINE_string(queue_type, "auto",
|
||||
"Queue type: one of: \"auto\", "
|
||||
"\"fifo\", \"lifo\", \"shortest\", \"state\", \"top\"");
|
||||
|
||||
int fstshortestdistance_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstshortestdistance_main(argc, argv); }
|
||||
@@ -0,0 +1,67 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Find shortest path(s) in an FST.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/log.h>
|
||||
#include <fst/script/getters.h>
|
||||
#include <fst/script/shortest-path.h>
|
||||
|
||||
DECLARE_double(delta);
|
||||
DECLARE_int32(nshortest);
|
||||
DECLARE_int64(nstate);
|
||||
DECLARE_string(queue_type);
|
||||
DECLARE_bool(unique);
|
||||
DECLARE_string(weight);
|
||||
|
||||
int fstshortestpath_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::FstClass;
|
||||
using fst::script::WeightClass;
|
||||
using fst::script::VectorFstClass;
|
||||
|
||||
string usage = "Finds shortest path(s) in an FST.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [out.fst]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name =
|
||||
(argc > 1 && (strcmp(argv[1], "-") != 0)) ? argv[1] : "";
|
||||
const string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<FstClass> ifst(FstClass::Read(in_name));
|
||||
if (!ifst) return 1;
|
||||
|
||||
const auto weight_threshold =
|
||||
FLAGS_weight.empty() ? WeightClass::Zero(ifst->WeightType())
|
||||
: WeightClass(ifst->WeightType(), FLAGS_weight);
|
||||
|
||||
VectorFstClass ofst(ifst->ArcType());
|
||||
|
||||
fst::QueueType queue_type;
|
||||
if (!s::GetQueueType(FLAGS_queue_type, &queue_type)) {
|
||||
LOG(ERROR) << "Unknown or unsupported queue type: " << FLAGS_queue_type;
|
||||
return 1;
|
||||
}
|
||||
|
||||
const s::ShortestPathOptions opts(queue_type, FLAGS_nshortest,
|
||||
FLAGS_unique, FLAGS_delta,
|
||||
weight_threshold, FLAGS_nstate);
|
||||
|
||||
s::ShortestPath(*ifst, &ofst, opts);
|
||||
|
||||
return !ofst.Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/fst.h>
|
||||
#include <fst/shortest-distance.h>
|
||||
#include <fst/weight.h>
|
||||
|
||||
DEFINE_double(delta, fst::kShortestDelta, "Comparison/quantization delta");
|
||||
DEFINE_int32(nshortest, 1, "Return N-shortest paths");
|
||||
DEFINE_int64(nstate, fst::kNoStateId, "State number threshold");
|
||||
DEFINE_string(queue_type, "auto",
|
||||
"Queue type: one of \"auto\", "
|
||||
"\"fifo\", \"lifo\", \"shortest\', \"state\", \"top\"");
|
||||
DEFINE_bool(unique, false, "Return unique strings");
|
||||
DEFINE_string(weight, "", "Weight threshold");
|
||||
|
||||
int fstshortestpath_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstshortestpath_main(argc, argv); }
|
||||
@@ -0,0 +1,111 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Performs operations (set, clear, relabel) on the symbols table attached to an
|
||||
// input FST.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/util.h>
|
||||
#include <fst/script/fst-class.h>
|
||||
#include <fst/script/verify.h>
|
||||
|
||||
DECLARE_string(isymbols);
|
||||
DECLARE_string(osymbols);
|
||||
DECLARE_bool(clear_isymbols);
|
||||
DECLARE_bool(clear_osymbols);
|
||||
DECLARE_string(relabel_ipairs);
|
||||
DECLARE_string(relabel_opairs);
|
||||
DECLARE_string(save_isymbols);
|
||||
DECLARE_string(save_osymbols);
|
||||
DECLARE_bool(allow_negative_labels);
|
||||
DECLARE_bool(verify);
|
||||
|
||||
int fstsymbols_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::MutableFstClass;
|
||||
using fst::ReadLabelPairs;
|
||||
using fst::SymbolTable;
|
||||
using fst::SymbolTableTextOptions;
|
||||
|
||||
string usage =
|
||||
"Performs operations (set, clear, relabel) on the symbol"
|
||||
" tables attached to an FST.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [out.fst]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name = argc > 1 && strcmp(argv[1], "-") != 0 ? argv[1] : "";
|
||||
const string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<MutableFstClass> fst(MutableFstClass::Read(in_name, true));
|
||||
if (!fst) return 1;
|
||||
|
||||
if (!FLAGS_save_isymbols.empty()) {
|
||||
const auto *isyms = fst->InputSymbols();
|
||||
if (isyms) {
|
||||
isyms->WriteText(FLAGS_save_isymbols);
|
||||
} else {
|
||||
LOG(ERROR) << argv[0]
|
||||
<< ": Saving isymbols but there are no input symbols.";
|
||||
}
|
||||
}
|
||||
|
||||
if (!FLAGS_save_osymbols.empty()) {
|
||||
const auto *osyms = fst->OutputSymbols();
|
||||
if (osyms) {
|
||||
osyms->WriteText(FLAGS_save_osymbols);
|
||||
} else {
|
||||
LOG(ERROR) << argv[0]
|
||||
<< ": Saving osymbols but there are no output symbols.";
|
||||
}
|
||||
}
|
||||
|
||||
const SymbolTableTextOptions opts(FLAGS_allow_negative_labels);
|
||||
|
||||
std::unique_ptr<SymbolTable> isyms;
|
||||
if (!FLAGS_isymbols.empty()) {
|
||||
isyms.reset(SymbolTable::ReadText(FLAGS_isymbols, opts));
|
||||
fst->SetInputSymbols(isyms.get());
|
||||
} else if (FLAGS_clear_isymbols) {
|
||||
fst->SetInputSymbols(nullptr);
|
||||
}
|
||||
std::unique_ptr<SymbolTable> osyms;
|
||||
if (!FLAGS_osymbols.empty()) {
|
||||
osyms.reset(SymbolTable::ReadText(FLAGS_osymbols, opts));
|
||||
fst->SetOutputSymbols(osyms.get());
|
||||
} else if (FLAGS_clear_osymbols) {
|
||||
fst->SetOutputSymbols(nullptr);
|
||||
}
|
||||
|
||||
using Label = int64;
|
||||
if (!FLAGS_relabel_ipairs.empty()) {
|
||||
std::vector<std::pair<Label, Label>> ipairs;
|
||||
ReadLabelPairs(FLAGS_relabel_ipairs, &ipairs, FLAGS_allow_negative_labels);
|
||||
std::unique_ptr<SymbolTable> isyms_relabel(
|
||||
RelabelSymbolTable(fst->InputSymbols(), ipairs));
|
||||
fst->SetInputSymbols(isyms_relabel.get());
|
||||
}
|
||||
if (!FLAGS_relabel_opairs.empty()) {
|
||||
std::vector<std::pair<Label, Label>> opairs;
|
||||
ReadLabelPairs(FLAGS_relabel_opairs, &opairs, FLAGS_allow_negative_labels);
|
||||
std::unique_ptr<SymbolTable> osyms_relabel(
|
||||
RelabelSymbolTable(fst->OutputSymbols(), opairs));
|
||||
fst->SetOutputSymbols(osyms_relabel.get());
|
||||
}
|
||||
|
||||
if (FLAGS_verify && !s::Verify(*fst)) return 1;
|
||||
|
||||
return !fst->Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/flags.h>
|
||||
|
||||
DEFINE_string(isymbols, "", "Input label symbol table");
|
||||
DEFINE_string(osymbols, "", "Output label symbol table");
|
||||
DEFINE_bool(clear_isymbols, false, "Clear input symbol table");
|
||||
DEFINE_bool(clear_osymbols, false, "Clear output symbol table");
|
||||
DEFINE_string(relabel_ipairs, "", "Input relabel pairs (numeric)");
|
||||
DEFINE_string(relabel_opairs, "", "Output relabel pairs (numeric)");
|
||||
DEFINE_string(save_isymbols, "", "Save fst file's input symbol table to file");
|
||||
DEFINE_string(save_osymbols, "", "Save fst file's output symbol table to file");
|
||||
DEFINE_bool(allow_negative_labels, false,
|
||||
"Allow negative labels (not recommended; may cause conflicts)");
|
||||
DEFINE_bool(verify, false, "Verify fst properities before saving");
|
||||
|
||||
int fstsymbols_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstsymbols_main(argc, argv); }
|
||||
@@ -0,0 +1,41 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Synchronizes an FST.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/script/synchronize.h>
|
||||
|
||||
int fstsynchronize_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::FstClass;
|
||||
using fst::script::VectorFstClass;
|
||||
|
||||
string usage = "Synchronizes an FST.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [out.fst]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : "";
|
||||
const string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<FstClass> ifst(FstClass::Read(in_name));
|
||||
if (!ifst) return 1;
|
||||
|
||||
VectorFstClass ofst(ifst->ArcType());
|
||||
|
||||
s::Synchronize(*ifst, &ofst);
|
||||
|
||||
return !ofst.Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
int fstsynchronize_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstsynchronize_main(argc, argv); }
|
||||
@@ -0,0 +1,41 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Topologically sorts an FST.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/log.h>
|
||||
#include <fst/script/topsort.h>
|
||||
|
||||
int fsttopsort_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::MutableFstClass;
|
||||
|
||||
string usage = "Topologically sorts an FST.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " [in.fst [out.fst]]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc > 3) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in_name = argc > 1 && strcmp(argv[1], "-") != 0 ? argv[1] : "";
|
||||
const string out_name = argc > 2 ? argv[2] : "";
|
||||
|
||||
std::unique_ptr<MutableFstClass> fst(MutableFstClass::Read(in_name, true));
|
||||
if (!fst) return 1;
|
||||
|
||||
bool acyclic = TopSort(fst.get());
|
||||
|
||||
if (!acyclic) LOG(WARNING) << argv[0] << ": Input FST is cyclic";
|
||||
|
||||
return !fst->Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
int fsttopsort_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fsttopsort_main(argc, argv); }
|
||||
@@ -0,0 +1,49 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
//
|
||||
// Creates the union of two FSTs.
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <fst/flags.h>
|
||||
#include <fst/log.h>
|
||||
#include <fst/script/union.h>
|
||||
|
||||
int fstunion_main(int argc, char **argv) {
|
||||
namespace s = fst::script;
|
||||
using fst::script::FstClass;
|
||||
using fst::script::MutableFstClass;
|
||||
|
||||
string usage = "Creates the union of two FSTs.\n\n Usage: ";
|
||||
usage += argv[0];
|
||||
usage += " in1.fst in2.fst [out.fst]\n";
|
||||
|
||||
std::set_new_handler(FailedNewHandler);
|
||||
SET_FLAGS(usage.c_str(), &argc, &argv, true);
|
||||
if (argc < 3 || argc > 4) {
|
||||
ShowUsage();
|
||||
return 1;
|
||||
}
|
||||
|
||||
const string in1_name = strcmp(argv[1], "-") != 0 ? argv[1] : "";
|
||||
const string in2_name = strcmp(argv[2], "-") != 0 ? argv[2] : "";
|
||||
const string out_name = argc > 3 ? argv[3] : "";
|
||||
|
||||
if (in1_name == "" && in2_name == "") {
|
||||
LOG(ERROR) << argv[0] << ": Can't take both inputs from standard input";
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::unique_ptr<MutableFstClass> fst1(MutableFstClass::Read(in1_name, true));
|
||||
if (!fst1) return 1;
|
||||
|
||||
std::unique_ptr<FstClass> fst2(FstClass::Read(in2_name));
|
||||
if (!fst2) return 1;
|
||||
|
||||
s::Union(fst1.get(), *fst2);
|
||||
|
||||
return !fst1->Write(out_name);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
int fstunion_main(int argc, char **argv);
|
||||
|
||||
int main(int argc, char **argv) { return fstunion_main(argc, argv); }
|
||||
@@ -0,0 +1,46 @@
|
||||
|
||||
if(HAVE_COMPACT)
|
||||
add_subdirectory(compact)
|
||||
endif(HAVE_COMPACT)
|
||||
|
||||
if(HAVE_COMPRESS)
|
||||
add_subdirectory(compress)
|
||||
endif(HAVE_COMPRESS)
|
||||
|
||||
if(HAVE_CONST)
|
||||
add_subdirectory(const)
|
||||
endif(HAVE_CONST)
|
||||
|
||||
if(HAVE_FAR OR HAVE_GRM)
|
||||
add_subdirectory(far)
|
||||
endif(HAVE_FAR OR HAVE_GRM)
|
||||
|
||||
if(HAVE_LINEAR)
|
||||
add_subdirectory(linear)
|
||||
endif(HAVE_LINEAR)
|
||||
|
||||
if(HAVE_LOOKAHEAD)
|
||||
add_subdirectory(lookahead)
|
||||
endif(HAVE_LOOKAHEAD)
|
||||
|
||||
if(HAVE_MPDT OR HAVE_GRM)
|
||||
add_subdirectory(mpdt)
|
||||
endif(HAVE_MPDT OR HAVE_GRM)
|
||||
|
||||
if(HAVE_NGRAM)
|
||||
add_subdirectory(ngram)
|
||||
endif(HAVE_NGRAM)
|
||||
|
||||
#if(HAVE_PYTHON)
|
||||
# add_subdirectory(far)
|
||||
# add_subdirectory(python)
|
||||
#endif(HAVE_PDT)
|
||||
#
|
||||
if(HAVE_PDT OR HAVE_MPDT OR HAVE_GRM)
|
||||
add_subdirectory(pdt)
|
||||
endif(HAVE_PDT OR HAVE_MPDT OR HAVE_GRM)
|
||||
|
||||
if(HAVE_SPECIAL)
|
||||
add_subdirectory(special)
|
||||
endif(HAVE_SPECIAL)
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
if HAVE_COMPACT
|
||||
compactdir = compact
|
||||
endif
|
||||
|
||||
if HAVE_COMPRESS
|
||||
compressdir = compress
|
||||
endif
|
||||
|
||||
if HAVE_CONST
|
||||
constdir = const
|
||||
endif
|
||||
|
||||
if HAVE_FAR
|
||||
fardir = far
|
||||
endif
|
||||
|
||||
if HAVE_GRM
|
||||
fardir = far
|
||||
pdtdir = pdt
|
||||
mpdtdir = mpdt
|
||||
endif
|
||||
|
||||
if HAVE_LINEAR
|
||||
lineardir = linear
|
||||
endif
|
||||
|
||||
if HAVE_LOOKAHEAD
|
||||
lookaheaddir = lookahead
|
||||
endif
|
||||
|
||||
if HAVE_MPDT
|
||||
pdtdir = pdt
|
||||
mpdtdir = mpdt
|
||||
endif
|
||||
|
||||
if HAVE_NGRAM
|
||||
ngramdir = ngram
|
||||
endif
|
||||
|
||||
if HAVE_PYTHON
|
||||
fardir = far
|
||||
pywrapfstdir = python
|
||||
endif
|
||||
|
||||
if HAVE_PDT
|
||||
pdtdir = pdt
|
||||
endif
|
||||
|
||||
if HAVE_SPECIAL
|
||||
specialdir = special
|
||||
endif
|
||||
|
||||
SUBDIRS = $(compactdir) $(compressdir) $(constdir) $(fardir) $(lineardir) \
|
||||
$(lookaheaddir) $(pdtdir) $(mpdtdir) $(ngramdir) $(pywrapfstdir) \
|
||||
$(specialdir)
|
||||
@@ -0,0 +1,658 @@
|
||||
# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
false; \
|
||||
elif test -n '$(MAKE_HOST)'; then \
|
||||
true; \
|
||||
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||
true; \
|
||||
else \
|
||||
false; \
|
||||
fi; \
|
||||
}
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = src/extensions
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/ac_python_devel.m4 \
|
||||
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
|
||||
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
|
||||
$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h \
|
||||
$(top_builddir)/src/include/fst/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
|
||||
ctags-recursive dvi-recursive html-recursive info-recursive \
|
||||
install-data-recursive install-dvi-recursive \
|
||||
install-exec-recursive install-html-recursive \
|
||||
install-info-recursive install-pdf-recursive \
|
||||
install-ps-recursive install-recursive installcheck-recursive \
|
||||
installdirs-recursive pdf-recursive ps-recursive \
|
||||
tags-recursive uninstall-recursive
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
|
||||
distclean-recursive maintainer-clean-recursive
|
||||
am__recursive_targets = \
|
||||
$(RECURSIVE_TARGETS) \
|
||||
$(RECURSIVE_CLEAN_TARGETS) \
|
||||
$(am__extra_recursive_targets)
|
||||
AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
|
||||
distdir
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
# Read a list of newline-separated strings from the standard input,
|
||||
# and print each of them once, without duplicates. Input order is
|
||||
# *not* preserved.
|
||||
am__uniquify_input = $(AWK) '\
|
||||
BEGIN { nonempty = 0; } \
|
||||
{ items[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in items) print i; }; } \
|
||||
'
|
||||
# Make sure the list of sources is unique. This is necessary because,
|
||||
# e.g., the same source file might be shared among _SOURCES variables
|
||||
# for different programs/libraries.
|
||||
am__define_uniq_tagged_files = \
|
||||
list='$(am__tagged_files)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | $(am__uniquify_input)`
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DIST_SUBDIRS = compact compress const far linear lookahead pdt mpdt \
|
||||
ngram python special
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
am__relativize = \
|
||||
dir0=`pwd`; \
|
||||
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
|
||||
sed_rest='s,^[^/]*/*,,'; \
|
||||
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
|
||||
sed_butlast='s,/*[^/]*$$,,'; \
|
||||
while test -n "$$dir1"; do \
|
||||
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
|
||||
if test "$$first" != "."; then \
|
||||
if test "$$first" = ".."; then \
|
||||
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
|
||||
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
|
||||
else \
|
||||
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
|
||||
if test "$$first2" = "$$first"; then \
|
||||
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
|
||||
else \
|
||||
dir2="../$$dir2"; \
|
||||
fi; \
|
||||
dir0="$$dir0"/"$$first"; \
|
||||
fi; \
|
||||
fi; \
|
||||
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
|
||||
done; \
|
||||
reldir="$$dir2"
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
CXXDEPMODE = @CXXDEPMODE@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DL_LIBS = @DL_LIBS@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GREP = @GREP@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PYTHON = @PYTHON@
|
||||
PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@
|
||||
PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
|
||||
PYTHON_EXTRA_LDFLAGS = @PYTHON_EXTRA_LDFLAGS@
|
||||
PYTHON_EXTRA_LIBS = @PYTHON_EXTRA_LIBS@
|
||||
PYTHON_LDFLAGS = @PYTHON_LDFLAGS@
|
||||
PYTHON_PLATFORM = @PYTHON_PLATFORM@
|
||||
PYTHON_PREFIX = @PYTHON_PREFIX@
|
||||
PYTHON_SITE_PKG = @PYTHON_SITE_PKG@
|
||||
PYTHON_VERSION = @PYTHON_VERSION@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
libfstdir = @libfstdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
pkgpyexecdir = @pkgpyexecdir@
|
||||
pkgpythondir = @pkgpythondir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
pyexecdir = @pyexecdir@
|
||||
pythondir = @pythondir@
|
||||
runstatedir = @runstatedir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
@HAVE_COMPACT_TRUE@compactdir = compact
|
||||
@HAVE_COMPRESS_TRUE@compressdir = compress
|
||||
@HAVE_CONST_TRUE@constdir = const
|
||||
@HAVE_FAR_TRUE@fardir = far
|
||||
@HAVE_GRM_TRUE@fardir = far
|
||||
@HAVE_PYTHON_TRUE@fardir = far
|
||||
@HAVE_GRM_TRUE@pdtdir = pdt
|
||||
@HAVE_MPDT_TRUE@pdtdir = pdt
|
||||
@HAVE_PDT_TRUE@pdtdir = pdt
|
||||
@HAVE_GRM_TRUE@mpdtdir = mpdt
|
||||
@HAVE_MPDT_TRUE@mpdtdir = mpdt
|
||||
@HAVE_LINEAR_TRUE@lineardir = linear
|
||||
@HAVE_LOOKAHEAD_TRUE@lookaheaddir = lookahead
|
||||
@HAVE_NGRAM_TRUE@ngramdir = ngram
|
||||
@HAVE_PYTHON_TRUE@pywrapfstdir = python
|
||||
@HAVE_SPECIAL_TRUE@specialdir = special
|
||||
SUBDIRS = $(compactdir) $(compressdir) $(constdir) $(fardir) $(lineardir) \
|
||||
$(lookaheaddir) $(pdtdir) $(mpdtdir) $(ngramdir) $(pywrapfstdir) \
|
||||
$(specialdir)
|
||||
|
||||
all: all-recursive
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/extensions/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign src/extensions/Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
# This directory's subdirectories are mostly independent; you can cd
|
||||
# into them and run 'make' without going through this Makefile.
|
||||
# To change the values of 'make' variables: instead of editing Makefiles,
|
||||
# (1) if the variable is set in 'config.status', edit 'config.status'
|
||||
# (which will cause the Makefiles to be regenerated when you run 'make');
|
||||
# (2) otherwise, pass the desired values on the 'make' command line.
|
||||
$(am__recursive_targets):
|
||||
@fail=; \
|
||||
if $(am__make_keepgoing); then \
|
||||
failcom='fail=yes'; \
|
||||
else \
|
||||
failcom='exit 1'; \
|
||||
fi; \
|
||||
dot_seen=no; \
|
||||
target=`echo $@ | sed s/-recursive//`; \
|
||||
case "$@" in \
|
||||
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
||||
*) list='$(SUBDIRS)' ;; \
|
||||
esac; \
|
||||
for subdir in $$list; do \
|
||||
echo "Making $$target in $$subdir"; \
|
||||
if test "$$subdir" = "."; then \
|
||||
dot_seen=yes; \
|
||||
local_target="$$target-am"; \
|
||||
else \
|
||||
local_target="$$target"; \
|
||||
fi; \
|
||||
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
||||
|| eval $$failcom; \
|
||||
done; \
|
||||
if test "$$dot_seen" = "no"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
||||
fi; test -z "$$fail"
|
||||
|
||||
ID: $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); mkid -fID $$unique
|
||||
tags: tags-recursive
|
||||
TAGS: tags
|
||||
|
||||
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
set x; \
|
||||
here=`pwd`; \
|
||||
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
||||
include_option=--etags-include; \
|
||||
empty_fix=.; \
|
||||
else \
|
||||
include_option=--include; \
|
||||
empty_fix=; \
|
||||
fi; \
|
||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
test ! -f $$subdir/TAGS || \
|
||||
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
$(am__define_uniq_tagged_files); \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi
|
||||
ctags: ctags-recursive
|
||||
|
||||
CTAGS: ctags
|
||||
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); \
|
||||
test -z "$(CTAGS_ARGS)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__cd) $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) "$$here"
|
||||
cscopelist: cscopelist-recursive
|
||||
|
||||
cscopelist-am: $(am__tagged_files)
|
||||
list='$(am__tagged_files)'; \
|
||||
case "$(srcdir)" in \
|
||||
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
||||
*) sdir=$(subdir)/$(srcdir) ;; \
|
||||
esac; \
|
||||
for i in $$list; do \
|
||||
if test -f "$$i"; then \
|
||||
echo "$(subdir)/$$i"; \
|
||||
else \
|
||||
echo "$$sdir/$$i"; \
|
||||
fi; \
|
||||
done >> $(top_builddir)/cscope.files
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||
if test "$$subdir" = .; then :; else \
|
||||
$(am__make_dryrun) \
|
||||
|| test -d "$(distdir)/$$subdir" \
|
||||
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|
||||
|| exit 1; \
|
||||
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
|
||||
$(am__relativize); \
|
||||
new_distdir=$$reldir; \
|
||||
dir1=$$subdir; dir2="$(top_distdir)"; \
|
||||
$(am__relativize); \
|
||||
new_top_distdir=$$reldir; \
|
||||
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
|
||||
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
|
||||
($(am__cd) $$subdir && \
|
||||
$(MAKE) $(AM_MAKEFLAGS) \
|
||||
top_distdir="$$new_top_distdir" \
|
||||
distdir="$$new_distdir" \
|
||||
am__remove_distdir=: \
|
||||
am__skip_length_check=: \
|
||||
am__skip_mode_fix=: \
|
||||
distdir) \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile
|
||||
installdirs: installdirs-recursive
|
||||
installdirs-am:
|
||||
install: install-recursive
|
||||
install-exec: install-exec-recursive
|
||||
install-data: install-data-recursive
|
||||
uninstall: uninstall-recursive
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-recursive
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic distclean-tags
|
||||
|
||||
dvi: dvi-recursive
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-recursive
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-recursive
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-dvi: install-dvi-recursive
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-recursive
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-recursive
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-recursive
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-recursive
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-recursive
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-recursive
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-recursive
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am:
|
||||
|
||||
.MAKE: $(am__recursive_targets) install-am install-strip
|
||||
|
||||
.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
|
||||
check-am clean clean-generic clean-libtool cscopelist-am ctags \
|
||||
ctags-am distclean distclean-generic distclean-libtool \
|
||||
distclean-tags distdir dvi dvi-am html html-am info info-am \
|
||||
install install-am install-data install-data-am install-dvi \
|
||||
install-dvi-am install-exec install-exec-am install-html \
|
||||
install-html-am install-info install-info-am install-man \
|
||||
install-pdf install-pdf-am install-ps install-ps-am \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
installdirs-am maintainer-clean maintainer-clean-generic \
|
||||
mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
|
||||
ps ps-am tags tags-am uninstall uninstall-am
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
+93
@@ -0,0 +1,93 @@
|
||||
add_library(fstcompact
|
||||
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
|
||||
)
|
||||
|
||||
target_link_libraries(fstcompact fst)
|
||||
set_target_properties(fstcompact PROPERTIES
|
||||
SOVERSION "${SOVERSION}"
|
||||
FOLDER compact
|
||||
)
|
||||
|
||||
install(TARGETS fstcompact
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
RUNTIME DESTINATION lib
|
||||
)
|
||||
|
||||
function (add_module _name)
|
||||
add_library(${ARGV})
|
||||
if (TARGET ${_name})
|
||||
target_link_libraries(${_name} fst)
|
||||
set_target_properties(${_name} PROPERTIES
|
||||
WINDOWS_EXPORT_ALL_SYMBOLS true
|
||||
FOLDER compact/modules
|
||||
)
|
||||
endif()
|
||||
|
||||
#set_target_properties(${_name} PROPERTIES SOVERSION "1")
|
||||
install(TARGETS ${_name}
|
||||
LIBRARY DESTINATION lib/fst
|
||||
ARCHIVE DESTINATION lib/fst
|
||||
RUNTIME DESTINATION lib/fst)
|
||||
endfunction()
|
||||
|
||||
add_module(compact8_acceptor-fst MODULE
|
||||
compact8_acceptor-fst.cc)
|
||||
|
||||
add_module(compact8_string-fst MODULE
|
||||
compact8_string-fst.cc)
|
||||
|
||||
add_module(compact8_unweighted-fst MODULE
|
||||
compact8_unweighted-fst.cc)
|
||||
|
||||
add_module(compact8_unweighted_acceptor-fst MODULE
|
||||
compact8_unweighted_acceptor-fst.cc)
|
||||
|
||||
add_module(compact8_weighted_string-fst MODULE
|
||||
compact8_weighted_string-fst.cc)
|
||||
|
||||
add_module(compact16_acceptor-fst MODULE
|
||||
compact16_acceptor-fst.cc)
|
||||
|
||||
add_module(compact16_string-fst MODULE
|
||||
compact16_string-fst.cc)
|
||||
|
||||
add_module(compact16_unweighted-fst MODULE
|
||||
compact16_unweighted-fst.cc)
|
||||
|
||||
add_module(compact16_unweighted_acceptor-fst MODULE
|
||||
compact16_unweighted_acceptor-fst.cc)
|
||||
|
||||
add_module(compact16_weighted_string-fst MODULE
|
||||
compact16_weighted_string-fst.cc)
|
||||
|
||||
add_module(compact64_acceptor-fst MODULE
|
||||
compact64_acceptor-fst.cc)
|
||||
|
||||
add_module(compact64_string-fst MODULE
|
||||
compact64_string-fst.cc)
|
||||
|
||||
add_module(compact64_unweighted-fst MODULE
|
||||
compact64_unweighted-fst.cc)
|
||||
|
||||
add_module(compact64_unweighted_acceptor-fst MODULE
|
||||
compact64_unweighted_acceptor-fst.cc)
|
||||
|
||||
add_module(compact64_weighted_string-fst MODULE
|
||||
compact64_weighted_string-fst.cc)
|
||||
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
AM_CPPFLAGS = -I$(srcdir)/../../include $(ICU_CPPFLAGS)
|
||||
|
||||
libfstdir = @libfstdir@
|
||||
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 16: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
|
||||
|
||||
compact8_string_fst_la_SOURCES = compact8_string-fst.cc
|
||||
compact8_string_fst_la_LDFLAGS = -module
|
||||
|
||||
compact8_unweighted_fst_la_SOURCES = compact8_unweighted-fst.cc
|
||||
compact8_unweighted_fst_la_LDFLAGS = -module
|
||||
|
||||
compact8_unweighted_acceptor_fst_la_SOURCES = compact8_unweighted_acceptor-fst.cc
|
||||
compact8_unweighted_acceptor_fst_la_LDFLAGS = -module
|
||||
|
||||
compact8_weighted_string_fst_la_SOURCES = compact8_weighted_string-fst.cc
|
||||
compact8_weighted_string_fst_la_LDFLAGS = -module
|
||||
|
||||
compact16_acceptor_fst_la_SOURCES = compact16_acceptor-fst.cc
|
||||
compact16_acceptor_fst_la_LDFLAGS = -module
|
||||
|
||||
compact16_string_fst_la_SOURCES = compact16_string-fst.cc
|
||||
compact16_string_fst_la_LDFLAGS = -module
|
||||
|
||||
compact16_unweighted_fst_la_SOURCES = compact16_unweighted-fst.cc
|
||||
compact16_unweighted_fst_la_LDFLAGS = -module
|
||||
|
||||
compact16_unweighted_acceptor_fst_la_SOURCES = compact16_unweighted_acceptor-fst.cc
|
||||
compact16_unweighted_acceptor_fst_la_LDFLAGS = -module
|
||||
|
||||
compact16_weighted_string_fst_la_SOURCES = compact16_weighted_string-fst.cc
|
||||
compact16_weighted_string_fst_la_LDFLAGS = -module
|
||||
|
||||
compact64_acceptor_fst_la_SOURCES = compact64_acceptor-fst.cc
|
||||
compact64_acceptor_fst_la_LDFLAGS = -module
|
||||
|
||||
compact64_string_fst_la_SOURCES = compact64_string-fst.cc
|
||||
compact64_string_fst_la_LDFLAGS = -module
|
||||
|
||||
compact64_unweighted_fst_la_SOURCES = compact64_unweighted-fst.cc
|
||||
compact64_unweighted_fst_la_LDFLAGS = -module
|
||||
|
||||
compact64_unweighted_acceptor_fst_la_SOURCES = compact64_unweighted_acceptor-fst.cc
|
||||
compact64_unweighted_acceptor_fst_la_LDFLAGS = -module
|
||||
|
||||
compact64_weighted_string_fst_la_SOURCES = compact64_weighted_string-fst.cc
|
||||
compact64_weighted_string_fst_la_LDFLAGS = -module
|
||||
@@ -0,0 +1,966 @@
|
||||
# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
false; \
|
||||
elif test -n '$(MAKE_HOST)'; then \
|
||||
true; \
|
||||
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||
true; \
|
||||
else \
|
||||
false; \
|
||||
fi; \
|
||||
}
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = src/extensions/compact
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/ac_python_devel.m4 \
|
||||
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
|
||||
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
|
||||
$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h \
|
||||
$(top_builddir)/src/include/fst/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
|
||||
am__install_max = 40
|
||||
am__nobase_strip_setup = \
|
||||
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
|
||||
am__nobase_strip = \
|
||||
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
|
||||
am__nobase_list = $(am__nobase_strip_setup); \
|
||||
for p in $$list; do echo "$$p $$p"; done | \
|
||||
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
||||
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
||||
if (++n[$$2] == $(am__install_max)) \
|
||||
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
||||
END { for (dir in files) print dir, files[dir] }'
|
||||
am__base_list = \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||
am__uninstall_files_from_dir = { \
|
||||
test -z "$$files" \
|
||||
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
||||
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
||||
$(am__cd) "$$dir" && rm -f $$files; }; \
|
||||
}
|
||||
am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(libfstdir)"
|
||||
LTLIBRARIES = $(lib_LTLIBRARIES) $(libfst_LTLIBRARIES)
|
||||
compact16_acceptor_fst_la_LIBADD =
|
||||
am_compact16_acceptor_fst_la_OBJECTS = compact16_acceptor-fst.lo
|
||||
compact16_acceptor_fst_la_OBJECTS = \
|
||||
$(am_compact16_acceptor_fst_la_OBJECTS)
|
||||
AM_V_lt = $(am__v_lt_@AM_V@)
|
||||
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
|
||||
am__v_lt_0 = --silent
|
||||
am__v_lt_1 =
|
||||
compact16_acceptor_fst_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
|
||||
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
|
||||
$(AM_CXXFLAGS) $(CXXFLAGS) \
|
||||
$(compact16_acceptor_fst_la_LDFLAGS) $(LDFLAGS) -o $@
|
||||
compact16_string_fst_la_LIBADD =
|
||||
am_compact16_string_fst_la_OBJECTS = compact16_string-fst.lo
|
||||
compact16_string_fst_la_OBJECTS = \
|
||||
$(am_compact16_string_fst_la_OBJECTS)
|
||||
compact16_string_fst_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
|
||||
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
|
||||
$(AM_CXXFLAGS) $(CXXFLAGS) $(compact16_string_fst_la_LDFLAGS) \
|
||||
$(LDFLAGS) -o $@
|
||||
compact16_unweighted_fst_la_LIBADD =
|
||||
am_compact16_unweighted_fst_la_OBJECTS = compact16_unweighted-fst.lo
|
||||
compact16_unweighted_fst_la_OBJECTS = \
|
||||
$(am_compact16_unweighted_fst_la_OBJECTS)
|
||||
compact16_unweighted_fst_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
|
||||
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
|
||||
$(AM_CXXFLAGS) $(CXXFLAGS) \
|
||||
$(compact16_unweighted_fst_la_LDFLAGS) $(LDFLAGS) -o $@
|
||||
compact16_unweighted_acceptor_fst_la_LIBADD =
|
||||
am_compact16_unweighted_acceptor_fst_la_OBJECTS = \
|
||||
compact16_unweighted_acceptor-fst.lo
|
||||
compact16_unweighted_acceptor_fst_la_OBJECTS = \
|
||||
$(am_compact16_unweighted_acceptor_fst_la_OBJECTS)
|
||||
compact16_unweighted_acceptor_fst_la_LINK = $(LIBTOOL) $(AM_V_lt) \
|
||||
--tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \
|
||||
$(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
|
||||
$(compact16_unweighted_acceptor_fst_la_LDFLAGS) $(LDFLAGS) -o \
|
||||
$@
|
||||
compact16_weighted_string_fst_la_LIBADD =
|
||||
am_compact16_weighted_string_fst_la_OBJECTS = \
|
||||
compact16_weighted_string-fst.lo
|
||||
compact16_weighted_string_fst_la_OBJECTS = \
|
||||
$(am_compact16_weighted_string_fst_la_OBJECTS)
|
||||
compact16_weighted_string_fst_la_LINK = $(LIBTOOL) $(AM_V_lt) \
|
||||
--tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \
|
||||
$(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
|
||||
$(compact16_weighted_string_fst_la_LDFLAGS) $(LDFLAGS) -o $@
|
||||
compact64_acceptor_fst_la_LIBADD =
|
||||
am_compact64_acceptor_fst_la_OBJECTS = compact64_acceptor-fst.lo
|
||||
compact64_acceptor_fst_la_OBJECTS = \
|
||||
$(am_compact64_acceptor_fst_la_OBJECTS)
|
||||
compact64_acceptor_fst_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
|
||||
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
|
||||
$(AM_CXXFLAGS) $(CXXFLAGS) \
|
||||
$(compact64_acceptor_fst_la_LDFLAGS) $(LDFLAGS) -o $@
|
||||
compact64_string_fst_la_LIBADD =
|
||||
am_compact64_string_fst_la_OBJECTS = compact64_string-fst.lo
|
||||
compact64_string_fst_la_OBJECTS = \
|
||||
$(am_compact64_string_fst_la_OBJECTS)
|
||||
compact64_string_fst_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
|
||||
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
|
||||
$(AM_CXXFLAGS) $(CXXFLAGS) $(compact64_string_fst_la_LDFLAGS) \
|
||||
$(LDFLAGS) -o $@
|
||||
compact64_unweighted_fst_la_LIBADD =
|
||||
am_compact64_unweighted_fst_la_OBJECTS = compact64_unweighted-fst.lo
|
||||
compact64_unweighted_fst_la_OBJECTS = \
|
||||
$(am_compact64_unweighted_fst_la_OBJECTS)
|
||||
compact64_unweighted_fst_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
|
||||
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
|
||||
$(AM_CXXFLAGS) $(CXXFLAGS) \
|
||||
$(compact64_unweighted_fst_la_LDFLAGS) $(LDFLAGS) -o $@
|
||||
compact64_unweighted_acceptor_fst_la_LIBADD =
|
||||
am_compact64_unweighted_acceptor_fst_la_OBJECTS = \
|
||||
compact64_unweighted_acceptor-fst.lo
|
||||
compact64_unweighted_acceptor_fst_la_OBJECTS = \
|
||||
$(am_compact64_unweighted_acceptor_fst_la_OBJECTS)
|
||||
compact64_unweighted_acceptor_fst_la_LINK = $(LIBTOOL) $(AM_V_lt) \
|
||||
--tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \
|
||||
$(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
|
||||
$(compact64_unweighted_acceptor_fst_la_LDFLAGS) $(LDFLAGS) -o \
|
||||
$@
|
||||
compact64_weighted_string_fst_la_LIBADD =
|
||||
am_compact64_weighted_string_fst_la_OBJECTS = \
|
||||
compact64_weighted_string-fst.lo
|
||||
compact64_weighted_string_fst_la_OBJECTS = \
|
||||
$(am_compact64_weighted_string_fst_la_OBJECTS)
|
||||
compact64_weighted_string_fst_la_LINK = $(LIBTOOL) $(AM_V_lt) \
|
||||
--tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \
|
||||
$(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
|
||||
$(compact64_weighted_string_fst_la_LDFLAGS) $(LDFLAGS) -o $@
|
||||
compact8_acceptor_fst_la_LIBADD =
|
||||
am_compact8_acceptor_fst_la_OBJECTS = compact8_acceptor-fst.lo
|
||||
compact8_acceptor_fst_la_OBJECTS = \
|
||||
$(am_compact8_acceptor_fst_la_OBJECTS)
|
||||
compact8_acceptor_fst_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
|
||||
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
|
||||
$(AM_CXXFLAGS) $(CXXFLAGS) $(compact8_acceptor_fst_la_LDFLAGS) \
|
||||
$(LDFLAGS) -o $@
|
||||
compact8_string_fst_la_LIBADD =
|
||||
am_compact8_string_fst_la_OBJECTS = compact8_string-fst.lo
|
||||
compact8_string_fst_la_OBJECTS = $(am_compact8_string_fst_la_OBJECTS)
|
||||
compact8_string_fst_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
|
||||
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
|
||||
$(AM_CXXFLAGS) $(CXXFLAGS) $(compact8_string_fst_la_LDFLAGS) \
|
||||
$(LDFLAGS) -o $@
|
||||
compact8_unweighted_fst_la_LIBADD =
|
||||
am_compact8_unweighted_fst_la_OBJECTS = compact8_unweighted-fst.lo
|
||||
compact8_unweighted_fst_la_OBJECTS = \
|
||||
$(am_compact8_unweighted_fst_la_OBJECTS)
|
||||
compact8_unweighted_fst_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
|
||||
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
|
||||
$(AM_CXXFLAGS) $(CXXFLAGS) \
|
||||
$(compact8_unweighted_fst_la_LDFLAGS) $(LDFLAGS) -o $@
|
||||
compact8_unweighted_acceptor_fst_la_LIBADD =
|
||||
am_compact8_unweighted_acceptor_fst_la_OBJECTS = \
|
||||
compact8_unweighted_acceptor-fst.lo
|
||||
compact8_unweighted_acceptor_fst_la_OBJECTS = \
|
||||
$(am_compact8_unweighted_acceptor_fst_la_OBJECTS)
|
||||
compact8_unweighted_acceptor_fst_la_LINK = $(LIBTOOL) $(AM_V_lt) \
|
||||
--tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \
|
||||
$(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
|
||||
$(compact8_unweighted_acceptor_fst_la_LDFLAGS) $(LDFLAGS) -o \
|
||||
$@
|
||||
compact8_weighted_string_fst_la_LIBADD =
|
||||
am_compact8_weighted_string_fst_la_OBJECTS = \
|
||||
compact8_weighted_string-fst.lo
|
||||
compact8_weighted_string_fst_la_OBJECTS = \
|
||||
$(am_compact8_weighted_string_fst_la_OBJECTS)
|
||||
compact8_weighted_string_fst_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
|
||||
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
|
||||
$(AM_CXXFLAGS) $(CXXFLAGS) \
|
||||
$(compact8_weighted_string_fst_la_LDFLAGS) $(LDFLAGS) -o $@
|
||||
am__DEPENDENCIES_1 =
|
||||
libfstcompact_la_DEPENDENCIES = ../../lib/libfst.la \
|
||||
$(am__DEPENDENCIES_1)
|
||||
am_libfstcompact_la_OBJECTS = compact8_acceptor-fst.lo \
|
||||
compact8_string-fst.lo compact8_unweighted-fst.lo \
|
||||
compact8_unweighted_acceptor-fst.lo \
|
||||
compact8_weighted_string-fst.lo compact16_acceptor-fst.lo \
|
||||
compact16_string-fst.lo compact16_unweighted-fst.lo \
|
||||
compact16_unweighted_acceptor-fst.lo \
|
||||
compact16_weighted_string-fst.lo compact64_acceptor-fst.lo \
|
||||
compact64_string-fst.lo compact64_unweighted-fst.lo \
|
||||
compact64_unweighted_acceptor-fst.lo \
|
||||
compact64_weighted_string-fst.lo
|
||||
libfstcompact_la_OBJECTS = $(am_libfstcompact_la_OBJECTS)
|
||||
libfstcompact_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
|
||||
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
|
||||
$(AM_CXXFLAGS) $(CXXFLAGS) $(libfstcompact_la_LDFLAGS) \
|
||||
$(LDFLAGS) -o $@
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
DEFAULT_INCLUDES =
|
||||
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
am__mv = mv -f
|
||||
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
||||
LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
|
||||
$(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
|
||||
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
||||
$(AM_CXXFLAGS) $(CXXFLAGS)
|
||||
AM_V_CXX = $(am__v_CXX_@AM_V@)
|
||||
am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
|
||||
am__v_CXX_0 = @echo " CXX " $@;
|
||||
am__v_CXX_1 =
|
||||
CXXLD = $(CXX)
|
||||
CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
|
||||
$(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
||||
$(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
|
||||
am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
|
||||
am__v_CXXLD_0 = @echo " CXXLD " $@;
|
||||
am__v_CXXLD_1 =
|
||||
SOURCES = $(compact16_acceptor_fst_la_SOURCES) \
|
||||
$(compact16_string_fst_la_SOURCES) \
|
||||
$(compact16_unweighted_fst_la_SOURCES) \
|
||||
$(compact16_unweighted_acceptor_fst_la_SOURCES) \
|
||||
$(compact16_weighted_string_fst_la_SOURCES) \
|
||||
$(compact64_acceptor_fst_la_SOURCES) \
|
||||
$(compact64_string_fst_la_SOURCES) \
|
||||
$(compact64_unweighted_fst_la_SOURCES) \
|
||||
$(compact64_unweighted_acceptor_fst_la_SOURCES) \
|
||||
$(compact64_weighted_string_fst_la_SOURCES) \
|
||||
$(compact8_acceptor_fst_la_SOURCES) \
|
||||
$(compact8_string_fst_la_SOURCES) \
|
||||
$(compact8_unweighted_fst_la_SOURCES) \
|
||||
$(compact8_unweighted_acceptor_fst_la_SOURCES) \
|
||||
$(compact8_weighted_string_fst_la_SOURCES) \
|
||||
$(libfstcompact_la_SOURCES)
|
||||
DIST_SOURCES = $(compact16_acceptor_fst_la_SOURCES) \
|
||||
$(compact16_string_fst_la_SOURCES) \
|
||||
$(compact16_unweighted_fst_la_SOURCES) \
|
||||
$(compact16_unweighted_acceptor_fst_la_SOURCES) \
|
||||
$(compact16_weighted_string_fst_la_SOURCES) \
|
||||
$(compact64_acceptor_fst_la_SOURCES) \
|
||||
$(compact64_string_fst_la_SOURCES) \
|
||||
$(compact64_unweighted_fst_la_SOURCES) \
|
||||
$(compact64_unweighted_acceptor_fst_la_SOURCES) \
|
||||
$(compact64_weighted_string_fst_la_SOURCES) \
|
||||
$(compact8_acceptor_fst_la_SOURCES) \
|
||||
$(compact8_string_fst_la_SOURCES) \
|
||||
$(compact8_unweighted_fst_la_SOURCES) \
|
||||
$(compact8_unweighted_acceptor_fst_la_SOURCES) \
|
||||
$(compact8_weighted_string_fst_la_SOURCES) \
|
||||
$(libfstcompact_la_SOURCES)
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
# Read a list of newline-separated strings from the standard input,
|
||||
# and print each of them once, without duplicates. Input order is
|
||||
# *not* preserved.
|
||||
am__uniquify_input = $(AWK) '\
|
||||
BEGIN { nonempty = 0; } \
|
||||
{ items[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in items) print i; }; } \
|
||||
'
|
||||
# Make sure the list of sources is unique. This is necessary because,
|
||||
# e.g., the same source file might be shared among _SOURCES variables
|
||||
# for different programs/libraries.
|
||||
am__define_uniq_tagged_files = \
|
||||
list='$(am__tagged_files)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | $(am__uniquify_input)`
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
CXXDEPMODE = @CXXDEPMODE@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DL_LIBS = @DL_LIBS@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GREP = @GREP@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PYTHON = @PYTHON@
|
||||
PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@
|
||||
PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
|
||||
PYTHON_EXTRA_LDFLAGS = @PYTHON_EXTRA_LDFLAGS@
|
||||
PYTHON_EXTRA_LIBS = @PYTHON_EXTRA_LIBS@
|
||||
PYTHON_LDFLAGS = @PYTHON_LDFLAGS@
|
||||
PYTHON_PLATFORM = @PYTHON_PLATFORM@
|
||||
PYTHON_PREFIX = @PYTHON_PREFIX@
|
||||
PYTHON_SITE_PKG = @PYTHON_SITE_PKG@
|
||||
PYTHON_VERSION = @PYTHON_VERSION@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
libfstdir = @libfstdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
pkgpyexecdir = @pkgpyexecdir@
|
||||
pkgpythondir = @pkgpythondir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
pyexecdir = @pyexecdir@
|
||||
pythondir = @pythondir@
|
||||
runstatedir = @runstatedir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
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 16: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
|
||||
compact8_string_fst_la_SOURCES = compact8_string-fst.cc
|
||||
compact8_string_fst_la_LDFLAGS = -module
|
||||
compact8_unweighted_fst_la_SOURCES = compact8_unweighted-fst.cc
|
||||
compact8_unweighted_fst_la_LDFLAGS = -module
|
||||
compact8_unweighted_acceptor_fst_la_SOURCES = compact8_unweighted_acceptor-fst.cc
|
||||
compact8_unweighted_acceptor_fst_la_LDFLAGS = -module
|
||||
compact8_weighted_string_fst_la_SOURCES = compact8_weighted_string-fst.cc
|
||||
compact8_weighted_string_fst_la_LDFLAGS = -module
|
||||
compact16_acceptor_fst_la_SOURCES = compact16_acceptor-fst.cc
|
||||
compact16_acceptor_fst_la_LDFLAGS = -module
|
||||
compact16_string_fst_la_SOURCES = compact16_string-fst.cc
|
||||
compact16_string_fst_la_LDFLAGS = -module
|
||||
compact16_unweighted_fst_la_SOURCES = compact16_unweighted-fst.cc
|
||||
compact16_unweighted_fst_la_LDFLAGS = -module
|
||||
compact16_unweighted_acceptor_fst_la_SOURCES = compact16_unweighted_acceptor-fst.cc
|
||||
compact16_unweighted_acceptor_fst_la_LDFLAGS = -module
|
||||
compact16_weighted_string_fst_la_SOURCES = compact16_weighted_string-fst.cc
|
||||
compact16_weighted_string_fst_la_LDFLAGS = -module
|
||||
compact64_acceptor_fst_la_SOURCES = compact64_acceptor-fst.cc
|
||||
compact64_acceptor_fst_la_LDFLAGS = -module
|
||||
compact64_string_fst_la_SOURCES = compact64_string-fst.cc
|
||||
compact64_string_fst_la_LDFLAGS = -module
|
||||
compact64_unweighted_fst_la_SOURCES = compact64_unweighted-fst.cc
|
||||
compact64_unweighted_fst_la_LDFLAGS = -module
|
||||
compact64_unweighted_acceptor_fst_la_SOURCES = compact64_unweighted_acceptor-fst.cc
|
||||
compact64_unweighted_acceptor_fst_la_LDFLAGS = -module
|
||||
compact64_weighted_string_fst_la_SOURCES = compact64_weighted_string-fst.cc
|
||||
compact64_weighted_string_fst_la_LDFLAGS = -module
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .cc .lo .o .obj
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/extensions/compact/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign src/extensions/compact/Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
|
||||
list2=; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
list2="$$list2 $$p"; \
|
||||
else :; fi; \
|
||||
done; \
|
||||
test -z "$$list2" || { \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
|
||||
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
|
||||
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
|
||||
}
|
||||
|
||||
uninstall-libLTLIBRARIES:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
|
||||
for p in $$list; do \
|
||||
$(am__strip_dir) \
|
||||
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
|
||||
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
|
||||
done
|
||||
|
||||
clean-libLTLIBRARIES:
|
||||
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
|
||||
@list='$(lib_LTLIBRARIES)'; \
|
||||
locs=`for p in $$list; do echo $$p; done | \
|
||||
sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
|
||||
sort -u`; \
|
||||
test -z "$$locs" || { \
|
||||
echo rm -f $${locs}; \
|
||||
rm -f $${locs}; \
|
||||
}
|
||||
|
||||
install-libfstLTLIBRARIES: $(libfst_LTLIBRARIES)
|
||||
@$(NORMAL_INSTALL)
|
||||
@list='$(libfst_LTLIBRARIES)'; test -n "$(libfstdir)" || list=; \
|
||||
list2=; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
list2="$$list2 $$p"; \
|
||||
else :; fi; \
|
||||
done; \
|
||||
test -z "$$list2" || { \
|
||||
echo " $(MKDIR_P) '$(DESTDIR)$(libfstdir)'"; \
|
||||
$(MKDIR_P) "$(DESTDIR)$(libfstdir)" || exit 1; \
|
||||
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libfstdir)'"; \
|
||||
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libfstdir)"; \
|
||||
}
|
||||
|
||||
uninstall-libfstLTLIBRARIES:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(libfst_LTLIBRARIES)'; test -n "$(libfstdir)" || list=; \
|
||||
for p in $$list; do \
|
||||
$(am__strip_dir) \
|
||||
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libfstdir)/$$f'"; \
|
||||
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libfstdir)/$$f"; \
|
||||
done
|
||||
|
||||
clean-libfstLTLIBRARIES:
|
||||
-test -z "$(libfst_LTLIBRARIES)" || rm -f $(libfst_LTLIBRARIES)
|
||||
@list='$(libfst_LTLIBRARIES)'; \
|
||||
locs=`for p in $$list; do echo $$p; done | \
|
||||
sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
|
||||
sort -u`; \
|
||||
test -z "$$locs" || { \
|
||||
echo rm -f $${locs}; \
|
||||
rm -f $${locs}; \
|
||||
}
|
||||
|
||||
compact16_acceptor-fst.la: $(compact16_acceptor_fst_la_OBJECTS) $(compact16_acceptor_fst_la_DEPENDENCIES) $(EXTRA_compact16_acceptor_fst_la_DEPENDENCIES)
|
||||
$(AM_V_CXXLD)$(compact16_acceptor_fst_la_LINK) -rpath $(libfstdir) $(compact16_acceptor_fst_la_OBJECTS) $(compact16_acceptor_fst_la_LIBADD) $(LIBS)
|
||||
|
||||
compact16_string-fst.la: $(compact16_string_fst_la_OBJECTS) $(compact16_string_fst_la_DEPENDENCIES) $(EXTRA_compact16_string_fst_la_DEPENDENCIES)
|
||||
$(AM_V_CXXLD)$(compact16_string_fst_la_LINK) -rpath $(libfstdir) $(compact16_string_fst_la_OBJECTS) $(compact16_string_fst_la_LIBADD) $(LIBS)
|
||||
|
||||
compact16_unweighted-fst.la: $(compact16_unweighted_fst_la_OBJECTS) $(compact16_unweighted_fst_la_DEPENDENCIES) $(EXTRA_compact16_unweighted_fst_la_DEPENDENCIES)
|
||||
$(AM_V_CXXLD)$(compact16_unweighted_fst_la_LINK) -rpath $(libfstdir) $(compact16_unweighted_fst_la_OBJECTS) $(compact16_unweighted_fst_la_LIBADD) $(LIBS)
|
||||
|
||||
compact16_unweighted_acceptor-fst.la: $(compact16_unweighted_acceptor_fst_la_OBJECTS) $(compact16_unweighted_acceptor_fst_la_DEPENDENCIES) $(EXTRA_compact16_unweighted_acceptor_fst_la_DEPENDENCIES)
|
||||
$(AM_V_CXXLD)$(compact16_unweighted_acceptor_fst_la_LINK) -rpath $(libfstdir) $(compact16_unweighted_acceptor_fst_la_OBJECTS) $(compact16_unweighted_acceptor_fst_la_LIBADD) $(LIBS)
|
||||
|
||||
compact16_weighted_string-fst.la: $(compact16_weighted_string_fst_la_OBJECTS) $(compact16_weighted_string_fst_la_DEPENDENCIES) $(EXTRA_compact16_weighted_string_fst_la_DEPENDENCIES)
|
||||
$(AM_V_CXXLD)$(compact16_weighted_string_fst_la_LINK) -rpath $(libfstdir) $(compact16_weighted_string_fst_la_OBJECTS) $(compact16_weighted_string_fst_la_LIBADD) $(LIBS)
|
||||
|
||||
compact64_acceptor-fst.la: $(compact64_acceptor_fst_la_OBJECTS) $(compact64_acceptor_fst_la_DEPENDENCIES) $(EXTRA_compact64_acceptor_fst_la_DEPENDENCIES)
|
||||
$(AM_V_CXXLD)$(compact64_acceptor_fst_la_LINK) -rpath $(libfstdir) $(compact64_acceptor_fst_la_OBJECTS) $(compact64_acceptor_fst_la_LIBADD) $(LIBS)
|
||||
|
||||
compact64_string-fst.la: $(compact64_string_fst_la_OBJECTS) $(compact64_string_fst_la_DEPENDENCIES) $(EXTRA_compact64_string_fst_la_DEPENDENCIES)
|
||||
$(AM_V_CXXLD)$(compact64_string_fst_la_LINK) -rpath $(libfstdir) $(compact64_string_fst_la_OBJECTS) $(compact64_string_fst_la_LIBADD) $(LIBS)
|
||||
|
||||
compact64_unweighted-fst.la: $(compact64_unweighted_fst_la_OBJECTS) $(compact64_unweighted_fst_la_DEPENDENCIES) $(EXTRA_compact64_unweighted_fst_la_DEPENDENCIES)
|
||||
$(AM_V_CXXLD)$(compact64_unweighted_fst_la_LINK) -rpath $(libfstdir) $(compact64_unweighted_fst_la_OBJECTS) $(compact64_unweighted_fst_la_LIBADD) $(LIBS)
|
||||
|
||||
compact64_unweighted_acceptor-fst.la: $(compact64_unweighted_acceptor_fst_la_OBJECTS) $(compact64_unweighted_acceptor_fst_la_DEPENDENCIES) $(EXTRA_compact64_unweighted_acceptor_fst_la_DEPENDENCIES)
|
||||
$(AM_V_CXXLD)$(compact64_unweighted_acceptor_fst_la_LINK) -rpath $(libfstdir) $(compact64_unweighted_acceptor_fst_la_OBJECTS) $(compact64_unweighted_acceptor_fst_la_LIBADD) $(LIBS)
|
||||
|
||||
compact64_weighted_string-fst.la: $(compact64_weighted_string_fst_la_OBJECTS) $(compact64_weighted_string_fst_la_DEPENDENCIES) $(EXTRA_compact64_weighted_string_fst_la_DEPENDENCIES)
|
||||
$(AM_V_CXXLD)$(compact64_weighted_string_fst_la_LINK) -rpath $(libfstdir) $(compact64_weighted_string_fst_la_OBJECTS) $(compact64_weighted_string_fst_la_LIBADD) $(LIBS)
|
||||
|
||||
compact8_acceptor-fst.la: $(compact8_acceptor_fst_la_OBJECTS) $(compact8_acceptor_fst_la_DEPENDENCIES) $(EXTRA_compact8_acceptor_fst_la_DEPENDENCIES)
|
||||
$(AM_V_CXXLD)$(compact8_acceptor_fst_la_LINK) -rpath $(libfstdir) $(compact8_acceptor_fst_la_OBJECTS) $(compact8_acceptor_fst_la_LIBADD) $(LIBS)
|
||||
|
||||
compact8_string-fst.la: $(compact8_string_fst_la_OBJECTS) $(compact8_string_fst_la_DEPENDENCIES) $(EXTRA_compact8_string_fst_la_DEPENDENCIES)
|
||||
$(AM_V_CXXLD)$(compact8_string_fst_la_LINK) -rpath $(libfstdir) $(compact8_string_fst_la_OBJECTS) $(compact8_string_fst_la_LIBADD) $(LIBS)
|
||||
|
||||
compact8_unweighted-fst.la: $(compact8_unweighted_fst_la_OBJECTS) $(compact8_unweighted_fst_la_DEPENDENCIES) $(EXTRA_compact8_unweighted_fst_la_DEPENDENCIES)
|
||||
$(AM_V_CXXLD)$(compact8_unweighted_fst_la_LINK) -rpath $(libfstdir) $(compact8_unweighted_fst_la_OBJECTS) $(compact8_unweighted_fst_la_LIBADD) $(LIBS)
|
||||
|
||||
compact8_unweighted_acceptor-fst.la: $(compact8_unweighted_acceptor_fst_la_OBJECTS) $(compact8_unweighted_acceptor_fst_la_DEPENDENCIES) $(EXTRA_compact8_unweighted_acceptor_fst_la_DEPENDENCIES)
|
||||
$(AM_V_CXXLD)$(compact8_unweighted_acceptor_fst_la_LINK) -rpath $(libfstdir) $(compact8_unweighted_acceptor_fst_la_OBJECTS) $(compact8_unweighted_acceptor_fst_la_LIBADD) $(LIBS)
|
||||
|
||||
compact8_weighted_string-fst.la: $(compact8_weighted_string_fst_la_OBJECTS) $(compact8_weighted_string_fst_la_DEPENDENCIES) $(EXTRA_compact8_weighted_string_fst_la_DEPENDENCIES)
|
||||
$(AM_V_CXXLD)$(compact8_weighted_string_fst_la_LINK) -rpath $(libfstdir) $(compact8_weighted_string_fst_la_OBJECTS) $(compact8_weighted_string_fst_la_LIBADD) $(LIBS)
|
||||
|
||||
libfstcompact.la: $(libfstcompact_la_OBJECTS) $(libfstcompact_la_DEPENDENCIES) $(EXTRA_libfstcompact_la_DEPENDENCIES)
|
||||
$(AM_V_CXXLD)$(libfstcompact_la_LINK) -rpath $(libdir) $(libfstcompact_la_OBJECTS) $(libfstcompact_la_LIBADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compact16_acceptor-fst.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compact16_string-fst.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compact16_unweighted-fst.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compact16_unweighted_acceptor-fst.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compact16_weighted_string-fst.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compact64_acceptor-fst.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compact64_string-fst.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compact64_unweighted-fst.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compact64_unweighted_acceptor-fst.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compact64_weighted_string-fst.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compact8_acceptor-fst.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compact8_string-fst.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compact8_unweighted-fst.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compact8_unweighted_acceptor-fst.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compact8_weighted_string-fst.Plo@am__quote@
|
||||
|
||||
.cc.o:
|
||||
@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
|
||||
@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
|
||||
@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
|
||||
|
||||
.cc.obj:
|
||||
@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
|
||||
@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
|
||||
@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
||||
|
||||
.cc.lo:
|
||||
@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
|
||||
@am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
|
||||
@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
ID: $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); mkid -fID $$unique
|
||||
tags: tags-am
|
||||
TAGS: tags
|
||||
|
||||
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
set x; \
|
||||
here=`pwd`; \
|
||||
$(am__define_uniq_tagged_files); \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi
|
||||
ctags: ctags-am
|
||||
|
||||
CTAGS: ctags
|
||||
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
||||
$(am__define_uniq_tagged_files); \
|
||||
test -z "$(CTAGS_ARGS)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__cd) $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) "$$here"
|
||||
cscopelist: cscopelist-am
|
||||
|
||||
cscopelist-am: $(am__tagged_files)
|
||||
list='$(am__tagged_files)'; \
|
||||
case "$(srcdir)" in \
|
||||
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
||||
*) sdir=$(subdir)/$(srcdir) ;; \
|
||||
esac; \
|
||||
for i in $$list; do \
|
||||
if test -f "$$i"; then \
|
||||
echo "$(subdir)/$$i"; \
|
||||
else \
|
||||
echo "$$sdir/$$i"; \
|
||||
fi; \
|
||||
done >> $(top_builddir)/cscope.files
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(LTLIBRARIES)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(libfstdir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libLTLIBRARIES clean-libfstLTLIBRARIES \
|
||||
clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-compile distclean-generic \
|
||||
distclean-tags
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-libfstLTLIBRARIES
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am: install-libLTLIBRARIES
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||
mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-libLTLIBRARIES uninstall-libfstLTLIBRARIES
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
|
||||
clean-libLTLIBRARIES clean-libfstLTLIBRARIES clean-libtool \
|
||||
cscopelist-am ctags ctags-am distclean distclean-compile \
|
||||
distclean-generic distclean-libtool distclean-tags distdir dvi \
|
||||
dvi-am html html-am info info-am install install-am \
|
||||
install-data install-data-am install-dvi install-dvi-am \
|
||||
install-exec install-exec-am install-html install-html-am \
|
||||
install-info install-info-am install-libLTLIBRARIES \
|
||||
install-libfstLTLIBRARIES install-man install-pdf \
|
||||
install-pdf-am install-ps install-ps-am install-strip \
|
||||
installcheck installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||
tags tags-am uninstall uninstall-am uninstall-libLTLIBRARIES \
|
||||
uninstall-libfstLTLIBRARIES
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/fst.h>
|
||||
#include <fst/compact-fst.h>
|
||||
|
||||
namespace fst {
|
||||
|
||||
static FstRegisterer<CompactAcceptorFst<StdArc, uint16>>
|
||||
CompactAcceptorFst_StdArc_uint16_registerer;
|
||||
|
||||
static FstRegisterer<CompactAcceptorFst<LogArc, uint16>>
|
||||
CompactAcceptorFst_LogArc_uint16_registerer;
|
||||
|
||||
static FstRegisterer<CompactAcceptorFst<Log64Arc, uint16>>
|
||||
CompactAcceptorFst_Log64Arc_uint16_registerer;
|
||||
|
||||
} // namespace fst
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/fst.h>
|
||||
#include <fst/compact-fst.h>
|
||||
|
||||
namespace fst {
|
||||
|
||||
static FstRegisterer<CompactStringFst<StdArc, uint16>>
|
||||
CompactStringFst_StdArc_uint16_registerer;
|
||||
|
||||
static FstRegisterer<CompactStringFst<LogArc, uint16>>
|
||||
CompactStringFst_LogArc_uint16_registerer;
|
||||
|
||||
static FstRegisterer<CompactStringFst<Log64Arc, uint16>>
|
||||
CompactStringFst_Log64Arc_uint16_registerer;
|
||||
|
||||
} // namespace fst
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/fst.h>
|
||||
#include <fst/compact-fst.h>
|
||||
|
||||
namespace fst {
|
||||
|
||||
static FstRegisterer<CompactUnweightedFst<StdArc, uint16>>
|
||||
CompactUnweightedFst_StdArc_uint16_registerer;
|
||||
|
||||
static FstRegisterer<CompactUnweightedFst<LogArc, uint16>>
|
||||
CompactUnweightedFst_LogArc_uint16_registerer;
|
||||
|
||||
static FstRegisterer<CompactUnweightedFst<Log64Arc, uint16>>
|
||||
CompactUnweightedFst_Log64Arc_uint16_registerer;
|
||||
|
||||
|
||||
} // namespace fst
|
||||
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/fst.h>
|
||||
#include <fst/compact-fst.h>
|
||||
|
||||
namespace fst {
|
||||
|
||||
static FstRegisterer<
|
||||
CompactUnweightedAcceptorFst<StdArc, uint16>>
|
||||
CompactUnweightedAcceptorFst_StdArc_uint16_registerer;
|
||||
|
||||
static FstRegisterer<
|
||||
CompactUnweightedAcceptorFst<LogArc, uint16>>
|
||||
CompactUnweightedAcceptorFst_LogArc_uint16_registerer;
|
||||
|
||||
static FstRegisterer<
|
||||
CompactUnweightedAcceptorFst<Log64Arc, uint16>>
|
||||
CompactUnweightedAcceptorFst_Log64Arc_uint16_registerer;
|
||||
|
||||
} // namespace fst
|
||||
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/fst.h>
|
||||
#include <fst/compact-fst.h>
|
||||
|
||||
namespace fst {
|
||||
|
||||
static FstRegisterer<
|
||||
CompactWeightedStringFst<StdArc, uint16>>
|
||||
CompactWeightedStringFst_StdArc_uint16_registerer;
|
||||
|
||||
static FstRegisterer<
|
||||
CompactWeightedStringFst<LogArc, uint16>>
|
||||
CompactWeightedStringFst_LogArc_uint16_registerer;
|
||||
|
||||
static FstRegisterer<
|
||||
CompactWeightedStringFst<Log64Arc, uint16>>
|
||||
CompactWeightedStringFst_Log64Arc_uint16_registerer;
|
||||
|
||||
} // namespace fst
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/fst.h>
|
||||
#include <fst/compact-fst.h>
|
||||
|
||||
namespace fst {
|
||||
|
||||
static FstRegisterer<CompactAcceptorFst<StdArc, uint64>>
|
||||
CompactAcceptorFst_StdArc_uint64_registerer;
|
||||
|
||||
static FstRegisterer<CompactAcceptorFst<LogArc, uint64>>
|
||||
CompactAcceptorFst_LogArc_uint64_registerer;
|
||||
|
||||
static FstRegisterer<CompactAcceptorFst<Log64Arc, uint64>>
|
||||
CompactAcceptorFst_Log64Arc_uint64_registerer;
|
||||
|
||||
} // namespace fst
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/fst.h>
|
||||
#include <fst/compact-fst.h>
|
||||
|
||||
namespace fst {
|
||||
|
||||
static FstRegisterer<CompactStringFst<StdArc, uint64>>
|
||||
CompactStringFst_StdArc_uint64_registerer;
|
||||
|
||||
static FstRegisterer<CompactStringFst<LogArc, uint64>>
|
||||
CompactStringFst_LogArc_uint64_registerer;
|
||||
|
||||
static FstRegisterer<CompactStringFst<Log64Arc, uint64>>
|
||||
CompactStringFst_Log64Arc_uint64_registerer;
|
||||
|
||||
} // namespace fst
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/fst.h>
|
||||
#include <fst/compact-fst.h>
|
||||
|
||||
namespace fst {
|
||||
|
||||
static FstRegisterer<CompactUnweightedFst<StdArc, uint64>>
|
||||
CompactUnweightedFst_StdArc_uint64_registerer;
|
||||
|
||||
static FstRegisterer<CompactUnweightedFst<LogArc, uint64>>
|
||||
CompactUnweightedFst_LogArc_uint64_registerer;
|
||||
|
||||
static FstRegisterer<CompactUnweightedFst<Log64Arc, uint64>>
|
||||
CompactUnweightedFst_Log64Arc_uint64_registerer;
|
||||
|
||||
} // namespace fst
|
||||
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/fst.h>
|
||||
#include <fst/compact-fst.h>
|
||||
|
||||
namespace fst {
|
||||
|
||||
static FstRegisterer<
|
||||
CompactUnweightedAcceptorFst<StdArc, uint64>>
|
||||
CompactUnweightedAcceptorFst_StdArc_uint64_registerer;
|
||||
|
||||
static FstRegisterer<
|
||||
CompactUnweightedAcceptorFst<LogArc, uint64>>
|
||||
CompactUnweightedAcceptorFst_LogArc_uint64_registerer;
|
||||
|
||||
static FstRegisterer<
|
||||
CompactUnweightedAcceptorFst<Log64Arc, uint64>>
|
||||
CompactUnweightedAcceptorFst_Log64Arc_uint64_registerer;
|
||||
|
||||
} // namespace fst
|
||||
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/fst.h>
|
||||
#include <fst/compact-fst.h>
|
||||
|
||||
namespace fst {
|
||||
|
||||
static FstRegisterer<
|
||||
CompactWeightedStringFst<StdArc, uint64>>
|
||||
CompactWeightedStringFst_StdArc_uint64_registerer;
|
||||
|
||||
static FstRegisterer<
|
||||
CompactWeightedStringFst<LogArc, uint64>>
|
||||
CompactWeightedStringFst_LogArc_uint64_registerer;
|
||||
|
||||
static FstRegisterer<
|
||||
CompactWeightedStringFst<Log64Arc, uint64>>
|
||||
CompactWeightedStringFst_Log64Arc_uint64_registerer;
|
||||
|
||||
} // namespace fst
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/fst.h>
|
||||
#include <fst/compact-fst.h>
|
||||
|
||||
namespace fst {
|
||||
|
||||
static FstRegisterer<CompactAcceptorFst<StdArc, uint8>>
|
||||
CompactAcceptorFst_StdArc_uint8_registerer;
|
||||
|
||||
static FstRegisterer<CompactAcceptorFst<LogArc, uint8>>
|
||||
CompactAcceptorFst_LogArc_uint8_registerer;
|
||||
|
||||
static FstRegisterer<CompactAcceptorFst<Log64Arc, uint8>>
|
||||
CompactAcceptorFst_Log64Arc_uint8_registerer;
|
||||
|
||||
} // namespace fst
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/fst.h>
|
||||
#include <fst/compact-fst.h>
|
||||
|
||||
namespace fst {
|
||||
|
||||
static FstRegisterer<CompactStringFst<StdArc, uint8>>
|
||||
CompactStringFst_StdArc_uint8_registerer;
|
||||
|
||||
static FstRegisterer<CompactStringFst<LogArc, uint8>>
|
||||
CompactStringFst_LogArc_uint8_registerer;
|
||||
|
||||
static FstRegisterer<CompactStringFst<Log64Arc, uint8>>
|
||||
CompactStringFst_Log64Arc_uint8_registerer;
|
||||
|
||||
} // namespace fst
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// See www.openfst.org for extensive documentation on this weighted
|
||||
// finite-state transducer library.
|
||||
|
||||
#include <fst/fst.h>
|
||||
#include <fst/compact-fst.h>
|
||||
|
||||
namespace fst {
|
||||
|
||||
static FstRegisterer<CompactUnweightedFst<StdArc, uint8>>
|
||||
CompactUnweightedFst_StdArc_uint8_registerer;
|
||||
|
||||
static FstRegisterer<CompactUnweightedFst<LogArc, uint8>>
|
||||
CompactUnweightedFst_LogArc_uint8_registerer;
|
||||
|
||||
static FstRegisterer<CompactUnweightedFst<Log64Arc, uint8>>
|
||||
CompactUnweightedFst_Log64Arc_uint8_registerer;
|
||||
|
||||
} // namespace fst
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user