diff options
Diffstat (limited to 'src/include/fst/compose.h')
-rw-r--r-- | src/include/fst/compose.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/include/fst/compose.h b/src/include/fst/compose.h index dfdff0a..db5ea3a 100644 --- a/src/include/fst/compose.h +++ b/src/include/fst/compose.h @@ -122,7 +122,7 @@ class ComposeFstImplBase : public CacheImpl<A> { ComposeFstImplBase(const Fst<A> &fst1, const Fst<A> &fst2, const CacheOptions &opts) - :CacheImpl<A>(opts) { + : CacheImpl<A>(opts) { VLOG(2) << "ComposeFst(" << this << "): Begin"; SetType("compose"); @@ -137,7 +137,7 @@ class ComposeFstImplBase : public CacheImpl<A> { } ComposeFstImplBase(const ComposeFstImplBase<A> &impl) - : CacheImpl<A>(impl) { + : CacheImpl<A>(impl, true) { SetProperties(impl.Properties(), kCopyProperties); SetInputSymbols(impl.InputSymbols()); SetOutputSymbols(impl.OutputSymbols()); @@ -275,6 +275,13 @@ class ComposeFstImpl : public ComposeFstImplBase<typename M1::Arc> { OrderedExpand(s, fst2_, s2, fst1_, s1, matcher2_, true); } + const FST1 &GetFst1() { return fst1_; } + const FST2 &GetFst2() { return fst2_; } + M1 *GetMatcher1() { return matcher1_; } + M2 *GetMatcher2() { return matcher2_; } + F *GetFilter() { return filter_; } + T *GetStateTable() { return state_table_; } + private: // This does that actual matching of labels in the composition. The // arguments are ordered so matching is called on state 'sa' of |