Revision 2167 tmp/org.txm.analec.rcp/src/org/txm/macro/urs/exploit/UnitsIndexMacro.groovy

UnitsIndexMacro.groovy (revision 2167)
173 173
else println "Index de la propriété $unit_property_display des unités $unit_ursql[$position_in_matches] de ${corpus.getMainCorpus()}.${corpusViewSelection}"
174 174
println "$unit_property_display\t"+selection.join("\t")
175 175

  
176
int total_freq = 0
177 176
keys.eachWithIndex { prop_val, i ->
178 177
	String line = ""
179 178
	if (prop_val.size() > 0) {
......
189 188

  
190 189
		matrix.set(i, j, freq)
191 190
		line += "\t"+freq
192
		total_freq += freq
193 191
		if (min < freq) min = freq
194 192
	}
195 193
	if (min >= output_fmin)
196 194
		println "$line"
197 195
}
198
println "\nTOTAL=$total_freq"
199 196
props = keys
200 197

  
201 198
def r = RWorkspace.getRWorkspaceInstance()

Also available in: Unified diff