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

github.com/moses-smt/salm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Utils/InitializeVocabulary.cpp')
-rwxr-xr-xSrc/Utils/InitializeVocabulary.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/Src/Utils/InitializeVocabulary.cpp b/Src/Utils/InitializeVocabulary.cpp
new file mode 100755
index 0000000..b749568
--- /dev/null
+++ b/Src/Utils/InitializeVocabulary.cpp
@@ -0,0 +1,30 @@
+#include "stdio.h"
+#include "stdlib.h"
+#include "_IDVocabulary.h"
+
+#include <iostream>
+
+using namespace std;
+
+/**
+* \ingroup utils
+* Intialize an empty vocabulary with reserved words
+*
+* Revision $Rev: 3794 $
+* Last Modified $LastChangedDate: 2007-06-29 02:17:32 -0400 (Fri, 29 Jun 2007) $
+**/
+int main(int argc, char * argv[]){
+ if(argc<2){
+ cerr<<"\nUsage:";
+ cerr<<"\n\t"<<argv[0]<<" vocabularyFileName\n\n";
+ exit(0);
+ }
+
+ C_IDVocabulary voc;
+
+ voc.addingReservedWords();
+ voc.outputToFile(argv[1]);
+
+ return 0;
+
+}