[irstlm] 84/126: bug fixed

Giulio Paci giuliopaci-guest at moszumanska.debian.org
Tue May 17 07:46:47 UTC 2016


This is an automated email from the git hooks/post-receive script.

giuliopaci-guest pushed a commit to annotated tag adaptiveLM.v0.1
in repository irstlm.

commit 0986df428138d614236b513cc7b38aec25b55671
Author: Nicola Bertoldi <bertoldi at fbk.eu>
Date:   Tue Sep 15 19:48:40 2015 +0200

    bug fixed
---
 src/context-dependent-evaluation.cpp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/context-dependent-evaluation.cpp b/src/context-dependent-evaluation.cpp
index 8fa61d2..8071c66 100644
--- a/src/context-dependent-evaluation.cpp
+++ b/src/context-dependent-evaluation.cpp
@@ -763,9 +763,6 @@ int main(int argc, char **argv)
 				  std::string w1, w2;
 					while (inp >> w1 >> w2){
 						lexicon.insert(make_pair(w1,w2));
-						lexicon.insert(make_pair(w2,w1));
-						lexicon.insert(make_pair(w1,w1));
-						lexicon.insert(make_pair(w2,w2));
 					}
 					//loop over a set of selected alternative words
 					//populate the dictionary with all words associated with the current word
@@ -804,7 +801,7 @@ int main(int argc, char **argv)
 						
 						VERBOSE(3," current_pos:" << current_pos << " word:|" << tmp_word_vec.at(current_pos) << "| current_pr:" << current_pr << " pr:" << pr << " current_rank:" << current_rank <<std::endl);
 					}
-					
+					delete current_dict;
 					/* loop over the whole dictionary
 					int current_rank = 1;
 					//computation of the ranking of the current word (among all LM words)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/irstlm.git



More information about the debian-science-commits mailing list