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

github.com/moses-smt/giza-pp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'GIZA++-v2/main.cpp')
-rw-r--r--GIZA++-v2/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/GIZA++-v2/main.cpp b/GIZA++-v2/main.cpp
index 93e8669..d1b588f 100644
--- a/GIZA++-v2/main.cpp
+++ b/GIZA++-v2/main.cpp
@@ -83,7 +83,7 @@ GLOBAL_PARAMETER(WordIndex,MAX_FERTILITY,"MAX_FERTILITY","maximal fertility for
Vector<map< pair<int,int>,char > > ReferenceAlignment;
-bool useDict = false ;
+bool useDict = false;
string CoocurrenceFile;
string Prefix, LogFilename, OPath, Usage,
SourceVocabFilename, TargetVocabFilename, CorpusFilename,
@@ -520,6 +520,7 @@ double StartTraining(int&result)
cout << "= " << LAMBDA << '\n';
// load dictionary
Dictionary *dictionary;
+ useDict = !dictionary_Filename.empty();
if (useDict) dictionary = new Dictionary(dictionary_Filename.c_str());
else dictionary = new Dictionary("");
int minIter=0;