[irstlm] 46/126: code cleanup

Giulio Paci giuliopaci-guest at moszumanska.debian.org
Tue May 17 07:46:43 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 1abeee54563d8cd0dd7f17f33c0e02389ac13f35
Author: Nicola Bertoldi <bertoldi at fbk.eu>
Date:   Thu Aug 6 09:14:05 2015 +0200

    code cleanup
---
 src/context-dependent-evaluation.cpp | 6 +++---
 src/context-similarity.cpp           | 3 ---
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/context-dependent-evaluation.cpp b/src/context-dependent-evaluation.cpp
index e8e48c8..71b6c85 100644
--- a/src/context-dependent-evaluation.cpp
+++ b/src/context-dependent-evaluation.cpp
@@ -170,7 +170,7 @@ int main(int argc, char **argv)
 			
 			std::string line_str = line;
 			
-			VERBOSE(1,"input_line:|" << line_str << "|" << std::endl);	
+			VERBOSE(2,"input_line:|" << line_str << "|" << std::endl);	
 			
 			//getting sentence string;
 			std::string sentence;
@@ -178,8 +178,8 @@ int main(int argc, char **argv)
 			
 			
 			((lmContextDependent*) lmt)->GetSentenceAndContext(sentence,context,line_str);
-			VERBOSE(1,"sentence:|" << sentence << "|" << std::endl);	
-			VERBOSE(1,"context:|" << context << "|" << std::endl);
+			VERBOSE(2,"sentence:|" << sentence << "|" << std::endl);	
+			VERBOSE(2,"context:|" << context << "|" << std::endl);
 			
 			//getting apriori topic weights
 			topic_map_t apriori_topic_map;
diff --git a/src/context-similarity.cpp b/src/context-similarity.cpp
index 6cdd406..0c84501 100644
--- a/src/context-similarity.cpp
+++ b/src/context-similarity.cpp
@@ -149,8 +149,6 @@ namespace irstlm {
 	
 	void ContextSimilarity::setContextMap(topic_map_t& topic_map, const std::string& context){
 		
-		VERBOSE(0,"context:|" << context << "|" << std::endl);
-		
 		string_vec_t topic_weight_vec;
 		string_vec_t topic_weight;
 		
@@ -165,7 +163,6 @@ namespace irstlm {
 			topic_map[topic_weight.at(0)] = strtod (topic_weight.at(1).c_str(), NULL);
 			topic_weight.clear();
 		}
-		VERBOSE(0,"found " << topic_map.size() << " entries in the context" << std::endl);
 	}
 	
 	void ContextSimilarity::create_ngram(const string_vec_t& text, ngram& num_ng, ngram& den_ng)

-- 
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