Revision 2930 tmp/org.txm.tigersearch.rcp/groovy/org/txm/macro/tiger/exploit/TIGERSVOSummaryMacro.groovy

TIGERSVOSummaryMacro.groovy (revision 2930)
102 102
	return
103 103
}
104 104
while (reader.readRecord()) {
105
	if (reader.get("mesure").length() > 0 && reader.get("valeur").length() > 0 && reader.get("requête").length() > 0) {
105 106
	test_queries << [
106 107
		reader.get("mesure"),
107 108
		reader.get("valeur"),
108 109
		reader.get("requête")
109 110
	]
111
	}
110 112
}
111 113

  
112 114
if (test_queries.size() == 0) {
......
114 116
	return null;
115 117
}
116 118

  
117
ConsoleProgressBar cpb = new ConsoleProgressBar(selection.size())
119
ConsoleProgressBar cpb = new ConsoleProgressBar(selection.size()*SVO_queries.size()*test_queries.size())
120
println "Resolving ${test_queries.size()*SVO_queries.size()} queries for ${selection.size()} corpus."
121
println "selection=$selection"
122
println "test_queries=$test_queries"
123
println "SVO_queries=$SVO_queries"
118 124

  
119 125
TIGERSearchEngine tse = SearchEnginesManager.getTIGERSearchEngine()
120 126
def results = new LinkedHashMap()
121 127
for (def corpus : selection) {
122
	cpb.tick()
123 128
	
124 129
	writer.newTable(corpus.getName())
125 130
	
......
153 158
			
154 159
			if (debug > 0) println svo_query
155 160
			
161
			cpb.tick()
162
			
156 163
			def test_result = tcorpus.manager.processQuery(svo_query, based_sentences_min_max[0], based_sentences_min_max[1], 9999999);
157 164
			if (print_queries) lineToWrite << svo_query
158 165
			if (count_sub_matches) {

Also available in: Unified diff