aboutsummaryrefslogtreecommitdiff
path: root/src/include/fst/compose.h
diff options
context:
space:
mode:
authorAlexander Gutkin <agutkin@google.com>2013-02-28 00:24:20 +0000
committerAlexander Gutkin <agutkin@google.com>2013-02-28 00:24:20 +0000
commit5b6dc79427b8f7eeb6a7ff68034ab8548ce670ea (patch)
tree19e17fc79b8873e66f211276d4dd169c480cede1 /src/include/fst/compose.h
parent3da1eb108d36da35333b2d655202791af854996b (diff)
downloadopenfst-5b6dc79427b8f7eeb6a7ff68034ab8548ce670ea.tar.gz
Bumped OpenFST implementation to openfst-1.3.3-CL41851770.
Updated OpenFST implementation to the most recent version used by Greco3 (corresponds to nlp::fst exported at Perforce CL 41851770). In particular this version has an improved PDT support. Change-Id: I5aadfc962297eef73922c67e7d57866f11ee7d81
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