Révision 1979
tmp/org.txm.progression.core/src/org/txm/progression/core/functions/Progression.java (revision 1979) | ||
---|---|---|
77 | 77 |
public static String prefixR = "Progression"; //$NON-NLS-1$ |
78 | 78 |
|
79 | 79 |
public static final String DENSITY_CHART_TYPE = "density"; //$NON-NLS-1$ |
80 |
|
|
80 |
|
|
81 | 81 |
/** The Xmin corpus. */ |
82 | 82 |
protected int XminCorpus; |
83 | 83 |
|
... | ... | |
106 | 106 |
/** The bande. */ |
107 | 107 |
protected float bande = 0.0f; |
108 | 108 |
|
109 |
/** |
|
110 |
* set this to skip the QueryResult build step |
|
111 |
*/ |
|
112 |
protected List<QueryResult> queryResults; |
|
109 | 113 |
|
110 | 114 |
|
111 |
|
|
112 | 115 |
/** |
113 | 116 |
* Queries. |
114 | 117 |
*/ |
... | ... | |
145 | 148 |
@Parameter(key=ProgressionPreferences.PROPERTY_REGEX, type=Parameter.RENDERING) |
146 | 149 |
protected String propertyRegex; |
147 | 150 |
|
148 |
|
|
151 |
|
|
149 | 152 |
/** |
150 | 153 |
* |
151 | 154 |
* @param parent |
... | ... | |
161 | 164 |
public Progression(String parametersNodePath) { |
162 | 165 |
super(parametersNodePath); |
163 | 166 |
} |
164 |
|
|
165 |
|
|
167 |
|
|
168 |
|
|
166 | 169 |
@Override |
167 | 170 |
public boolean loadParameters() { |
168 | 171 |
if(!this.getStringParameterValue(TXMPreferences.QUERIES).isEmpty()) { |
169 | 172 |
this.queries = CQLQuery.stringToQueries(this.getStringParameterValue(TXMPreferences.QUERIES)); |
170 | 173 |
} |
171 |
|
|
174 |
|
|
172 | 175 |
if(!this.getStringParameterValue(TXMPreferences.STRUCTURAL_UNIT).isEmpty()) { |
173 | 176 |
try { |
174 | 177 |
this.structuralUnit = this.getCorpus().getStructuralUnit(this.getStringParameterValue(TXMPreferences.STRUCTURAL_UNIT)); |
... | ... | |
182 | 185 |
} |
183 | 186 |
} |
184 | 187 |
|
185 |
|
|
188 |
|
|
186 | 189 |
// generate the chart type according to cumulative boolean preference |
187 | 190 |
if(!this.getBooleanParameterValue(ProgressionPreferences.CHART_CUMULATIVE)) { |
188 | 191 |
this.chartType = Progression.DENSITY_CHART_TYPE; |
189 | 192 |
} |
190 |
|
|
193 |
|
|
191 | 194 |
return true; |
192 | 195 |
} |
193 | 196 |
|
... | ... | |
206 | 209 |
if(this.structuralUnitProperty != null) { |
207 | 210 |
this.saveParameter(TXMPreferences.STRUCTURAL_UNIT_PROPERTY, this.structuralUnitProperty.getName()); |
208 | 211 |
} |
209 |
|
|
212 |
|
|
210 | 213 |
return true; |
211 | 214 |
} |
212 | 215 |
|
... | ... | |
259 | 262 |
public void setStructuralUnitProperty(StructuralUnitProperty structuralUnitProperty) { |
260 | 263 |
this.structuralUnitProperty = structuralUnitProperty; |
261 | 264 |
} |
265 |
|
|
266 |
public void setQueryResults(List<QueryResult> queryResults) { |
|
267 |
this.queryResults = queryResults; |
|
268 |
} |
|
262 | 269 |
|
263 | 270 |
/** |
264 | 271 |
* |
... | ... | |
272 | 279 |
* @param bandeMultiplier |
273 | 280 |
*/ |
274 | 281 |
// FIXME : all parameters related to rendering should be removed from this class and centralized in the charts engine system |
275 |
public void setParameters(List<CQLQuery> queries, StructuralUnit structuralUnit, StructuralUnitProperty property, String propertyregex, boolean doCumulative, int lineWidth, boolean repeatValues, float bandeMultiplier) { |
|
282 |
public void setParameters(List<CQLQuery> queries, |
|
283 |
StructuralUnit structuralUnit, StructuralUnitProperty property, String propertyregex, |
|
284 |
boolean doCumulative, int lineWidth, boolean repeatValues, float bandeMultiplier) { |
|
276 | 285 |
this.queries = queries; // the query of the selection |
277 | 286 |
this.structuralUnit = structuralUnit; |
278 | 287 |
this.structuralUnitProperty = property; |
... | ... | |
409 | 418 |
public boolean stepQueries() throws CqiClientException { |
410 | 419 |
maxX = getCorpus().getSize(); |
411 | 420 |
int npositions = 0; |
412 |
for (CQLQuery query : queries) { |
|
413 |
// System.out.println("query "+query.getQueryString()); |
|
414 |
QueryResult result = getCorpus().query(query, query.getQueryString() |
|
415 |
.replace(" ", "_") + "_progression", true); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
|
421 |
|
|
422 |
for (int iQuery = 0 ; iQuery < queries.size() ; iQuery++) { |
|
423 |
QueryResult result = null; |
|
424 |
if (queryResults != null) { |
|
425 |
result = queryResults.get(iQuery); |
|
426 |
} else { |
|
427 |
CQLQuery query = queries.get(iQuery); |
|
428 |
// System.out.println("query "+query.getQueryString()); |
|
429 |
result = getCorpus().query(query, query.getQueryString() |
|
430 |
.replace(" ", "_") + "_progression", true); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
|
431 |
} |
|
416 | 432 |
int nLines = result.getNMatch(); |
417 | 433 |
if (maxY < nLines) |
418 | 434 |
maxY = nLines; |
... | ... | |
807 | 823 |
return TXMCoreMessages.bind(ProgressionCoreMessages.progressionOfP0InTheP1Corpus, this.queries.toString(), this.getCorpus().getName()); |
808 | 824 |
} |
809 | 825 |
|
810 |
|
|
826 |
|
|
811 | 827 |
@Override |
812 | 828 |
public String getComputingDoneMessage() { |
813 | 829 |
if (this.getAllPositions() == null || this.getAllPositions().isEmpty()) { |
... | ... | |
821 | 837 |
return TXMCoreMessages.bind(TXMCoreMessages.common_P0Positions, positions); |
822 | 838 |
} |
823 | 839 |
} |
824 |
|
|
840 |
|
|
825 | 841 |
/** |
826 | 842 |
* @return the bandeMultiplier |
827 | 843 |
*/ |
tmp/org.txm.analec.rcp/src/org/txm/macro/urs/misc/UnitTypesNotInSchemaMacro.groovy (revision 1979) | ||
---|---|---|
17 | 17 |
} |
18 | 18 |
|
19 | 19 |
// BEGINNING OF PARAMETERS |
20 |
@Field @Option(name="schema_type",usage="", widget="String", required=true, def="Coréférence")
|
|
20 |
@Field @Option(name="schema_type",usage="", widget="String", required=true, def="CHAINE")
|
|
21 | 21 |
String schema_type |
22 | 22 |
if (!ParametersDialog.open(this)) return; |
23 | 23 |
|
tmp/org.txm.analec.rcp/src/org/txm/macro/urs/misc/SchemasListMacro.groovy (revision 1979) | ||
---|---|---|
16 | 16 |
import org.apache.commons.lang.StringUtils |
17 | 17 |
|
18 | 18 |
// BEGINNING OF PARAMETERS |
19 |
@Field @Option(name="schema_type",usage="", widget="String", required=true, def="Coréférence")
|
|
19 |
@Field @Option(name="schema_type",usage="", widget="String", required=true, def="CHAIE")
|
|
20 | 20 |
String schema_type |
21 | 21 |
|
22 | 22 |
@Field @Option(name="minimum_schema_size",usage="", widget="Integer", required=true, def="3") |
... | ... | |
28 | 28 |
@Field @Option(name="schema_property_value",usage="", widget="String", required=false, def=".*") |
29 | 29 |
String schema_property_value |
30 | 30 |
|
31 |
@Field @Option(name="unit_type",usage="", widget="String", required=false, def="Maillon")
|
|
31 |
@Field @Option(name="unit_type",usage="", widget="String", required=false, def="MENTION")
|
|
32 | 32 |
String unit_type |
33 | 33 |
|
34 | 34 |
@Field @Option(name="unit_property_name", usage="", widget="String", required=false, def="") |
... | ... | |
46 | 46 |
@Field @Option(name="buildCQL", usage="générer la requête des unités", widget="Boolean", required=true, def='false') |
47 | 47 |
def buildCQL |
48 | 48 |
|
49 |
|
|
50 | 49 |
if (!(corpusViewSelection instanceof MainCorpus)) { |
51 | 50 |
println "Corpus view selection is not a Corpus" |
52 | 51 |
return; |
tmp/org.txm.analec.rcp/src/org/txm/macro/urs/misc/UnitTypesMacro.groovy (revision 1979) | ||
---|---|---|
17 | 17 |
} |
18 | 18 |
|
19 | 19 |
// BEGINNING OF PARAMETERS |
20 |
@Field @Option(name="schema_type",usage="", widget="String", required=true, def="Coréférence")
|
|
20 |
@Field @Option(name="schema_type",usage="", widget="String", required=true, def="MENTION")
|
|
21 | 21 |
String schema_type |
22 | 22 |
|
23 | 23 |
if (!ParametersDialog.open(this)) return; |
tmp/org.txm.analec.rcp/src/org/txm/macro/urs/misc/UnitsCorrelationMacro.groovy (revision 1979) | ||
---|---|---|
13 | 13 |
import org.txm.Toolbox |
14 | 14 |
import org.txm.annotation.urs.* |
15 | 15 |
import org.txm.lexicaltable.core.statsengine.r.data.LexicalTableImpl |
16 |
import org.txm.macro.analec.*
|
|
16 |
import org.txm.macro.urs.*
|
|
17 | 17 |
import org.txm.rcp.commands.* |
18 | 18 |
import org.txm.rcp.swt.widget.parameters.* |
19 |
import org.txm.searchengine.cqp.CQPSearchEngine |
|
19 | 20 |
import org.txm.searchengine.cqp.corpus.* |
20 | 21 |
import org.txm.searchengine.cqp.corpus.query.CQLQuery; |
22 |
import org.txm.statsengine.r.core.RWorkspace |
|
21 | 23 |
|
22 | 24 |
import visuAnalec.donnees.* |
23 | 25 |
import visuAnalec.elements.* |
... | ... | |
56 | 58 |
@Field @Option(name="corr_method", usage="try them all", widget="StringArray", metaVar="pearson spearman kendall", required=false, def="pearson") |
57 | 59 |
String corr_method |
58 | 60 |
@Field @Option(name="corr_style", usage="try them all", widget="StringArray", metaVar="circle square ellipse number shade color pie", required=false, def="number") |
59 |
String corr_style |
|
61 |
String corr_style
|
|
60 | 62 |
@Field @Option(name="corr_layout", usage="try them all", widget="StringArray", metaVar="full lower upper", required=false, def="upper") |
61 |
String corr_layout |
|
63 |
String corr_layout
|
|
62 | 64 |
@Field @Option(name="corr_order", usage="try them all", widget="StringArray", metaVar="AOE FPC hclust alphabet", required=false, def="hclust") |
63 |
String corr_order |
|
65 |
String corr_order
|
|
64 | 66 |
@Field @Option(name="output_lexicaltable", usage="create or not a lexical table with the result", widget="Boolean", required=true, def="false") |
65 | 67 |
output_lexicaltable |
66 | 68 |
@Field @Option(name="debug", usage="Show internal variable content", widget="StringArray", metaVar="OFF ON ALL REALLY ALL", required=true, def="OFF") |
67 | 69 |
debug |
68 | 70 |
if (!ParametersDialog.open(this)) return |
69 |
if (debug == "OFF") debug = 0; else if (debug == "ON") debug = 1; else if (debug == "ALL") debug = 2 else if (debug == "REALLY ALL") debug = 3 |
|
71 |
if (debug == "OFF") debug = 0; else if (debug == "ON") debug = 1; else if (debug == "ALL") debug = 2 else if (debug == "REALLY ALL") debug = 3
|
|
70 | 72 |
|
71 | 73 |
|
72 | 74 |
def CQI = CQPSearchEngine.getCqiClient() |
... | ... | |
75 | 77 |
def values1 = new HashSet() |
76 | 78 |
def values2 = new HashSet() |
77 | 79 |
def corpus = corpusViewSelection |
78 |
|
|
79 |
mainCorpus = corpus.getMainCorpus() |
|
80 | 80 |
|
81 |
def word = mainCorpus.getWordProperty() |
|
82 |
def analecCorpus = URSCorpora.getCorpus(mainCorpus.getName()) |
|
81 |
mainCorpus = corpus.getMainCorpus() |
|
83 | 82 |
|
83 |
def word = mainCorpus.getWordProperty() |
|
84 |
def analecCorpus = URSCorpora.getCorpus(mainCorpus) |
|
84 | 85 |
|
85 | 86 |
|
86 |
def selectedUnits = AnalecUtils.selectUnitsInSchema(debug, analecCorpus, corpus, schema_ursql, minimum_schema_size, maximum_schema_size, |
|
87 |
unit_ursql, limit_distance_in_schema, limit_cql, strict_inclusion, limit_distance); |
|
88 | 87 |
|
88 |
def selectedUnits = AnalecUtils.selectUnitsInSchema(debug, analecCorpus, corpus, schema_ursql, minimum_schema_size, maximum_schema_size, |
|
89 |
unit_ursql, limit_distance_in_schema, limit_cql, strict_inclusion, limit_distance); |
|
90 |
|
|
89 | 91 |
for (def unit : selectedUnits) { |
90 | 92 |
def value1 = unit.getProp(unit_prop1) |
91 | 93 |
if (value1 == null) value1 = "<null>" |
... | ... | |
93 | 95 |
def value2 = unit.getProp(unit_prop2) |
94 | 96 |
if (value2 == null) value2 = "<null>" |
95 | 97 |
if (value2.length() == 0) value2 = "<empty>" |
96 |
|
|
98 |
|
|
97 | 99 |
values1 << value1 |
98 | 100 |
values2 << value2 |
99 |
|
|
101 |
|
|
100 | 102 |
if (!correlations.containsKey(value1)) correlations[value1] = [:] |
101 | 103 |
def line = correlations[value1] |
102 | 104 |
if (!line.containsKey(value2)) line[value2] = 0 |
... | ... | |
110 | 112 |
print value1 |
111 | 113 |
int j = 0; |
112 | 114 |
for (def value2 : values2) { |
113 |
if (correlations[value1][value2] == null) correlations[value1][value2] = 0; |
|
115 |
if (correlations[value1][value2] == null) correlations[value1][value2] = 0;
|
|
114 | 116 |
print "\t"+correlations[value1][value2] |
115 |
|
|
117 |
|
|
116 | 118 |
matrix[i][j] = correlations[value1][value2] |
117 | 119 |
j++ |
118 | 120 |
} |
... | ... | |
131 | 133 |
resultsDir.mkdirs() |
132 | 134 |
file = File.createTempFile("txm_corr_pairs_", ".svg", resultsDir) |
133 | 135 |
|
134 |
|
|
135 |
|
|
136 | 136 |
def title = "${corpus.getMainCorpus()}.${corpus}\n${unit_ursql}" |
137 | 137 |
if (limit_distance > 1) title += "[${limit_distance}]." |
138 | 138 |
if (limit_cql != null && !limit_cql.getQueryString().equals("\"\"")) title += "\n(${limit_cql} limits)" |
... | ... | |
143 | 143 |
r1 = cor(corrmatrix, use="complete.obs", method="$corr_method"); |
144 | 144 |
r2 = cov(corrmatrix, use="complete.obs") ; |
145 | 145 |
|
146 |
library(corrplot) |
|
147 | 146 |
corrplot(r1, type="$corr_layout", order="$corr_order", method="$corr_style") |
148 | 147 |
""" |
149 | 148 |
|
150 | 149 |
|
151 | 150 |
// execute R script |
152 | 151 |
if (!output_lexicaltable) { |
153 |
r.plot(file, plotScript) |
|
152 |
try { |
|
153 |
r.eval("library(corrplot)") |
|
154 |
try { |
|
155 |
r.plot(file, plotScript) |
|
156 |
} catch (Exception e) { |
|
157 |
println "** Error: "+e |
|
158 |
} |
|
159 |
} catch (Exception e) { |
|
160 |
println "** The 'corrplot' R package is not installed. Start R ("+RWorkspace.getExecutablePath()+") and run 'install.packages(\"corrplot\");'." |
|
161 |
} |
|
154 | 162 |
} |
155 | 163 |
title = "$unit_prop1 $corr_method correlations" |
156 | 164 |
|
... | ... | |
177 | 185 |
} |
178 | 186 |
} |
179 | 187 |
|
188 |
monitor.syncExec(new Runnable() { |
|
189 |
@Override |
|
190 |
public void run() { try { |
|
180 | 191 |
|
192 |
if (output_lexicaltable) { |
|
193 |
CorporaView.refreshObject(corpus) |
|
194 |
CorporaView.expand(lt) |
|
195 |
} else { |
|
196 |
OpenBrowser.openfile(file.getAbsolutePath(), "Correlations Units") |
|
197 |
} |
|
198 |
} catch (e) { e.printStackTrace() }} |
|
199 |
}) |
|
181 | 200 |
|
182 |
|
|
183 |
monitor.syncExec(new Runnable() { |
|
184 |
@Override |
|
185 |
public void run() { try { |
|
186 |
|
|
187 |
|
|
188 |
|
|
189 |
if (UnitsCorrelationMacro.this.output_lexicaltable) { |
|
190 |
CorporaView.refreshObject(corpus) |
|
191 |
CorporaView.expand(lt) |
|
192 |
} else { |
|
193 |
OpenSVGGraph.OpenSVGFile(UnitsCorrelationMacro.this.file.getAbsolutePath(), "Correlations Units") |
|
194 |
} |
|
195 |
} catch (e) { e.printStackTrace() }} |
|
196 |
}) |
|
197 |
|
|
198 |
|
|
199 | 201 |
return correlations |
tmp/org.txm.analec.rcp/src/org/txm/macro/urs/misc/CompUnitPropertiesMacro.groovy (revision 1979) | ||
---|---|---|
13 | 13 |
import org.txm.annotation.urs.* |
14 | 14 |
import org.txm.searchengine.cqp.AbstractCqiClient; |
15 | 15 |
import org.txm.searchengine.cqp.corpus.* |
16 |
import org.txm.searchengine.cqp.CQPSearchEngine |
|
16 | 17 |
import visuAnalec.donnees.Structure; |
17 | 18 |
import visuAnalec.elements.Unite; |
18 | 19 |
|
tmp/org.txm.analec.rcp/src/org/txm/macro/urs/misc/RelationsListMacro.groovy (revision 1979) | ||
---|---|---|
16 | 16 |
import org.txm.annotation.urs.* |
17 | 17 |
import org.txm.searchengine.cqp.AbstractCqiClient; |
18 | 18 |
import org.txm.searchengine.cqp.corpus.* |
19 |
import org.txm.searchengine.cqp.CQPSearchEngine |
|
19 | 20 |
|
20 | 21 |
import visuAnalec.donnees.Structure; |
21 | 22 |
import visuAnalec.elements.Relation |
tmp/org.txm.analec.rcp/src/org/txm/macro/urs/misc/UnitTypesInSchemaMacro.groovy (revision 1979) | ||
---|---|---|
17 | 17 |
} |
18 | 18 |
|
19 | 19 |
// BEGINNING OF PARAMETERS |
20 |
@Field @Option(name="schema_type",usage="", widget="String", required=true, def="Coréférence")
|
|
20 |
@Field @Option(name="schema_type",usage="", widget="String", required=true, def="CHAINE")
|
|
21 | 21 |
String schema_type |
22 | 22 |
|
23 | 23 |
if (!ParametersDialog.open(this)) return; |
tmp/org.txm.analec.rcp/src/org/txm/macro/urs/exploit/SchemasProgressionMacro.groovy (revision 1979) | ||
---|---|---|
19 | 19 |
import org.txm.rcp.Application |
20 | 20 |
import org.txm.rcp.IImageKeys |
21 | 21 |
import org.txm.rcp.swt.widget.parameters.* |
22 |
import org.txm.searchengine.cqp.CQPSearchEngine |
|
22 | 23 |
import org.txm.searchengine.cqp.corpus.* |
23 | 24 |
import org.txm.searchengine.cqp.corpus.query.CQLQuery |
24 |
|
|
25 |
import org.txm.chartsengine.rcp.*; |
|
25 | 26 |
import visuAnalec.elements.* |
26 | 27 |
|
27 | 28 |
def scriptName = this.class.getSimpleName() |
... | ... | |
47 | 48 |
String unit_ursql |
48 | 49 |
@Field @Option(name="limit_distance_in_schema", usage="Unit distance in schema (0 = no selection, 1 = first after limit, -1 = last before limit, etc.)", widget="Integer", required=true, def="0") |
49 | 50 |
int limit_distance_in_schema |
50 |
@Field @Option(name="limit_cql", usage="CQL to build structure limits", widget="Query", required=true, def="")
|
|
51 |
@Field @Option(name="limit_cql", usage="CQL to build structure limits", widget="Query", required=false, def="")
|
|
51 | 52 |
limit_cql |
52 | 53 |
@Field @Option(name="strict_inclusion", usage="Units must be strictly included into corpus matches", widget="Boolean", required=true, def="true") |
53 | 54 |
boolean strict_inclusion |
... | ... | |
94 | 95 |
mainCorpus = corpus.getMainCorpus() |
95 | 96 |
|
96 | 97 |
def word = mainCorpus.getWordProperty() |
97 |
def analecCorpus = URSCorpora.getCorpus(mainCorpus.getName())
|
|
98 |
def analecCorpus = URSCorpora.getCorpus(mainCorpus) |
|
98 | 99 |
|
99 | 100 |
if (schema_property_display.length() > 0) { |
100 | 101 |
def errors = AnalecUtils.isPropertyDefined(Schema.class, analecCorpus, schema_ursql, schema_property_display).size() |
... | ... | |
193 | 194 |
struct_p = struct.getProperty(struct_prop) |
194 | 195 |
} |
195 | 196 |
|
196 |
Progression progression = new Progression(corpus, queries, |
|
197 |
Progression progression = new Progression(corpus); |
|
198 |
progression.setParameters(queries, |
|
197 | 199 |
struct, struct_p, ".*", |
198 |
cummulative, false, false, |
|
199 |
line_width, false, bande_width) |
|
200 |
cummulative, line_width, false, bande_width) |
|
200 | 201 |
|
201 |
progression.stepQueries(queryResults); // new
|
|
202 |
|
|
202 |
progression.setQueryResults(queryResults); // new
|
|
203 |
progression.compute() |
|
203 | 204 |
if (!progression.stepStructuralUnits() || monitor.isCanceled()) return |
204 | 205 |
monitor.worked(20) |
205 | 206 |
if (!progression.stepFinalize() || monitor.isCanceled()) return |
tmp/org.txm.analec.rcp/src/org/txm/macro/urs/exploit/UnitsListMacro.groovy (revision 1979) | ||
---|---|---|
15 | 15 |
import org.txm.annotation.urs.* |
16 | 16 |
import org.txm.concordance.core.functions.Concordance |
17 | 17 |
import org.txm.concordance.rcp.editors.ConcordanceEditor |
18 |
import org.txm.concordance.rcp.handlers.* |
|
18 | 19 |
import org.txm.macro.urs.AnalecUtils |
19 | 20 |
import org.txm.searchengine.cqp.AbstractCqiClient |
20 | 21 |
import org.txm.searchengine.cqp.ReferencePattern |
21 | 22 |
import org.txm.searchengine.cqp.corpus.* |
22 | 23 |
import org.txm.searchengine.cqp.corpus.query.CQLQuery |
24 |
import org.txm.searchengine.cqp.CQPSearchEngine |
|
23 | 25 |
|
24 | 26 |
import visuAnalec.donnees.Structure |
25 | 27 |
import visuAnalec.elements.* |
... | ... | |
71 | 73 |
mainCorpus = corpus.getMainCorpus() |
72 | 74 |
|
73 | 75 |
def word = mainCorpus.getWordProperty() |
74 |
def analecCorpus = URSCorpora.getCorpus(mainCorpus.getName())
|
|
76 |
def analecCorpus = URSCorpora.getCorpus(mainCorpus) |
|
75 | 77 |
|
76 | 78 |
def selectedUnits = AnalecUtils.selectUnitsInSchema(debug, analecCorpus, corpus, schema_ursql, minimum_schema_size, maximum_schema_size, |
77 | 79 |
unit_ursql, limit_distance_in_schema, limit_cql, strict_inclusion, limit_distance); |
... | ... | |
145 | 147 |
|
146 | 148 |
Concordance concordance = new Concordance(corpus); |
147 | 149 |
concordance.setParameters(new CQLQuery(""), [word],[word],[word], |
148 |
[word],[word],[word], |
|
149 |
new ReferencePattern(text_id), new ReferencePattern(text_id), 7, 10) |
|
150 |
[word],[word],[word], |
|
151 |
new ReferencePattern(text_id), new ReferencePattern(text_id), 7, 10) |
|
152 |
concordance.setQueryResult(fqr) |
|
150 | 153 |
|
151 | 154 |
if (monitor == null) { |
152 | 155 |
println "Error: cannot open concordance editor: null monitor" |
... | ... | |
155 | 158 |
monitor.syncExec(new Runnable() { |
156 | 159 |
public void run() { |
157 | 160 |
try { |
158 |
concordance.compute(fqr); // skip the CQI.query step
|
|
159 |
|
|
161 |
concordance.compute(); // skip the CQI.query step |
|
162 |
|
|
160 | 163 |
ConcordanceEditor editor = ComputeConcordance.openEditor(concordance); |
161 |
|
|
164 |
|
|
162 | 165 |
} catch(Throwable error) { |
163 | 166 |
println "Error: "+error; |
164 | 167 |
error.printStackTrace(); |
tmp/org.txm.analec.rcp/src/org/txm/macro/urs/exploit/UnitsSummaryMacro.groovy (revision 1979) | ||
---|---|---|
16 | 16 |
import org.txm.macro.urs.AnalecUtils |
17 | 17 |
import org.txm.searchengine.cqp.AbstractCqiClient |
18 | 18 |
import org.txm.searchengine.cqp.corpus.* |
19 |
import org.txm.searchengine.cqp.CQPSearchEngine |
|
19 | 20 |
|
20 | 21 |
import visuAnalec.donnees.Structure |
21 | 22 |
import visuAnalec.elements.* |
... | ... | |
55 | 56 |
if (!ParametersDialog.open(this)) return |
56 | 57 |
if (debug == "OFF") debug = 0; else if (debug == "ON") debug = 1; else if (debug == "ALL") debug = 2 else if (debug == "REALLY ALL") debug = 3 |
57 | 58 |
|
59 |
def CQI = CQPSearchEngine.getCqiClient() |
|
58 | 60 |
|
59 |
def CQI = CQPSearchEngine.getCqiClient() |
|
60 |
|
|
61 | 61 |
def allresults = new LinkedHashMap() |
62 | 62 |
def props = new HashSet() |
63 | 63 |
for (def corpus : selection) { |
... | ... | |
65 | 65 |
mainCorpus = corpus.getMainCorpus() |
66 | 66 |
|
67 | 67 |
def word = mainCorpus.getWordProperty() |
68 |
def analecCorpus = URSCorpora.getCorpus(mainCorpus.getName())
|
|
68 |
def analecCorpus = URSCorpora.getCorpus(mainCorpus) |
|
69 | 69 |
for (def type : analecCorpus.getStructure().getUnites()) |
70 | 70 |
props.addAll(analecCorpus.getStructure().getUniteProperties(type)); |
71 | 71 |
|
tmp/org.txm.analec.rcp/src/org/txm/macro/urs/exploit/SchemasSummaryMacro.groovy (revision 1979) | ||
---|---|---|
16 | 16 |
import org.txm.macro.urs.AnalecUtils |
17 | 17 |
import org.txm.searchengine.cqp.AbstractCqiClient |
18 | 18 |
import org.txm.searchengine.cqp.corpus.* |
19 |
import org.txm.searchengine.cqp.CQPSearchEngine |
|
19 | 20 |
|
20 | 21 |
import visuAnalec.donnees.Structure |
21 | 22 |
import visuAnalec.elements.* |
... | ... | |
54 | 55 |
mainCorpus = corpus.getMainCorpus() |
55 | 56 |
|
56 | 57 |
def word = mainCorpus.getWordProperty() |
57 |
def analecCorpus = URSCorpora.getCorpus(mainCorpus.getName())
|
|
58 |
def analecCorpus = URSCorpora.getCorpus(mainCorpus) |
|
58 | 59 |
for (def type : analecCorpus.getStructure().getUnites()) |
59 | 60 |
props.addAll(analecCorpus.getStructure().getUniteProperties(type)); |
60 | 61 |
|
tmp/org.txm.analec.rcp/src/org/txm/macro/urs/exploit/UnitsIndexMacro.groovy (revision 1979) | ||
---|---|---|
12 | 12 |
import org.txm.Toolbox |
13 | 13 |
import org.txm.annotation.urs.* |
14 | 14 |
import org.txm.lexicaltable.core.statsengine.r.data.LexicalTableImpl |
15 |
import org.txm.macro.analec.*
|
|
15 |
import org.txm.macro.urs.*
|
|
16 | 16 |
import org.txm.rcp.commands.* |
17 | 17 |
import org.txm.rcp.swt.widget.parameters.* |
18 | 18 |
import org.txm.rcp.views.corpora.CorporaView |
19 | 19 |
import org.txm.searchengine.cqp.corpus.* |
20 |
import org.txm.searchengine.cqp.CQPSearchEngine |
|
20 | 21 |
import org.txm.statsengine.r.core.RWorkspace |
21 | 22 |
|
22 | 23 |
import visuAnalec.donnees.* |
... | ... | |
91 | 92 |
mainCorpus = corpus.getMainCorpus() |
92 | 93 |
|
93 | 94 |
def word = mainCorpus.getWordProperty() |
94 |
def analecCorpus = URSCorpora.getCorpus(mainCorpus.getName())
|
|
95 |
def analecCorpus = URSCorpora.getCorpus(mainCorpus) |
|
95 | 96 |
|
96 | 97 |
if (unit_property_display.length() > 0) { |
97 | 98 |
def errors = AnalecUtils.isPropertyDefined(Unite.class, analecCorpus, unit_ursql, unit_property_display).size() |
tmp/org.txm.analec.rcp/src/org/txm/macro/urs/exploit/StructuresIndexMacro.groovy (revision 1979) | ||
---|---|---|
84 | 84 |
import org.txm.Toolbox |
85 | 85 |
import org.eclipse.ui.console.* |
86 | 86 |
import org.txm.macro.cqp.* |
87 |
import org.txm.searchengine.cqp.CQPSearchEngine |
|
87 | 88 |
import org.txm.searchengine.cqp.corpus.CQPCorpus |
88 | 89 |
import org.txm.searchengine.cqp.corpus.Partition |
89 | 90 |
import org.txm.searchengine.cqp.corpus.Property |
... | ... | |
91 | 92 |
import org.txm.searchengine.cqp.corpus.Subcorpus; |
92 | 93 |
import org.txm.searchengine.cqp.corpus.query.CQLQuery |
93 | 94 |
import org.txm.rcp.commands.* |
95 |
import org.txm.statsengine.r.core.RWorkspace |
|
94 | 96 |
|
95 | 97 |
byte CQI_CONST_FIELD_MATCH = (byte) 0x10 |
96 | 98 |
|
... | ... | |
196 | 198 |
// afficher la liste décroissante des fréquences du résultat |
197 | 199 |
//println freqs.sort { -it.value } |
198 | 200 |
|
199 |
|
|
201 |
|
|
200 | 202 |
//def tF = freqs.sum() // control value |
201 | 203 |
def v = freqs.size() |
202 | 204 |
def fmin = freqs.min() |
... | ... | |
243 | 245 |
def unit = allUnites[iCurrentUnit] |
244 | 246 |
def match = matches[iCurrentMatch] |
245 | 247 |
if (unit[1] < match.getStart()) { |
246 |
iCurrentUnit++
|
|
248 |
iCurrentUnit++ |
|
247 | 249 |
} else if (unit[0] > match.getEnd()) { |
248 |
iCurrentMatch++
|
|
250 |
iCurrentMatch++ |
|
249 | 251 |
} else { |
250 | 252 |
|
251 |
if (match.getStart() <= unit[0] && unit[1] <= match.getEnd()) {
|
|
252 |
selectedUnits << unit
|
|
253 |
}
|
|
253 |
if (match.getStart() <= unit[0] && unit[1] <= match.getEnd()) { |
|
254 |
selectedUnits << unit |
|
255 |
} |
|
254 | 256 |
|
255 | 257 |
iCurrentUnit++ |
256 | 258 |
} |
... | ... | |
266 | 268 |
println "Corpus QualifiedCqpId = "+corpus.getCqpId() |
267 | 269 |
println "MainCorpus = "+mainCorpusName |
268 | 270 |
println "Corpus QualifiedCqpId = "+corpus.getMainCorpus().getCqpId() |
269 |
|
|
271 |
|
|
270 | 272 |
def struct_names = (CQI.corpusStructuralAttributes(corpus.getMainCorpus().getCqpId()) as List) |
271 | 273 |
struct_names.removeAll { it.contains('_') } |
272 | 274 |
struct_names=(struct_names-"txmcorpus").grep(corpusStructs) |
... | ... | |
492 | 494 |
/// END OF R SCRIPT |
493 | 495 |
|
494 | 496 |
// execute R script |
495 |
r.eval("library(ggplot2)") |
|
496 |
r.eval(script+"ggsave(file=\"${PNGFilePath}\", plot=p)") |
|
497 |
r.eval(script+"ggsave(file=\"${SVGFilePath}\", plot=p)") |
|
498 |
|
|
499 |
//display the SVG results graphic |
|
500 |
monitor.syncExec(new Runnable() { |
|
501 |
@Override |
|
502 |
public void run() { try { OpenSVGGraph.OpenSVGFile(SVGFilePath, "Longueur des structures de "+corpusName) } catch(Exception e) {e.printStackTrace()} } |
|
503 |
}) |
|
504 |
|
|
505 |
} |
|
506 |
|
|
497 |
try { |
|
498 |
r.eval("library(ggplot2)") |
|
499 |
try { |
|
500 |
r.eval(script+"ggsave(file=\"${PNGFilePath}\", plot=p)") |
|
501 |
r.eval(script+"ggsave(file=\"${SVGFilePath}\", plot=p)") |
|
502 |
|
|
503 |
//display the SVG results graphic |
|
504 |
monitor.syncExec(new Runnable() { |
|
505 |
@Override |
|
506 |
public void run() { try { OpenSVGGraph.OpenSVGFile(SVGFilePath, "Longueur des structures de "+corpusName) } catch(Exception e) {e.printStackTrace()} } |
|
507 |
}) |
|
508 |
} catch (Exception e) { |
|
509 |
println "** Error: "+e |
|
510 |
} |
|
511 |
} catch (Exception e) { |
|
512 |
println "** The 'ggplot2' R package is not installed. Start R ("+RWorkspace.getExecutablePath()+") and run 'install.packages(\"ggplot2\");'." |
|
513 |
} |
|
514 |
} |
tmp/org.txm.analec.rcp/src/org/txm/annotation/urs/messages_fr.properties (revision 1979) | ||
---|---|---|
1 | 1 |
|
2 |
AnalecPreferencePage_3 = Utiliser la correction des limites d'unité d'Analec
|
|
2 |
AnalecPreferencePage_3 = Utiliser la correction des limites d'unit\u00E9 d'Analec
|
|
3 | 3 |
|
4 |
AnalecPreferencePage_4 = Recherche d'autocomplétion par prefix (au lieu de infixe)
|
|
4 |
AnalecPreferencePage_4 = Recherche d'autocompl\u00E9tion par prefix (au lieu de infixe)
|
|
5 | 5 |
|
6 |
AnalecPreferencePage_9 = Palette de couleur de mise en évidence
|
|
6 |
AnalecPreferencePage_9 = Palette de couleur de mise en \u00E9vidence
|
|
7 | 7 |
|
8 |
AnnotationToolbar_0 = Pas de sélection trouvée. Abandon.
|
|
8 |
AnnotationToolbar_0 = Pas de s\u00E9lection trouv\u00E9e. Abandon.
|
|
9 | 9 |
|
10 | 10 |
AnnotationToolbar_6 = ** le nombre de match est {0} |
11 | 11 |
|
12 |
AnnotationToolbar_7 = la requête est {0}
|
|
12 |
AnnotationToolbar_7 = la requ\u00EAte est {0}
|
|
13 | 13 |
|
14 |
DoInstallStep_11 = Les macro URS précédentes ont été déplacée à {0}
|
|
14 |
DoInstallStep_11 = Les macro URS pr\u00E9c\u00E9dentes ont \u00E9t\u00E9 d\u00E9plac\u00E9e \u00E0 {0}
|
|
15 | 15 |
|
16 |
DoInstallStep_17 = ** Erreur lors de la copie du répertoire de macro "org/txm/macro/urs" dans {0}
|
|
16 |
DoInstallStep_17 = ** Erreur lors de la copie du r\u00E9pertoire de macro "org/txm/macro/urs" dans {0}
|
|
17 | 17 |
|
18 |
DoInstallStep_18 = URS post-installation terminé.
|
|
18 |
DoInstallStep_18 = URS post-installation termin\u00E9.
|
|
19 | 19 |
|
20 | 20 |
DoInstallStep_2 = URS.DoInstallStep.install() |
21 | 21 |
|
22 |
DoInstallStep_5 = Pas de post-installation URS à faire
|
|
22 |
DoInstallStep_5 = Pas de post-installation URS \u00E0 faire
|
|
23 | 23 |
|
24 | 24 |
DoInstallStep_6 = Post-installing URS version={0} |
25 | 25 |
|
26 |
DoInstallStep_9 = Le répertoire de backup existe déjà : {0}
|
|
26 |
DoInstallStep_9 = Le r\u00E9pertoire de backup existe d\u00E9j\u00E0 : {0}
|
|
27 | 27 |
|
28 |
EditStructure_0 = La sélection n'est pas un corpus : {0}
|
|
28 |
EditStructure_0 = La s\u00E9lection n'est pas un corpus : {0}
|
|
29 | 29 |
|
30 |
ExportGlozzCorpus_0 = La sélection n'est pas un corpus racine : {0}
|
|
30 |
ExportGlozzCorpus_0 = La s\u00E9lection n'est pas un corpus racine : {0}
|
|
31 | 31 |
|
32 | 32 |
ExportGlozzCorpus_1 = Export Glozz |
33 | 33 |
|
34 |
ExportGlozzCorpus_2 = Annulé.
|
|
34 |
ExportGlozzCorpus_2 = Annul\u00E9.
|
|
35 | 35 |
|
36 | 36 |
ExportGlozzCorpus_3 = ** Erreur lors de l'export des annotations : {0} |
37 | 37 |
|
38 |
ExportTEICorpus_0 = La sélection n'est pas un corpus : {0}
|
|
38 |
ExportTEICorpus_0 = La s\u00E9lection n'est pas un corpus : {0}
|
|
39 | 39 |
|
40 | 40 |
ExportTEICorpus_1P0 = {0} annotations export... |
41 | 41 |
|
... | ... | |
43 | 43 |
|
44 | 44 |
ExportTEICorpus_3 = ** Error lors de l'export du corpus to XML-URS : {0} |
45 | 45 |
|
46 |
ImportGlozzAnnotations_0 = Les fichiers "aa", "aam" et "ac" doivent être présent.
|
|
46 |
ImportGlozzAnnotations_0 = Les fichiers "aa", "aam" et "ac" doivent \u00EAtre pr\u00E9sent.
|
|
47 | 47 |
|
48 |
ImportGlozzAnnotations_1 = La sélection n'est pas un corpus racine : {0}
|
|
48 |
ImportGlozzAnnotations_1 = La s\u00E9lection n'est pas un corpus racine : {0}
|
|
49 | 49 |
|
50 |
ImportGlozzAnnotations_10 = Terminé.
|
|
50 |
ImportGlozzAnnotations_10 = Termin\u00E9.
|
|
51 | 51 |
|
52 |
ImportGlozzAnnotations_2 = Import du modèle Glozz depuis : {0}
|
|
52 |
ImportGlozzAnnotations_2 = Import du mod\u00E8le Glozz depuis : {0}
|
|
53 | 53 |
|
54 |
ImportGlozzAnnotations_3 = Erreur lors de l'import du modèle Glozz.
|
|
54 |
ImportGlozzAnnotations_3 = Erreur lors de l'import du mod\u00E8le Glozz.
|
|
55 | 55 |
|
56 | 56 |
ImportGlozzAnnotations_4 = Import du corpus Glozz avec les fichiers {0} et {1} |
57 | 57 |
|
... | ... | |
59 | 59 |
|
60 | 60 |
ImportGlozzAnnotations_7 = Reindexer les annotations avec les mots TXM |
61 | 61 |
|
62 |
ImportGlozzAnnotations_8 = ** Erreur lors de la réindexation des annotations URS.
|
|
62 |
ImportGlozzAnnotations_8 = ** Erreur lors de la r\u00E9indexation des annotations URS.
|
|
63 | 63 |
|
64 | 64 |
ImportGlozzAnnotations_9 = Enregistrement des annotations. |
65 | 65 |
|
66 |
ImportGlozzCorpus_0 = Le répertoire {0} glozz doit exister.
|
|
66 |
ImportGlozzCorpus_0 = Le r\u00E9pertoire {0} glozz doit exister.
|
|
67 | 67 |
|
68 |
ImportGlozzCorpus_1 = Création du répertoire source: {0}
|
|
68 |
ImportGlozzCorpus_1 = Cr\u00E9ation du r\u00E9pertoire source: {0}
|
|
69 | 69 |
|
70 |
ImportGlozzCorpus_10 = Pas de fichier .aa trouvé dans {0}
|
|
70 |
ImportGlozzCorpus_10 = Pas de fichier .aa trouv\u00E9 dans {0}
|
|
71 | 71 |
|
72 |
ImportGlozzCorpus_11 = Import des données Glozz depuis : {0}
|
|
72 |
ImportGlozzCorpus_11 = Import des donn\u00E9es Glozz depuis : {0}
|
|
73 | 73 |
|
74 |
ImportGlozzCorpus_15 = ** Erreur lors de l'import des données Glozz.
|
|
74 |
ImportGlozzCorpus_15 = ** Erreur lors de l'import des donn\u00E9es Glozz.
|
|
75 | 75 |
|
76 |
ImportGlozzCorpus_17 = ** Le fichier source TXT {0} n'a pas pu être créé
|
|
76 |
ImportGlozzCorpus_17 = ** Le fichier source TXT {0} n'a pas pu \u00EAtre cr\u00E9\u00E9
|
|
77 | 77 |
|
78 |
ImportGlozzCorpus_19 = ** la configuration du corpus n'a pas pu être sauvegardé : {0}
|
|
78 |
ImportGlozzCorpus_19 = ** la configuration du corpus n'a pas pu \u00EAtre sauvegard\u00E9 : {0}
|
|
79 | 79 |
|
80 |
ImportGlozzCorpus_22 = ** Pas de script {0} trouvé pour le module d'import {0}
|
|
80 |
ImportGlozzCorpus_22 = ** Pas de script {0} trouv\u00E9 pour le module d'import {0}
|
|
81 | 81 |
|
82 | 82 |
ImportGlozzCorpus_23 = Erreur lors de l'import |
83 | 83 |
|
84 | 84 |
ImportGlozzCorpus_24 = Finalisation de l'import de corpus Analec |
85 | 85 |
|
86 |
ImportGlozzCorpus_25 = Import du modèle Glozz depuis {0}
|
|
86 |
ImportGlozzCorpus_25 = Import du mod\u00E8le Glozz depuis {0}
|
|
87 | 87 |
|
88 |
ImportGlozzCorpus_26 = Erreur lors de l'import du modèle Glozz
|
|
88 |
ImportGlozzCorpus_26 = Erreur lors de l'import du mod\u00E8le Glozz
|
|
89 | 89 |
|
90 |
ImportGlozzCorpus_27 = Réindexation des annotations avec les mots TXM.
|
|
90 |
ImportGlozzCorpus_27 = R\u00E9indexation des annotations avec les mots TXM.
|
|
91 | 91 |
|
92 |
ImportGlozzCorpus_28 = Erreur lors de la ré-indexation des annotations.
|
|
92 |
ImportGlozzCorpus_28 = Erreur lors de la r\u00E9-indexation des annotations.
|
|
93 | 93 |
|
94 | 94 |
ImportGlozzCorpus_29 = Enregistrement des annotations... |
95 | 95 |
|
96 |
ImportGlozzCorpus_3 = Création du répertoire ec: {0}
|
|
96 |
ImportGlozzCorpus_3 = Cr\u00E9ation du r\u00E9pertoire ec: {0}
|
|
97 | 97 |
|
98 |
ImportGlozzCorpus_30 = Terminé.
|
|
98 |
ImportGlozzCorpus_30 = Termin\u00E9.
|
|
99 | 99 |
|
100 | 100 |
ImportGlozzCorpus_32 = Erreur lors de la finalisation de l'import du corpus : {0} |
101 | 101 |
|
102 |
ImportGlozzCorpus_4 = Le répertoire {0} des sources n'a pu être créé.
|
|
102 |
ImportGlozzCorpus_4 = Le r\u00E9pertoire {0} des sources n'a pu \u00EAtre cr\u00E9\u00E9.
|
|
103 | 103 |
|
104 |
ImportGlozzCorpus_5 = Le répertoire ec {0} n''a pu être créé
|
|
104 |
ImportGlozzCorpus_5 = Le r\u00E9pertoire ec {0} n''a pu \u00EAtre cr\u00E9\u00E9
|
|
105 | 105 |
|
106 |
ImportGlozzCorpus_8 = Pas de fichier .aa trouvé dans le répertoire {0}
|
|
106 |
ImportGlozzCorpus_8 = Pas de fichier .aa trouv\u00E9 dans le r\u00E9pertoire {0}
|
|
107 | 107 |
|
108 |
ImportGlozzCorpus_9 = Pas de fichier .ac trouvé dans le répertoire {0}
|
|
108 |
ImportGlozzCorpus_9 = Pas de fichier .ac trouv\u00E9 dans le r\u00E9pertoire {0}
|
|
109 | 109 |
|
110 |
ImportTEIAnnotations_0 = La sélection n''est pas un corpus : {0}
|
|
110 |
ImportTEIAnnotations_0 = La s\u00E9lection n''est pas un corpus : {0}
|
|
111 | 111 |
|
112 | 112 |
ImportTEIAnnotations_1 = Import de {0} annotations... |
113 | 113 |
|
... | ... | |
115 | 115 |
|
116 | 116 |
ImportTEIAnnotations_3 = Erreur lors de l'import des annotations : {0} |
117 | 117 |
|
118 |
ImportTEIAnnotations_5 = Terminé: {0} unités, {1} relations et {2} schemas.
|
|
118 |
ImportTEIAnnotations_5 = Termin\u00E9: {0} unit\u00E9s, {1} relations et {2} schemas.
|
|
119 | 119 |
|
120 | 120 |
ImportTEICorpus_0 = ** Les fichiers XML doivent exister : {0} |
121 | 121 |
|
122 | 122 |
ImportTEICorpus_11 = ** Echec de l''enregistrement de la configuration d''import : {0} |
123 | 123 |
|
124 |
ImportTEICorpus_14 = ** Pas de script {1} trouvé pour le module d''import {0}
|
|
124 |
ImportTEICorpus_14 = ** Pas de script {1} trouv\u00E9 pour le module d''import {0}
|
|
125 | 125 |
|
126 | 126 |
ImportTEICorpus_15 = ** Erreur lors de l'import |
127 | 127 |
|
... | ... | |
129 | 129 |
|
130 | 130 |
ImportTEICorpus_18 = Import du model d''annotation TEI depuis : {0} |
131 | 131 |
|
132 |
ImportTEICorpus_19 = Erreur lors de l'import du modèle d'annotation TEI.
|
|
132 |
ImportTEICorpus_19 = Erreur lors de l'import du mod\u00E8le d'annotation TEI.
|
|
133 | 133 |
|
134 |
ImportTEICorpus_2 = Creation du répertoire source : {0}
|
|
134 |
ImportTEICorpus_2 = Creation du r\u00E9pertoire source : {0}
|
|
135 | 135 |
|
136 |
ImportTEICorpus_20 = Réindexation des annotations avec les mots TXM.
|
|
136 |
ImportTEICorpus_20 = R\u00E9indexation des annotations avec les mots TXM.
|
|
137 | 137 |
|
138 |
ImportTEICorpus_21 = Erreur lors de la réindexation des annotations avec les mots TXM.
|
|
138 |
ImportTEICorpus_21 = Erreur lors de la r\u00E9indexation des annotations avec les mots TXM.
|
|
139 | 139 |
|
140 | 140 |
ImportTEICorpus_22 = Enregistrement des annotations. |
141 | 141 |
|
142 |
ImportTEICorpus_23 = Terminé.
|
|
142 |
ImportTEICorpus_23 = Termin\u00E9.
|
|
143 | 143 |
|
144 | 144 |
ImportTEICorpus_24 = Erreur lors de la finalisation de l''import du corpus : {0} |
145 | 145 |
|
146 |
ImportTEICorpus_3 = ** Le répertoire source {0} n''a pas pu être créé
|
|
146 |
ImportTEICorpus_3 = ** Le r\u00E9pertoire source {0} n''a pas pu \u00EAtre cr\u00E9\u00E9
|
|
147 | 147 |
|
148 |
ImportTEICorpus_5 = Import des données TEI depuis : {0}
|
|
148 |
ImportTEICorpus_5 = Import des donn\u00E9es TEI depuis : {0}
|
|
149 | 149 |
|
150 |
ImportTEICorpus_7 = Erreur lors de l'import des données TEI.
|
|
150 |
ImportTEICorpus_7 = Erreur lors de l'import des donn\u00E9es TEI.
|
|
151 | 151 |
|
152 |
ImportTEICorpus_9 = Le fichier source TXT {0} n''a pas pu être créé
|
|
152 |
ImportTEICorpus_9 = Le fichier source TXT {0} n''a pas pu \u00EAtre cr\u00E9\u00E9
|
|
153 | 153 |
|
154 |
LoadCorpus_0 = La sélection n''est pas un corpus racine : {0}
|
|
154 |
LoadCorpus_0 = La s\u00E9lection n''est pas un corpus racine : {0}
|
|
155 | 155 |
|
156 | 156 |
LoadCorpus_1 = Chargement du corpus depuis le fichier... |
157 | 157 |
|
... | ... | |
159 | 159 |
|
160 | 160 |
LoadCorpus_3 = Chargement du corpus depuis le fichier {0} |
161 | 161 |
|
162 |
LoadCorpus_4 = Échec du chargement de la structure
|
|
162 |
LoadCorpus_4 = \u00C9chec du chargement de la structure
|
|
163 | 163 |
|
164 |
LoadCorpus_5 = Terminé :
|
|
164 |
LoadCorpus_5 = Termin\u00E9 :
|
|
165 | 165 |
|
166 |
LoadStructureFromGlozz_0 = La sélection n''est pas un corpus racine : {0}
|
|
166 |
LoadStructureFromGlozz_0 = La s\u00E9lection n''est pas un corpus racine : {0}
|
|
167 | 167 |
|
168 |
LoadStructureFromGlozz_1 = Import du modèle Glozz pour le corpus {0}
|
|
168 |
LoadStructureFromGlozz_1 = Import du mod\u00E8le Glozz pour le corpus {0}
|
|
169 | 169 |
|
170 | 170 |
LoadStructureFromGlozz_2 = Le fichier AAM n'existe pas. |
171 | 171 |
|
172 |
LoadStructureFromGlozz_3 = Échec du chargement de la structure depuis le modèle Glozz.
|
|
172 |
LoadStructureFromGlozz_3 = \u00C9chec du chargement de la structure depuis le mod\u00E8le Glozz.
|
|
173 | 173 |
|
174 |
LoadStructureFromGlozz_4 = Terminé.
|
|
174 |
LoadStructureFromGlozz_4 = Termin\u00E9.
|
|
175 | 175 |
|
176 |
LoadStructure_0 = La sélection n''est pas un corpus racine : {0}
|
|
176 |
LoadStructure_0 = La s\u00E9lection n''est pas un corpus racine : {0}
|
|
177 | 177 |
|
178 | 178 |
LoadStructure_1 = Chargement de la structure pour le corpus {0} |
179 | 179 |
|
180 |
LoadStructure_2 = Échec du chargement de la structure.
|
|
180 |
LoadStructure_2 = \u00C9chec du chargement de la structure.
|
|
181 | 181 |
|
182 |
LoadStructure_3 = Terminé :
|
|
182 |
LoadStructure_3 = Termin\u00E9 :
|
|
183 | 183 |
|
184 |
LoadVue_0 = La sélection n''est pas un corpus racine : {0}
|
|
184 |
LoadVue_0 = La s\u00E9lection n''est pas un corpus racine : {0}
|
|
185 | 185 |
|
186 | 186 |
LoadVue_1 = Chargement de la vue pour le corpus {0} |
187 | 187 |
|
188 |
LoadVue_2 = Échec du chargement de la vue.
|
|
188 |
LoadVue_2 = \u00C9chec du chargement de la vue.
|
|
189 | 189 |
|
190 |
LoadVue_3 = Terminé :
|
|
190 |
LoadVue_3 = Termin\u00E9 :
|
|
191 | 191 |
|
192 | 192 |
NavigationField_0 = <identifiant> |
193 | 193 |
|
194 | 194 |
NavigationField_2 = Mauvais identifiant de mot : {0} |
195 | 195 |
|
196 |
NavigationField_4 = Recherche d'unité par propriétés
|
|
196 |
NavigationField_4 = Recherche d'unit\u00E9 par propri\u00E9t\u00E9s
|
|
197 | 197 |
|
198 | 198 |
NavigationField_5 = <identifiant> |
199 | 199 |
|
200 |
SaveCorpus_0 = La sélection n''est pas un corpus racine : {0}
|
|
200 |
SaveCorpus_0 = La s\u00E9lection n''est pas un corpus racine : {0}
|
|
201 | 201 |
|
202 |
SaveCorpus_3 = Sauvegarde du corpus {0} ({1})
|
|
202 |
SaveCorpus_3 = Sauvegarde des annotations ({0})
|
|
203 | 203 |
|
204 | 204 |
SaveCorpus_5 = Erreur lors de la sauvegarde du corpus. |
205 | 205 |
|
206 |
SaveStructureAsGlozzModel_0 = La sélection n''est pas un corpus racine : {0}
|
|
206 |
SaveStructureAsGlozzModel_0 = La s\u00E9lection n''est pas un corpus racine : {0}
|
|
207 | 207 |
|
208 |
SaveStructureAsGlozzModel_1 = Sauvegarde de la structure du corpus {0} dans un modèle Glozz
|
|
208 |
SaveStructureAsGlozzModel_1 = Sauvegarde de la structure du corpus {0} dans un mod\u00E8le Glozz
|
|
209 | 209 |
|
210 | 210 |
SaveStructureAsGlozzModel_2 = Erreur lors de la sauvegarde de la structure. |
211 | 211 |
|
212 |
SaveStructureAsGlozzModel_3 = Terminé.
|
|
212 |
SaveStructureAsGlozzModel_3 = Termin\u00E9.
|
|
213 | 213 |
|
214 |
SaveStructure_0 = La sélection n''est pas un corpus racine : {0}
|
|
214 |
SaveStructure_0 = La s\u00E9lection n''est pas un corpus racine : {0}
|
|
215 | 215 |
|
216 | 216 |
SaveStructure_3 = Sauvegarde de la structure du corpus {0} ({1}) |
217 | 217 |
|
218 | 218 |
SaveStructure_5 = Erreur lors de la sauvegarde de la structure. |
219 | 219 |
|
220 |
SaveVue_0 = La sélection n''est pas un corpus racine : {0}
|
|
220 |
SaveVue_0 = La s\u00E9lection n''est pas un corpus racine : {0}
|
|
221 | 221 |
|
222 | 222 |
SaveVue_3 = Enregistrement de la vue du corpus {0} dans {1} |
223 | 223 |
|
224 | 224 |
SaveVue_5 = Erreur lors de l'enregistrement de la vue. |
225 | 225 |
|
226 |
StartButton_0 = Unités
|
|
226 |
StartButton_0 = Unit\u00E9s
|
|
227 | 227 |
|
228 | 228 |
StartButton_1 = Schemas |
229 | 229 |
|
230 | 230 |
StartButton_11 = Enregistrer and fermer l'interface d'annotation : |
231 | 231 |
|
232 |
StartButton_12 = Démarrer l'annotation URS
|
|
232 |
StartButton_12 = D\u00E9marrer l'annotation URS
|
|
233 | 233 |
|
234 |
StartButton_4 = ** Le corpus n'a pas été sauvegardé.
|
|
234 |
StartButton_4 = ** Le corpus n'a pas \u00E9t\u00E9 sauvegard\u00E9.
|
|
235 | 235 |
|
236 |
StartButton_5 = Terminé.
|
|
236 |
StartButton_5 = Termin\u00E9.
|
|
237 | 237 |
|
238 | 238 |
URSCorpora_3 = Erreur lors de l''ouverture du corpus : {0} |
239 | 239 |
|
240 |
URSCorpora_4 = Erreur lors de la création fu corpus : {0}
|
|
240 |
URSCorpora_4 = Erreur lors de la cr\u00E9ation fu corpus : {0}
|
|
241 | 241 |
|
242 | 242 |
UnitToolbar_10 = Supprimer |
243 | 243 |
|
244 | 244 |
UnitToolbar_12 = Corriger la limite gauche en cliquant sur un mot |
245 | 245 |
|
246 |
UnitToolbar_14 = Corriger les limites gauche et droite avec une nouvelle sélection de mot
|
|
246 |
UnitToolbar_14 = Corriger les limites gauche et droite avec une nouvelle s\u00E9lection de mot
|
|
247 | 247 |
|
248 | 248 |
UnitToolbar_16 = Corriger la limite droite en cliquant sur un mot |
249 | 249 |
|
250 |
UnitToolbar_27 = Il faut sélectionner un mot.
|
|
250 |
UnitToolbar_27 = Il faut s\u00E9lectionner un mot.
|
|
251 | 251 |
|
252 |
UnitToolbar_28 = ** Erreur lors de la mise à jour des limites de l'unité {0}
|
|
252 |
UnitToolbar_28 = ** Erreur lors de la mise \u00E0 jour des limites de l'unit\u00E9 {0}
|
|
253 | 253 |
|
254 | 254 |
UnitToolbar_29 = Selectioner {0} |
255 | 255 |
|
256 |
UnitToolbar_3 = ** Erreur lors de la récupération de la taille de {0} : {1}
|
|
256 |
UnitToolbar_3 = ** Erreur lors de la r\u00E9cup\u00E9ration de la taille de {0} : {1}
|
|
257 | 257 |
|
258 | 258 |
UnitToolbar_32 = Selectioner {0} |
259 | 259 |
|
260 |
UnitToolbar_44 = Création de l''unité (de {0} à {0})
|
|
260 |
UnitToolbar_44 = Cr\u00E9ation de l''unit\u00E9 (de {0} \u00E0 {0})
|
|
261 | 261 |
|
262 |
UnitToolbar_47 = Supprimer l''unité {0}
|
|
262 |
UnitToolbar_47 = Supprimer l''unit\u00E9 {0}
|
|
263 | 263 |
|
264 |
UnitToolbar_48 = Voulez vous supprimer l''unité {0} ?
|
|
264 |
UnitToolbar_48 = Voulez vous supprimer l''unit\u00E9 {0} ?
|
|
265 | 265 |
|
266 |
UnitToolbar_5 = Type d''unité : {0}
|
|
266 |
UnitToolbar_5 = Type d''unit\u00E9 : {0}
|
|
267 | 267 |
|
268 |
UnitToolbar_54 = < type d'unité >
|
|
268 |
UnitToolbar_54 = < type d'unit\u00E9 >
|
|
269 | 269 |
|
270 |
UnitToolbar_59 = ** Pas de mots trouvé pour l'identifiant {0}
|
|
270 |
UnitToolbar_59 = ** Pas de mots trouv\u00E9 pour l'identifiant {0}
|
|
271 | 271 |
|
272 |
UnitToolbar_6 = Type d'unité
|
|
272 |
UnitToolbar_6 = Type d'unit\u00E9
|
|
273 | 273 |
|
274 |
UnitToolbar_7 = Type d'unité
|
|
274 |
UnitToolbar_7 = Type d'unit\u00E9
|
|
275 | 275 |
|
276 |
UnitToolbar_8 = Créer |
|
276 |
UnitToolbar_8 = Cr\u00E9er |
tmp/org.txm.analec.rcp/src/org/txm/annotation/urs/commands/SaveCorpus.java (revision 1979) | ||
---|---|---|
48 | 48 |
File binaryCorpusDirectory = mainCorpus.getProjectDirectory(); |
49 | 49 |
File fichierCorpus = new File(binaryCorpusDirectory, "/analec/"+mainCorpus.getID()+".ec"); //$NON-NLS-1$ //$NON-NLS-2$ |
50 | 50 |
Corpus corpus = URSCorpora.getCorpus(mainCorpus); |
51 |
System.out.println(NLS.bind(Messages.SaveCorpus_3, corpus, fichierCorpus));
|
|
51 |
System.out.println(NLS.bind(Messages.SaveCorpus_3, fichierCorpus)); |
|
52 | 52 |
if (!URSCorpora.saveCorpus(mainCorpus)) { |
53 | 53 |
System.out.println(Messages.SaveCorpus_5); |
54 | 54 |
return false; |
tmp/org.txm.analec.rcp/src/org/txm/annotation/urs/messages.properties (revision 1979) | ||
---|---|---|
199 | 199 |
|
200 | 200 |
SaveCorpus_0 = Selection is not a main corpus: {0} |
201 | 201 |
|
202 |
SaveCorpus_3 = Saving the {0} corpus ({1})
|
|
202 |
SaveCorpus_3 = Saving the annotations ({0})
|
|
203 | 203 |
|
204 | 204 |
SaveCorpus_5 = Error while saving the corpus. |
205 | 205 |
|
tmp/org.txm.lexicaltable.core/src/org/txm/lexicaltable/core/functions/LexicalTable.java (revision 1979) | ||
---|---|---|
67 | 67 |
private int vMaxFilter; |
68 | 68 |
|
69 | 69 |
/** |
70 |
* if true and if built with an Index, a ##REST## lien is added containing the frequencies of the other "words"
|
|
70 |
* if true and if built with an Index, the ##REST## line is added containing the cumulated frequencies of the occurrences not counted in the lexical table (corpus frequencies minus the index frequencies)
|
|
71 | 71 |
*/ |
72 | 72 |
@Parameter(key=LexicalTablePreferences.USE_ALL_OCCURRENCES) |
73 | 73 |
protected boolean useAllOccurrences; |
tmp/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/ParametersDialog.java (revision 1979) | ||
---|---|---|
178 | 178 |
|
179 | 179 |
protected void createButtonsForButtonBar(Composite parent) { |
180 | 180 |
//create the reset button (hack of the Back button) |
181 |
Button propButton = createButton(parent, IDialogConstants.BACK_ID, |
|
182 |
"...", false); |
|
183 |
propButton.removeListener(SWT.Selection, propButton.getListeners(SWT.Selection)[0]); |
|
184 |
|
|
185 |
propButton.addSelectionListener(new SelectionAdapter() { |
|
186 |
@Override |
|
187 |
public void widgetSelected(SelectionEvent e) { |
|
188 |
FileDialog dialog = new FileDialog(e.display.getActiveShell()); |
|
189 |
dialog.setFilterPath(propFile.getParent()); |
|
190 |
dialog.setFilterExtensions(new String[] {"*.properties"}); |
|
191 |
dialog.setFileName(propFile.getName()); |
|
192 |
String path = dialog.open(); |
|
193 |
if (path != null) { |
|
194 |
propFile = new File(path); |
|
195 |
loadDefaultValuesFromPropFile(); |
|
196 |
} |
|
197 |
} |
|
198 |
}); |
|
181 |
// Button propButton = createButton(parent, IDialogConstants.BACK_ID,
|
|
182 |
// "...", false);
|
|
183 |
// propButton.removeListener(SWT.Selection, propButton.getListeners(SWT.Selection)[0]);
|
|
184 |
// |
|
185 |
// propButton.addSelectionListener(new SelectionAdapter() {
|
|
186 |
// @Override
|
|
187 |
// public void widgetSelected(SelectionEvent e) {
|
|
188 |
// FileDialog dialog = new FileDialog(e.display.getActiveShell());
|
|
189 |
// dialog.setFilterPath(propFile.getParent());
|
|
190 |
// dialog.setFilterExtensions(new String[] {"*.properties"});
|
|
191 |
// dialog.setFileName(propFile.getName());
|
|
192 |
// String path = dialog.open();
|
|
193 |
// if (path != null) {
|
|
194 |
// propFile = new File(path);
|
|
195 |
// loadDefaultValuesFromPropFile();
|
|
196 |
// }
|
|
197 |
// }
|
|
198 |
// });
|
|
199 | 199 |
|
200 | 200 |
Button button = createButton(parent, IDialogConstants.BACK_ID, |
201 | 201 |
"Reset values", false); |
tmp/org.txm.concordance.core/src/org/txm/concordance/core/functions/Concordance.java (revision 1979) | ||
---|---|---|
175 | 175 |
@Parameter |
176 | 176 |
private QueryResult pQueryResult; |
177 | 177 |
|
178 |
public void setQueryResult(QueryResult pQueryResult) { |
|
179 |
this.pQueryResult = pQueryResult; |
|
180 |
} |
|
178 | 181 |
|
179 |
|
|
180 | 182 |
|
181 | 183 |
/** |
182 | 184 |
* |
tmp/org.txm.concordance.rcp/src/org/txm/concordance/rcp/handlers/ComputeConcordance.java (revision 1979) | ||
---|---|---|
84 | 84 |
TXMEditor.openEditor(concordance, ConcordanceEditor.class.getName()); |
85 | 85 |
return null; |
86 | 86 |
} |
87 |
|
|
88 |
public static TXMEditor openEditor(Concordance concordance) { |
|
89 |
return TXMEditor.openEditor(concordance, ConcordanceEditor.class.getName()); |
|
90 |
} |
|
87 | 91 |
} |
tmp/org.txm.statsengine.r.core/src/org/txm/statsengine/r/core/RStatsEngine.java (revision 1979) | ||
---|---|---|
94 | 94 |
|
95 | 95 |
return started; |
96 | 96 |
} |
97 |
|
|
97 |
|
|
98 | 98 |
public HashMap<String, RTransformer<? extends TXMResult>> getTransformers() { |
99 | 99 |
return transformers; |
100 | 100 |
} |
tmp/org.txm.statsengine.r.core/src/org/txm/statsengine/r/core/RWorkspace.java (revision 1979) | ||
---|---|---|
344 | 344 |
} |
345 | 345 |
} |
346 | 346 |
|
347 |
/** |
|
348 |
* |
|
349 |
* @return The executable path set in the R Preferences |
|
350 |
*/ |
|
351 |
public static String getExecutablePath() { |
|
352 |
return RPreferences.getInstance().getString(RPreferences.PATH_TO_EXECUTABLE); |
|
353 |
} |
|
347 | 354 |
|
348 | 355 |
/** |
349 | 356 |
* Checks if is file tranfert. |
Formats disponibles : Unified diff