Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
leven101 committed Jul 19, 2011
1 parent 8cac27a commit 112d8a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions GIZA++-v2/hmm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ int hmm::em_with_tricks(int noIterations, string& alignFile)
afileh = Prefix + ".h" + shortModelName + "." + number ;
alignfile = Prefix + ".A" + shortModelName + "." + number ;
test_alignfile = Prefix + ".tst.A" + shortModelName + "." + number ;
// (old) each iteration gets a new count table
//counts=HMMTables<int,WordClasses>(GLOBALProbabilityForEmpty,ewordclasses,fwordclasses);
// batch EM: each iteration gets a new count table
if(step_k == 0)
counts=HMMTables<int,WordClasses>(GLOBALProbabilityForEmpty,ewordclasses,fwordclasses);
aCountTable.clear();
initAL();
em_loop(perp, sHandler1, dump_files , alignfile.c_str(), trainViterbiPerp, false,it==1,it);
Expand Down
Binary file modified GIZA++-v2/plain2snt.out
Binary file not shown.

0 comments on commit 112d8a9

Please sign in to comment.