#include <cassert>
#include <vector>
#include <string>
#include <set>
#include <iostream>
#include <cstdlib>
#include <sstream>
#include "SyntaxNodeCollection.h"
#include "XmlException.h"
Go to the source code of this file.
Namespaces | |
namespace | MosesTraining |
Functions | |
std::vector< std::string > | MosesTraining::Tokenize (const std::string &str, const std::string &delimiters=" \t") |
std::string | MosesTraining::Trim (const std::string &str, const std::string dropChars=" \t\n\r") |
string | MosesTraining::ParseXmlTagAttribute (const string &tag, const string &attributeName) |
void | MosesTraining::ParseXmlTagAttributes (const std::string &s, std::map< std::string, std::string > &attributes) |
string | MosesTraining::TrimXml (const string &str) |
bool | MosesTraining::isXmlTag (const string &tag) |
string | MosesTraining::unescape (const string &str) |
vector< string > | MosesTraining::TokenizeXml (const string &str) |
bool | MosesTraining::ProcessAndStripXMLTags (string &line, SyntaxNodeCollection &nodeCollection, set< string > &labelCollection, map< string, int > &topLabelCollection, bool unescapeSpecialChars) |