Statistics
| Revision:

root / tmp / org.txm.groovy.core / src / groovy / org / txm / macroproto / ZpifKeyValuesMacro.groovy @ 479

History | View | Annotate | Download (523 Bytes)

1
// STANDARD DECLARATIONS
2
package org.txm.macroproto
3

    
4
import org.kohsuke.args4j.*
5
import groovy.transform.Field
6
import org.txm.rcpapplication.swt.widget.parameters.*
7
import org.txm.functions.index.*
8
import org.txm.index.core.functions.Index
9

    
10
if (!(corpusViewSelection instanceof Index)) {
11
        println "Corpora selection is not an Index. Aborting."
12
        return
13
}
14

    
15
def lines = corpusViewSelection.getAllLines();
16
int i = 1;
17
while (i < lines.size()) {
18
        println "Order "+(i)+" -> "+lines[i-1].getFrequency()
19
        i = i*10
20
}
21

    
22
println "Done."