Lines Matching defs:fst

31 #include <fst/slist.h>
36 #include <fst/arc-map.h>
37 #include <fst/cache.h>
38 #include <fst/bi-table.h>
39 #include <fst/factor-weight.h>
40 #include <fst/prune.h>
41 #include <fst/test-properties.h>
44 namespace fst {
374 DeterminizeFstImplBase(const Fst<A> &fst,
376 : CacheImpl<A>(opts), fst_(fst.Copy()) {
378 uint64 iprops = fst.Properties(kFstProperties, false);
382 SetInputSymbols(fst.InputSymbols());
383 SetOutputSymbols(fst.OutputSymbols());
472 DeterminizeFsaImpl(const Fst<A> &fst,
475 : DeterminizeFstImplBase<A>(fst, opts),
481 if (!fst.Properties(kAcceptor, true)) {
713 DeterminizeFstImpl(const Fst<A> &fst,
715 : DeterminizeFstImplBase<A>(fst, opts),
759 void Init(const Fst<A> &fst);
808 explicit DeterminizeFst(const Fst<A> &fst) {
813 if (fst.Properties(kAcceptor, true)) {
815 SetImpl(new DeterminizeFsaImpl<A, D, F, T>(fst, 0, 0, opts));
819 DeterminizeFstImpl<A, STRING_LEFT_RESTRICT, D, F, T>(fst, opts));
824 DeterminizeFst(const Fst<A> &fst,
826 if (fst.Properties(kAcceptor, true)) {
828 SetImpl(new DeterminizeFsaImpl<A, D, F, T>(fst, 0, 0, opts));
832 DeterminizeFstImpl<A, STRING_LEFT_RESTRICT, D, F, T>(fst, opts));
840 DeterminizeFst(const Fst<A> &fst,
843 if (!fst.Properties(kAcceptor, true)) {
848 SetImpl(new DeterminizeFsaImpl<A, D, F, T>(fst, in_dist, out_dist, opts));
852 DeterminizeFst(const DeterminizeFst<A> &fst, bool safe = false) {
854 SetImpl(fst.GetImpl()->Copy());
856 SetImpl(fst.GetImpl(), false);
874 void operator=(const DeterminizeFst<A> &fst); // Disallow
881 void DeterminizeFstImpl<A, S, D, F, T>::Init(const Fst<A> &fst) {
883 ToFst to_fst(fst, ToMapper());
908 explicit StateIterator(const DeterminizeFst<A> &fst)
909 : CacheStateIterator< DeterminizeFst<A> >(fst, fst.GetImpl()) {}
920 ArcIterator(const DeterminizeFst<A> &fst, StateId s)
921 : CacheArcIterator< DeterminizeFst<A> >(fst.GetImpl(), s) {
922 if (!fst.GetImpl()->HasArcs(s))
923 fst.GetImpl()->Expand(s);
1013 } // namespace fst