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:
authorHieu Hoang <fishandfrolick@gmail.com>2012-07-02 20:05:11 +0400
committerHieu Hoang <fishandfrolick@gmail.com>2012-07-02 20:05:11 +0400
commit75e038f4cf99c76751c479cd30607489a61bbf3b (patch)
tree3b2051b6a3059e9f5b0279167ba2dd3ab4826124 /phrase-extract
parentb5aa04feb78d848ae0d6a28d41d6212651ca38bb (diff)
create namespace for all classes
Diffstat (limited to 'phrase-extract')
-rw-r--r--phrase-extract/XmlException.h5
-rw-r--r--phrase-extract/statistics.cpp5
2 files changed, 10 insertions, 0 deletions
diff --git a/phrase-extract/XmlException.h b/phrase-extract/XmlException.h
index 15ee91f20..08038a423 100644
--- a/phrase-extract/XmlException.h
+++ b/phrase-extract/XmlException.h
@@ -22,6 +22,9 @@
#include <string>
+namespace MosesTraining
+{
+
class XmlException
{
public:
@@ -38,4 +41,6 @@ private:
std::string m_msg;
};
+}
+
#endif
diff --git a/phrase-extract/statistics.cpp b/phrase-extract/statistics.cpp
index fbbc77345..d39a05d3b 100644
--- a/phrase-extract/statistics.cpp
+++ b/phrase-extract/statistics.cpp
@@ -21,6 +21,9 @@ using namespace MosesTraining;
#define LINE_MAX_LENGTH 10000
+namespace MosesTraining
+{
+
class PhraseAlignment
{
public:
@@ -40,6 +43,8 @@ public:
void load( char[] );
};
+}
+
void processPhrasePairs( vector< PhraseAlignment > & );
ofstream phraseTableFile;