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

CooccurrencesFilter.groovy (revision 479)
4 4
import org.txm.Toolbox
5 5
import org.txm.searchengine.cqp.corpus.*
6 6
import org.txm.searchengine.cqp.corpus.query.*
7
import org.txm.cooccurrence.core.functions.Cooccurrence
7 8
import org.txm.functions.cooccurrences.*
8 9

  
9 10
//////////// PARAMETERS ////////////
10
def corpus = CorpusManager.getCorpusManager().getCorpus("DISCOURS")
11
def corpus = CorpusManager.getCorpusManager().getCorpus("VOEUX")
11 12

  
12 13
def word = corpus.getProperty("word")
13
def pos = corpus.getProperty("pos")
14
def pos = corpus.getProperty("frpos")
14 15
def viewprops = [word, pos]
15 16

  
16 17
def query = new Query(Query.fixQuery("je"))
......
35 36

  
36 37
println "computing cooc lines..."
37 38
long time = System.currentTimeMillis()
38
//TODO temporary commented
39
//def cooccurrence = new Cooccurrence(corpus, query, viewprops, limit, maxleft, minleft, minleft, maxright, minf,mincof, minscore, includeXpivot, buildLTWithOnlyCooccurrents)
39
def cooccurrence = new Cooccurrence(corpus, query, viewprops, limit, maxleft, minleft, minleft, maxright, minf,mincof, minscore, includeXpivot, buildLTWithOnlyCooccurrents)
40 40
cooccurrence.process();
41 41
println("Compute time : "+(System.currentTimeMillis()-time)+" ms")
42 42

  

Also available in: Unified diff