mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-29 06:52:34 +03:00
xml parsing for source syntax
This commit is contained in:
parent
1e5cd16fbf
commit
58fbfa39db
@ -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 ¶ms)
|
||||
{
|
||||
pugi::xml_document doc;
|
||||
|
||||
pugi::xml_parse_result result = doc.load_file("tree.xml");
|
||||
}
|
||||
|
@ -17,6 +17,8 @@ public:
|
||||
const std::string &target,
|
||||
const std::string &alignment);
|
||||
virtual ~AlignedSentenceSyntax();
|
||||
|
||||
void CreateConsistentPhrases(const Parameter ¶ms);
|
||||
};
|
||||
|
||||
#endif /* ALIGNEDSENTENCESYNTAX_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user