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:
authorredpony <redpony@ca354974-eb3a-0410-8f5c-d3948404989b>2010-11-01 01:52:29 +0300
committerredpony <redpony@ca354974-eb3a-0410-8f5c-d3948404989b>2010-11-01 01:52:29 +0300
commit714bd45a62935606930b7358d4de6fafbf1dabc1 (patch)
tree7698d7e29342e900dc7357c1862720a35533ac53
parenta50e24fc485d6aeae19ff000977263b3adbe7e76 (diff)
enable dictionary
-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;