aboutsummaryrefslogtreecommitdiff
path: root/src/include/fst/compose.h
diff options
context:
space:
mode:
authorPrzemyslaw Szczepaniak <pszczepaniak@google.com>2013-03-04 11:30:34 +0000
committerPrzemyslaw Szczepaniak <pszczepaniak@google.com>2013-03-04 11:30:34 +0000
commit5bf56ba7027cd5f22ff52d0138893f7a585135fb (patch)
tree19e17fc79b8873e66f211276d4dd169c480cede1 /src/include/fst/compose.h
parent3da1eb108d36da35333b2d655202791af854996b (diff)
parent5b6dc79427b8f7eeb6a7ff68034ab8548ce670ea (diff)
downloadopenfst-kitkat-mr2.1-release.tar.gz
Diffstat (limited to 'src/include/fst/compose.h')
-rw-r--r--src/include/fst/compose.h11
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