diff options
author | Christian Buck <cbuck@lantis.de> | 2013-04-12 22:43:53 +0400 |
---|---|---|
committer | Christian Buck <cbuck@lantis.de> | 2013-04-12 22:43:53 +0400 |
commit | bb5d70fc7cdf864f1594e70260633242fb49af26 (patch) | |
tree | f7d31dff6852c1960a81cefec2e98a7374ede8bf /moses/Util.h | |
parent | 9c2c6c603b9f4a37d0e6a4004b11067dc8d58b7f (diff) |
integrated xml passthrough handling (by Nicola Bertoldi)
Diffstat (limited to 'moses/Util.h')
-rw-r--r-- | moses/Util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/moses/Util.h b/moses/Util.h index 6f485a623..c2d1ecef4 100644 --- a/moses/Util.h +++ b/moses/Util.h @@ -344,6 +344,8 @@ double GetUserTime(); // dump SGML parser for <seg> tags std::map<std::string, std::string> ProcessAndStripSGML(std::string &line); +std::string PassthroughSGML(std::string &line, const std::string tagName,const std::string& lbrackStr="<", const std::string& rbrackStr=">"); + /** * Returns the first string bounded by the delimiters (default delimiters are " " and "\t")i starting from position first_pos * and and stores the starting position of the next string (in first_str) @@ -383,6 +385,7 @@ T log_sum (T log_a, T log_b) return ( v ); } + } #endif |