Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'phrase-extract/extract-ghkm/Alignment.cpp')
-rw-r--r--phrase-extract/extract-ghkm/Alignment.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/phrase-extract/extract-ghkm/Alignment.cpp b/phrase-extract/extract-ghkm/Alignment.cpp
index ba89a1594..9293a07cf 100644
--- a/phrase-extract/extract-ghkm/Alignment.cpp
+++ b/phrase-extract/extract-ghkm/Alignment.cpp
@@ -27,6 +27,8 @@
namespace MosesTraining
{
+namespace Syntax
+{
namespace GHKM
{
@@ -44,7 +46,7 @@ void ReadAlignment(const std::string &s, Alignment &a)
}
int src = std::atoi(s.substr(begin, end-begin).c_str());
if (end+1 == s.size()) {
- throw Syntax::Exception("Target index missing");
+ throw Exception("Target index missing");
}
begin = end+1;
@@ -70,4 +72,5 @@ void FlipAlignment(Alignment &a)
}
} // namespace GHKM
+} // namespace Syntax
} // namespace MosesTraining