Statistics
| Revision:

root / tmp / org.txm.groovy.core / src / groovy / org / txm / test / ParaContexts.groovy @ 352

History | View | Annotate | Download (770 Bytes)

1
package org.txm.test
2

    
3
import java.util.ArrayList;
4

    
5
import org.txm.para.functions.ParallelContexts;
6
import org.txm.searchengine.cqp.corpus.Corpus;
7
import org.txm.Toolbox
8
import org.txm.searchengine.cqp.corpus.*
9
import org.txm.searchengine.cqp.corpus.query.*
10

    
11

    
12
ArrayList<String> queries = ["je", "je"]
13
String struct = "text_id"
14
ArrayList<Corpus> corpora = ["QGRAAL", "QGRAAL"]
15
ArrayList<String> props = ["word", "frlemma"]
16
ArrayList<String> refs = ["text_id", "text_titre"]
17
ArrayList<Integer> CGs = [30, 10]
18
ArrayList<Integer> CDs = [10, 1]
19
ArrayList<Boolean> participates = [true, true]
20

    
21
ParallelContexts ctx = new ParallelContexts();
22

    
23
println "starts-ends: "+ctx.getKeywordsStartsEnds()
24
println "keywords: "+ctx.getKeywordsStrings()
25
println "seg keys; "+ctx.getSegKeys()