diff options
author | Phil Williams <philip.williams@mac.com> | 2015-02-12 16:03:26 +0300 |
---|---|---|
committer | Phil Williams <philip.williams@mac.com> | 2015-02-12 16:03:26 +0300 |
commit | 33df7fd2b4d41f7c80164c91d768a88dbc040cc3 (patch) | |
tree | 5d5e9e9ceaf2f983a14ba536b6abeec587897948 /moses/StaticData.h | |
parent | e1d60211a4b14a3f7eb090aaa70e0293ecec2437 (diff) |
Rename StaticData::IsChart() to IsSyntax() and add new SearchAlgorithm values
Diffstat (limited to 'moses/StaticData.h')
-rw-r--r-- | moses/StaticData.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/moses/StaticData.h b/moses/StaticData.h index 193f79aad..d9a96aaa3 100644 --- a/moses/StaticData.h +++ b/moses/StaticData.h @@ -436,8 +436,13 @@ public: SearchAlgorithm GetSearchAlgorithm() const { return m_searchAlgorithm; } - bool IsChart() const { - return m_searchAlgorithm == CYKPlus || m_searchAlgorithm == ChartIncremental; + bool IsSyntax() const { + return m_searchAlgorithm == CYKPlus || + m_searchAlgorithm == ChartIncremental || + m_searchAlgorithm == SyntaxS2T || + m_searchAlgorithm == SyntaxT2S || + m_searchAlgorithm == SyntaxT2S_SCFG || + m_searchAlgorithm == SyntaxF2S; } const ScoreComponentCollection& GetAllWeights() const { |