Revision 148 tmp/org.txm.core/src/groovy/org/txm/export/ExportLT.groovy

ExportLT.groovy (revision 148)
2 2
import org.txm.Toolbox
3 3
import org.txm.searchengine.cqp.corpus.*
4 4
import org.txm.searchengine.cqp.corpus.query.*
5
import org.txm.stat.data.LexicalTable;
5
import org.txm.stat.data.*;
6 6
import org.txm.functions.cooccurrences.*
7 7

  
8 8

  
......
11 11

  
12 12
int NTable = 1;
13 13
for (Object o : partition.getResults()) {
14
	if (o instanceof LexicalTable) {
14
//	if (o instanceof LexicalTable) {
15 15
		File outfile = new File("lt${NTable}.txt")
16 16
		println "export LT of $partition in "+outfile.getAbsolutePath();
17 17
		NTable++;
18 18
		outfile.withWriter{writer->
19
		def lt = (LexicalTable)o;
19
		def lt = o;
20 20
		println "found lexical table: "+lt.getName()
21 21
		println "n col: "+lt.getNColumns()
22 22
		println "n line: "+lt.getNRows()
......
40 40
		
41 41
		writer.close();
42 42
		}
43
	}
43
//	}
44 44
}

Also available in: Unified diff