diff options
author | Matthias Huck <huck@i6.informatik.rwth-aachen.de> | 2014-06-11 22:27:18 +0400 |
---|---|---|
committer | Matthias Huck <huck@i6.informatik.rwth-aachen.de> | 2014-06-11 22:27:18 +0400 |
commit | d0e92da7340ae1c46c4eaa41f52bf5eaaf47961c (patch) | |
tree | aff4ce24eca81443c7c11181d08f380966355c1e /phrase-extract/extract-ghkm/XmlTreeParser.h | |
parent | 02848112d8bd2bc16114ad7b0dff465f083e0d4b (diff) |
GHKM extraction can add a source labels phrase property
Diffstat (limited to 'phrase-extract/extract-ghkm/XmlTreeParser.h')
-rw-r--r-- | phrase-extract/extract-ghkm/XmlTreeParser.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/phrase-extract/extract-ghkm/XmlTreeParser.h b/phrase-extract/extract-ghkm/XmlTreeParser.h index d00fd7d9f..e5bf5b463 100644 --- a/phrase-extract/extract-ghkm/XmlTreeParser.h +++ b/phrase-extract/extract-ghkm/XmlTreeParser.h @@ -45,9 +45,11 @@ class XmlTreeParser public: XmlTreeParser(std::set<std::string> &, std::map<std::string, int> &); std::auto_ptr<ParseTree> Parse(const std::string &); + + static std::auto_ptr<ParseTree> ConvertTree(const MosesTraining::SyntaxNode &, + const std::vector<std::string> &); + private: - std::auto_ptr<ParseTree> ConvertTree(const MosesTraining::SyntaxNode &, - const std::vector<std::string> &); std::set<std::string> &m_labelSet; std::map<std::string, int> &m_topLabelSet; |