diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2012-07-02 20:05:11 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2012-07-02 20:05:11 +0400 |
commit | 75e038f4cf99c76751c479cd30607489a61bbf3b (patch) | |
tree | 3b2051b6a3059e9f5b0279167ba2dd3ab4826124 /phrase-extract | |
parent | b5aa04feb78d848ae0d6a28d41d6212651ca38bb (diff) |
create namespace for all classes
Diffstat (limited to 'phrase-extract')
-rw-r--r-- | phrase-extract/XmlException.h | 5 | ||||
-rw-r--r-- | phrase-extract/statistics.cpp | 5 |
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; |