Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'moses/Syntax/RuleTableFF.h')
-rw-r--r--moses/Syntax/RuleTableFF.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/moses/Syntax/RuleTableFF.h b/moses/Syntax/RuleTableFF.h
index 4d6132e86..25e7d8428 100644
--- a/moses/Syntax/RuleTableFF.h
+++ b/moses/Syntax/RuleTableFF.h
@@ -43,10 +43,17 @@ public:
return 0;
}
+ // Get the source terminal vocabulary for this table's grammar (as a set of
+ // factor IDs)
+ const boost::unordered_set<std::size_t> &GetSourceTerminalSet() const {
+ return m_sourceTerminalSet;
+ }
+
private:
static std::vector<RuleTableFF*> s_instances;
const RuleTable *m_table;
+ boost::unordered_set<std::size_t> m_sourceTerminalSet;
};
} // Syntax