#include <XmlTreeParser.h>
Public Member Functions | |
XmlTreeParser (std::set< std::string > &, std::map< std::string, int > &) | |
std::auto_ptr< ParseTree > | Parse (const std::string &) |
Definition at line 43 of file XmlTreeParser.h.
Moses::GHKM::XmlTreeParser::XmlTreeParser | ( | std::set< std::string > & | labelSet, | |
std::map< std::string, int > & | topLabelSet | |||
) |
Definition at line 37 of file XmlTreeParser.cpp.
std::auto_ptr< ParseTree > Moses::GHKM::XmlTreeParser::Parse | ( | const std::string & | line | ) |
Definition at line 44 of file XmlTreeParser.cpp.
References MosesTraining::SyntaxTree::Clear(), MosesTraining::SyntaxTree::ConnectNodes(), MosesTraining::XmlException::getMsg(), MosesTraining::SyntaxTree::GetTop(), Moses::ProcessAndStripXMLTags(), and tokenize().
Referenced by Moses::GHKM::ExtractGHKM::Main().