xml parsing for source syntax

This commit is contained in:
Hieu Hoang 2014-02-26 18:26:56 +00:00
parent 1e5cd16fbf
commit 58fbfa39db
2 changed files with 9 additions and 0 deletions

View File

@ -6,6 +6,7 @@
*/
#include "AlignedSentenceSyntax.h"
#include "pugixml.hpp"
AlignedSentenceSyntax::AlignedSentenceSyntax(const std::string &source,
const std::string &target,
@ -20,3 +21,9 @@ AlignedSentenceSyntax::~AlignedSentenceSyntax() {
// TODO Auto-generated destructor stub
}
void AlignedSentenceSyntax::CreateConsistentPhrases(const Parameter &params)
{
pugi::xml_document doc;
pugi::xml_parse_result result = doc.load_file("tree.xml");
}

View File

@ -17,6 +17,8 @@ public:
const std::string &target,
const std::string &alignment);
virtual ~AlignedSentenceSyntax();
void CreateConsistentPhrases(const Parameter &params);
};
#endif /* ALIGNEDSENTENCESYNTAX_H_ */