Révision 2205
tmp/org.txm.tigersearch.rcp/groovy/org/txm/scripts/importer/tigersearch/TSImporter.groovy (revision 2205) | ||
---|---|---|
1 | 1 |
package org.txm.scripts.importer.tigersearch |
2 | 2 |
|
3 | 3 |
import org.txm.Toolbox |
4 |
import org.txm.importer.xtz.ImportModule; |
|
4 |
import org.txm.core.preferences.TBXPreferences |
|
5 |
import org.txm.importer.ApplyXsl2; |
|
6 |
import org.txm.importer.xtz.* |
|
5 | 7 |
import org.txm.metadatas.Metadatas |
8 |
import org.txm.scripts.importer.xtz.* |
|
9 |
import org.txm.utils.BundleUtils |
|
6 | 10 |
import org.txm.utils.io.FileCopy |
7 | 11 |
import org.txm.utils.io.IOUtils |
8 |
import org.txm.importer.xtz.* |
|
9 |
import org.txm.scripts.importer.xtz.* |
|
10 |
import org.txm.importer.ApplyXsl2; |
|
11 | 12 |
|
12 | 13 |
/** |
13 | 14 |
* Only build the Metadatas object since all XML-TXM files already exists. |
tmp/org.txm.tigersearch.rcp/groovy/org/txm/macro/tiger/exploit/TIGERSummaryMacro.groovy (revision 2205) | ||
---|---|---|
35 | 35 |
if (debug == "OFF") debug = 0; else if (debug == "ON") debug = 1; else if (debug == "ALL") debug = 2 else if (debug == "REALLY ALL") debug = 3 |
36 | 36 |
|
37 | 37 |
TIGERSearchEngine tse = SearchEnginesManager.getTIGERSearchEngine() |
38 |
println tse |
|
39 | 38 |
|
40 |
|
|
41 | 39 |
println "\t"+selection.join("\t") |
42 | 40 |
print "F" |
43 | 41 |
|
tmp/org.txm.tigersearch.rcp/groovy/org/txm/macro/tiger/exploit/TIGERRatioMacro.groovy (revision 2205) | ||
---|---|---|
37 | 37 |
if (debug == "OFF") debug = 0; else if (debug == "ON") debug = 1; else if (debug == "ALL") debug = 2 else if (debug == "REALLY ALL") debug = 3 |
38 | 38 |
|
39 | 39 |
|
40 |
def results_A = gse.run(TIGERMatchesMacro, ["args":["tiger_query":tiger_query_A, "count_subgraph":count_subgraph, "debug":debug],
|
|
40 |
def results_A = gse.run(TIGERSummaryMacro, ["args":["tiger_query":tiger_query_A, "count_subgraph":count_subgraph, "debug":debug],
|
|
41 | 41 |
"selection":selection, |
42 | 42 |
"selections":selections, |
43 | 43 |
"corpusViewSelection":corpusViewSelection, |
44 | 44 |
"corpusViewSelections":corpusViewSelections, |
45 | 45 |
"monitor":monitor]) |
46 | 46 |
|
47 |
def results_B = gse.run(TIGERMatchesMacro, ["args":["tiger_query":tiger_query_B, "count_subgraph":count_subgraph, "debug":debug],
|
|
47 |
def results_B = gse.run(TIGERSummaryMacro, ["args":["tiger_query":tiger_query_B, "count_subgraph":count_subgraph, "debug":debug],
|
|
48 | 48 |
"selection":selection, |
49 | 49 |
"selections":selections, |
50 | 50 |
"corpusViewSelection":corpusViewSelection, |
... | ... | |
54 | 54 |
println results_A |
55 | 55 |
println results_B |
56 | 56 |
for (def corpus : selection) { |
57 |
String.format( "%.2f", coef * 100.0d )
|
|
58 |
println "R = ${results_A[corpus]} / ${results_B[corpus]} = "+String.format( "%.2f", results_A[corpus] / results_B[corpus])
|
|
57 |
def coef = results_A[corpus] / results_B[corpus]
|
|
58 |
println "R = ${results_A[corpus]} / ${results_B[corpus]} = "+String.format( "%.2f", coef)
|
|
59 | 59 |
} |
60 | 60 |
println "Done." |
tmp/org.txm.tigersearch.rcp/groovy/org/txm/macro/tiger/exploit/TIGERIndexMacro.groovy (revision 2205) | ||
---|---|---|
45 | 45 |
def properties |
46 | 46 |
@Field @Option(name="count_subgraph", usage="A Full TIGERSearch query", widget="Boolean", required=true, def="true") |
47 | 47 |
def count_subgraph |
48 |
@Field @Option(name="sort_column", usage="choose between the len or freq columns", widget="StringArray", metaVar="freq labels", required=true, def="freq")
|
|
48 |
@Field @Option(name="sort_column", usage="choose between the len or freq columns", widget="StringArray", metaVar="freq labels", required=false, def="freq")
|
|
49 | 49 |
String sort_column |
50 |
@Field @Option(name="max_lines", usage="choose between the len or freq columns", widget="Integer", metaVar="freq labels", required=true, def="-1")
|
|
50 |
@Field @Option(name="max_lines", usage="choose between the len or freq columns", widget="Integer", metaVar="freq labels", required=false, def="-1")
|
|
51 | 51 |
int max_lines |
52 |
@Field @Option(name="debug", usage="Show internal variable content", widget="StringArray", metaVar="OFF ON ALL REALLY ALL", required=true, def="OFF")
|
|
52 |
@Field @Option(name="debug", usage="Show internal variable content", widget="StringArray", metaVar="OFF ON ALL REALLY ALL", required=false, def="OFF")
|
|
53 | 53 |
debug |
54 | 54 |
if (!ParametersDialog.open(this)) return |
55 | 55 |
if (debug == "OFF") debug = 0; else if (debug == "ON") debug = 1; else if (debug == "ALL") debug = 2 else if (debug == "REALLY ALL") debug = 3 |
... | ... | |
197 | 197 |
break; |
198 | 198 |
} |
199 | 199 |
} |
200 |
|
|
201 |
return results |
Formats disponibles : Unified diff