Revision 479 tmp/org.txm.groovy.core/src/groovy/org/txm/export/exportCA.groovy

exportCA.groovy (revision 479)
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.*;
5
import org.txm.ca.core.functions.CA
6 6
import org.txm.functions.ca.*
7 7

  
8
String moncorpus = "DISCOURS"
8
String moncorpus = "VOEUX"
9 9
String mapartition = "texts"
10 10

  
11 11

  
......
14 14

  
15 15
for(Object o : partition.getResults())
16 16
{
17
//	if(o instanceof CA)	{		
18
		def ca = o;
17
	if(o instanceof CA)
18
	{
19
		CA ca = ((CA)o);
19 20
		File colinfosfile = new File(ca.getName()+"_colinfosfile.txt");
20 21
		File rowinfosfile = new File(ca.getName()+"_rowinfosfile.txt");
21 22
	
......
23 24
		ca.exportColInfos(colinfosfile, "UTF-8", "\t", "")
24 25
		ca.exportRowInfos(rowinfosfile, "UTF-8", "\t", "")
25 26
		
26
		println ca.getName()+" exported in : "+rowinfosfile.getAbsolutePath()+" and "+colinfosfile.getAbsolutePath()
27
//	}
27
		println CA.getName()+" exported in : "+rowinfosfile.getAbsolutePath()+" and "+colinfosfile.getAbsolutePath()
28
	}
28 29
}

Also available in: Unified diff