Révision 542
| tmp/org.txm.index.core/src/org/txm/index/core/functions/Index.java (revision 542) | ||
|---|---|---|
| 76 | 76 |
|
| 77 | 77 |
/** The currentpartid. */ |
| 78 | 78 |
protected int currentpartid = 0; |
| 79 |
|
|
| 79 |
|
|
| 80 | 80 |
/** The current Fmax value. */ |
| 81 | 81 |
protected int Fmax = 0; |
| 82 | 82 |
/** The current Fmin value. */ |
| 83 | 83 |
protected int Fmin = 9999999; |
| 84 |
|
|
| 85 | 84 |
/** The lexicon used to compute the index (if query = null || query == [] && properties.size() == 1 */ |
| 86 | 85 |
protected Lexicon lexicon; |
| 86 |
boolean lexiconMode = false; |
|
| 87 | 87 |
/** The current lines. */ |
| 88 | 88 |
protected List<Line> lines = new ArrayList<Line>(); |
| 89 | 89 |
/** The current number of lines. */ |
| 90 |
protected int nLines = 0; |
|
| 90 |
protected int nTotalTokens = 0; |
|
| 91 |
|
|
| 91 | 92 |
/** The partnames. The corpus name if built with a Corpus or the parts names if built with a Partition */ |
| 92 | 93 |
protected List<String> partnames = new ArrayList<String>(); |
| 93 |
|
|
| 94 | 94 |
/** The fmax filter value parameter. */ |
| 95 | 95 |
protected Integer pFmaxFilter = null; |
| 96 | 96 |
/** The fmin filter value parameter. */ |
| ... | ... | |
| 101 | 101 |
protected List<Property> pProperties; |
| 102 | 102 |
/** The string used to separated property values. */ |
| 103 | 103 |
protected String pPropertiesSeparator = "_"; // the separator of properties values //$NON-NLS-1$ |
| 104 |
private String pPropertySeparator = "_"; |
|
| 105 |
|
|
| 104 | 106 |
/** The CQP query. */ |
| 105 | 107 |
protected Query pQuery; |
| 108 |
|
|
| 109 |
private Integer pTopIndex; |
|
| 110 |
|
|
| 106 | 111 |
/** The vmax filter value parameter. */ |
| 107 | 112 |
protected Integer pVmaxFilter = null; |
| 108 |
|
|
| 113 |
|
|
| 109 | 114 |
/** The writer. */ |
| 110 | 115 |
private BufferedWriter writer; |
| 111 | 116 |
|
| 112 | 117 |
/** |
| 113 |
* compute a index, given a corpus, a query and analysis properties. |
|
| 114 |
* |
|
| 115 |
* @param corpus the corpus |
|
| 116 |
* @throws CqiClientException |
|
| 117 |
* @throws CqiServerError |
|
| 118 |
* @throws IOException |
|
| 119 |
*/ |
|
| 120 |
public Index(Corpus corpus) {
|
|
| 121 |
super(corpus); |
|
| 122 |
} |
|
| 123 |
|
|
| 124 |
/** |
|
| 125 |
* Compute an index per Part of the partition. |
|
| 126 |
* |
|
| 127 |
* @param partition the partition |
|
| 128 |
* @throws CqiClientException |
|
| 129 |
* @throws CqiServerError |
|
| 130 |
* @throws IOException |
|
| 131 |
*/ |
|
| 132 |
public Index(Partition partition) {
|
|
| 133 |
super(partition); |
|
| 134 |
} |
|
| 135 |
|
|
| 136 |
boolean lexiconMode = false; |
|
| 137 |
public void setLexiconMode(boolean mode) {
|
|
| 138 |
this.lexiconMode = mode; |
|
| 139 |
} |
|
| 140 |
public boolean getLexiconMode() {
|
|
| 141 |
return this.lexiconMode; |
|
| 142 |
} |
|
| 143 |
|
|
| 144 |
/** |
|
| 145 | 118 |
* Create a CQL query using an Index lines |
| 146 | 119 |
* |
| 147 | 120 |
* @param selection the selection |
| ... | ... | |
| 180 | 153 |
query = query.substring(0, query.length() - 1); |
| 181 | 154 |
return query; |
| 182 | 155 |
} |
| 156 |
|
|
| 157 |
/** |
|
| 158 |
* compute a index, given a corpus, a query and analysis properties. |
|
| 159 |
* |
|
| 160 |
* @param corpus the corpus |
|
| 161 |
* @throws CqiClientException |
|
| 162 |
* @throws CqiServerError |
|
| 163 |
* @throws IOException |
|
| 164 |
*/ |
|
| 165 |
public Index(Corpus corpus) {
|
|
| 166 |
super(corpus); |
|
| 167 |
} |
|
| 183 | 168 |
|
| 184 | 169 |
/** |
| 185 |
* This method alter the index first column frequencies using a table stored in the R workspace |
|
| 186 |
* |
|
| 187 |
* @param referenceCorpus the R table variable name |
|
| 188 |
* @return true if frequencies have been altered |
|
| 189 |
* |
|
| 190 |
* @throws RWorkspaceException |
|
| 191 |
* @throws REXPMismatchException |
|
| 170 |
* Compute an index per Part of the partition. |
|
| 171 |
* |
|
| 172 |
* @param partition the partition |
|
| 173 |
* @throws CqiClientException |
|
| 174 |
* @throws CqiServerError |
|
| 175 |
* @throws IOException |
|
| 192 | 176 |
*/ |
| 193 |
public boolean alterFrequencies(String referenceCorpus) throws RWorkspaceException, REXPMismatchException {
|
|
| 194 |
String[] ref_forms = RWorkspace.getRWorkspaceInstance().eval("rownames("+referenceCorpus+")").asStrings(); //$NON-NLS-1$ //$NON-NLS-2$
|
|
| 195 |
int[] ref_freqs = RWorkspace.getRWorkspaceInstance().eval(referenceCorpus+"[,1]").asIntegers(); //$NON-NLS-1$ |
|
| 196 |
if (ref_forms.length != ref_freqs.length) {
|
|
| 197 |
System.out.println("Cannot alter index frequencies with the '"+referenceCorpus+"' empty table.");
|
|
| 198 |
return false; |
|
| 199 |
} |
|
| 200 |
HashMap<String, Integer> ref_counts = new HashMap<String, Integer>(); |
|
| 201 |
for(int i = 0 ; i < ref_forms.length ; i++) ref_counts.put(ref_forms[i], ref_freqs[i]); |
|
| 202 |
|
|
| 203 |
for (org.txm.index.core.functions.Line l : this.getAllLines()) {
|
|
| 204 |
String key = l.toString(); |
|
| 205 |
if (ref_counts.containsKey(key)) {
|
|
| 206 |
int[] f = {ref_counts.get(key)};
|
|
| 207 |
l.setCounts(f, 0); |
|
| 208 |
} |
|
| 209 |
} |
|
| 210 |
this.updateFminFmax(); |
|
| 211 |
return true; |
|
| 212 |
//voc.toTxt(new File("/home/mdecorde/TEMP/after.tsv"), "UTF-8", "\t", "");
|
|
| 177 |
public Index(Partition partition) {
|
|
| 178 |
super(partition); |
|
| 213 | 179 |
} |
| 214 |
|
|
| 215 | 180 |
@Override |
| 216 |
public void clean() {
|
|
| 217 |
try {
|
|
| 218 |
if (writer != null) {
|
|
| 219 |
this.writer.flush(); |
|
| 220 |
this.writer.close(); |
|
| 221 |
} |
|
| 222 |
} catch (IOException e) {
|
|
| 223 |
org.txm.utils.logger.Log.printStackTrace(e); |
|
| 224 |
} |
|
| 225 |
} |
|
| 226 |
|
|
| 227 |
@Override |
|
| 228 | 181 |
protected boolean _compute(boolean update) throws Exception {
|
| 229 | 182 |
lines.clear(); |
| 230 | 183 |
counts.clear(); |
| ... | ... | |
| 270 | 223 |
} |
| 271 | 224 |
} |
| 272 | 225 |
|
| 273 |
|
|
| 274 | 226 |
this.filterLines(); |
| 275 | 227 |
|
| 276 | 228 |
Log.info("Sorting...");
|
| ... | ... | |
| 279 | 231 |
this.cut(); |
| 280 | 232 |
|
| 281 | 233 |
this.dirty = false; |
| 282 |
|
|
| 234 |
this.pTopIndex = 0; |
|
| 283 | 235 |
Log.info("Index done.");
|
| 284 | 236 |
return true; |
| 285 | 237 |
} |
| 238 |
|
|
| 239 |
/** |
|
| 240 |
* This method alter the index first column frequencies using a table stored in the R workspace |
|
| 241 |
* |
|
| 242 |
* @param referenceCorpus the R table variable name |
|
| 243 |
* @return true if frequencies have been altered |
|
| 244 |
* |
|
| 245 |
* @throws RWorkspaceException |
|
| 246 |
* @throws REXPMismatchException |
|
| 247 |
*/ |
|
| 248 |
public boolean alterFrequencies(String referenceCorpus) throws RWorkspaceException, REXPMismatchException {
|
|
| 249 |
String[] ref_forms = RWorkspace.getRWorkspaceInstance().eval("rownames("+referenceCorpus+")").asStrings(); //$NON-NLS-1$ //$NON-NLS-2$
|
|
| 250 |
int[] ref_freqs = RWorkspace.getRWorkspaceInstance().eval(referenceCorpus+"[,1]").asIntegers(); //$NON-NLS-1$ |
|
| 251 |
if (ref_forms.length != ref_freqs.length) {
|
|
| 252 |
System.out.println("Cannot alter index frequencies with the '"+referenceCorpus+"' empty table.");
|
|
| 253 |
return false; |
|
| 254 |
} |
|
| 255 |
HashMap<String, Integer> ref_counts = new HashMap<String, Integer>(); |
|
| 256 |
for(int i = 0 ; i < ref_forms.length ; i++) ref_counts.put(ref_forms[i], ref_freqs[i]); |
|
| 286 | 257 |
|
| 258 |
for (org.txm.index.core.functions.Line l : this.getAllLines()) {
|
|
| 259 |
String key = l.toString(); |
|
| 260 |
if (ref_counts.containsKey(key)) {
|
|
| 261 |
int[] f = {ref_counts.get(key)};
|
|
| 262 |
l.setCounts(f, 0); |
|
| 263 |
} |
|
| 264 |
} |
|
| 265 |
this.updateFminFmax(); |
|
| 266 |
return true; |
|
| 267 |
//voc.toTxt(new File("/home/mdecorde/TEMP/after.tsv"), "UTF-8", "\t", "");
|
|
| 268 |
} |
|
| 269 |
|
|
| 270 |
@Override |
|
| 271 |
public boolean canCompute() {
|
|
| 272 |
if (getCorpus() == null && getPartition() == null) {
|
|
| 273 |
System.out.println("Corpus or partition not set");
|
|
| 274 |
return false; |
|
| 275 |
} |
|
| 276 |
|
|
| 277 |
if (pProperties == null || pProperties.size() == 0) {
|
|
| 278 |
System.out.println("No property set.");
|
|
| 279 |
return false; |
|
| 280 |
} |
|
| 281 |
|
|
| 282 |
if (pQuery == null || pQuery.getQueryString().length() == 0) {
|
|
| 283 |
System.out.println("No query set.");
|
|
| 284 |
return false; |
|
| 285 |
} |
|
| 286 |
|
|
| 287 |
return true; |
|
| 288 |
} |
|
| 289 |
|
|
| 290 |
@Override |
|
| 291 |
public void clean() {
|
|
| 292 |
try {
|
|
| 293 |
if (writer != null) {
|
|
| 294 |
this.writer.flush(); |
|
| 295 |
this.writer.close(); |
|
| 296 |
} |
|
| 297 |
} catch (IOException e) {
|
|
| 298 |
org.txm.utils.logger.Log.printStackTrace(e); |
|
| 299 |
} |
|
| 300 |
} |
|
| 301 |
|
|
| 287 | 302 |
/** |
| 288 | 303 |
* Initializes the index using a lexicon. |
| 289 | 304 |
* |
| ... | ... | |
| 304 | 319 |
lexicon.compute(monitor); |
| 305 | 320 |
} |
| 306 | 321 |
|
| 307 |
this.nLines = lexicon.nbrOfToken();
|
|
| 322 |
this.nTotalTokens = lexicon.nbrOfToken();
|
|
| 308 | 323 |
String[] forms = lexicon.getForms(); |
| 309 | 324 |
int[] freqs = lexicon.getFreq(); |
| 310 | 325 |
int[] ids = lexicon.getIds(); |
| ... | ... | |
| 355 | 370 |
this.releaseSemaphore(); |
| 356 | 371 |
} |
| 357 | 372 |
|
| 358 |
|
|
| 359 | 373 |
/** |
| 360 | 374 |
* Equals. |
| 361 | 375 |
* |
| ... | ... | |
| 373 | 387 |
return false; |
| 374 | 388 |
} |
| 375 | 389 |
|
| 390 |
|
|
| 376 | 391 |
/** |
| 377 | 392 |
* remove linen which frequency is not in the [Fmin,Fmax] inverval. |
| 378 | 393 |
* |
| ... | ... | |
| 391 | 406 |
int f = line.getFrequency(); |
| 392 | 407 |
if (pFminFilter != null && f < pFminFilter) { // if its frequency is not in the interval, remove it
|
| 393 | 408 |
|
| 394 |
nLines -= line.getFrequency();
|
|
| 409 |
nTotalTokens -= line.getFrequency();
|
|
| 395 | 410 |
lines.remove(i); |
| 396 | 411 |
i--; |
| 397 | 412 |
continue; // no need to go further the line is removed |
| 398 | 413 |
} |
| 399 | 414 |
if (pFmaxFilter != null && f > pFmaxFilter) { // if its frequency is not in the interval, remove it
|
| 400 | 415 |
|
| 401 |
nLines -= line.getFrequency();
|
|
| 416 |
nTotalTokens -= line.getFrequency();
|
|
| 402 | 417 |
lines.remove(i); |
| 403 | 418 |
i--; |
| 404 | 419 |
} |
| ... | ... | |
| 510 | 525 |
return lexicon; |
| 511 | 526 |
} |
| 512 | 527 |
|
| 528 |
public boolean getLexiconMode() {
|
|
| 529 |
return this.lexiconMode; |
|
| 530 |
} |
|
| 531 |
|
|
| 513 | 532 |
/** |
| 514 | 533 |
* return the lines from le "start"th one to the "end"th one. |
| 515 | 534 |
* |
| ... | ... | |
| 623 | 642 |
|
| 624 | 643 |
|
| 625 | 644 |
|
| 645 |
public String getPropertySeparator() {
|
|
| 646 |
return pPropertySeparator ; |
|
| 647 |
} |
|
| 648 |
|
|
| 626 | 649 |
/** |
| 627 | 650 |
* Gets the query. |
| 628 | 651 |
* |
| ... | ... | |
| 654 | 677 |
} |
| 655 | 678 |
|
| 656 | 679 |
/** |
| 657 |
* Gets the t.
|
|
| 680 |
* Gets the number of tokens found
|
|
| 658 | 681 |
* |
| 659 | 682 |
* @return the number of tokens returned by the selection |
| 660 | 683 |
*/ |
| 661 | 684 |
public int getT() {
|
| 662 |
return nLines;
|
|
| 685 |
return nTotalTokens;
|
|
| 663 | 686 |
} |
| 664 | 687 |
|
| 688 |
public int getTopIndex() {
|
|
| 689 |
return pTopIndex; |
|
| 690 |
} |
|
| 691 |
|
|
| 665 | 692 |
/** |
| 666 | 693 |
* Gets the v. |
| 667 | 694 |
* |
| ... | ... | |
| 696 | 723 |
QueryResult result = corpus.query(pQuery, "index", true); //$NON-NLS-1$ |
| 697 | 724 |
boolean isTargetUsed = CQPEngine.getCqiClient().subCorpusHasField(result.getQualifiedCqpId(), ICqiClient.CQI_CONST_FIELD_TARGET); |
| 698 | 725 |
int nbresults = result.getNMatch(); |
| 699 |
this.nLines += nbresults; // get number of tokens
|
|
| 726 |
this.nTotalTokens += nbresults; // get number of tokens
|
|
| 700 | 727 |
|
| 701 | 728 |
// System.out.println("nLines : "+nLines);
|
| 702 | 729 |
List<Match> matches = null; |
| ... | ... | |
| 814 | 841 |
|
| 815 | 842 |
} |
| 816 | 843 |
|
| 844 |
public void setLexiconMode(boolean mode) {
|
|
| 845 |
this.lexiconMode = mode; |
|
| 846 |
} |
|
| 847 |
|
|
| 817 | 848 |
/** |
| 818 | 849 |
* update the lines counts. |
| 819 | 850 |
*/ |
| ... | ... | |
| 829 | 860 |
} |
| 830 | 861 |
} |
| 831 | 862 |
|
| 863 |
public void setNLinesPerPage(int nLinesPerPage) {
|
|
| 864 |
this.pNLinesPerPage = Math.max(nLinesPerPage, 1); |
|
| 865 |
} |
|
| 866 |
|
|
| 832 | 867 |
public void setParameters(List<Property> props) {
|
| 833 | 868 |
this.pQuery = new Query("[]");
|
| 834 | 869 |
this.pProperties = props; |
| 835 | 870 |
this.lexicon = null; |
| 836 |
this.dirty = true; |
|
| 837 | 871 |
} |
| 838 | 872 |
|
| 839 | 873 |
public void setParameters(Query query, List<Property> props, Integer filterFmin, Integer filterFmax, Integer filterVmax, Integer nLinesPerPage) {
|
| ... | ... | |
| 843 | 877 |
if (filterFmin != null) this.pFminFilter = filterFmin; |
| 844 | 878 |
if (filterVmax != null) this.pVmaxFilter = filterVmax; |
| 845 | 879 |
if (nLinesPerPage != null) this.pNLinesPerPage = nLinesPerPage; |
| 846 |
this.dirty = true; |
|
| 847 | 880 |
} |
| 848 | 881 |
|
| 849 | 882 |
@Override |
| ... | ... | |
| 857 | 890 |
Integer nLinesPerPage = (Integer) parameters.get("nLinesPerPage");
|
| 858 | 891 |
|
| 859 | 892 |
this.setParameters(query, props, filterFmin, filterFmax, filterVmax, nLinesPerPage); |
| 860 |
this.saveParameters(); |
|
| 861 | 893 |
} catch (Exception e) {
|
| 862 | 894 |
System.out.println("Error while setting parameters of Index: "+e.getLocalizedMessage());
|
| 863 | 895 |
Log.printStackTrace(e); |
| ... | ... | |
| 866 | 898 |
return true; |
| 867 | 899 |
} |
| 868 | 900 |
|
| 901 |
|
|
| 902 |
public void setTopLine(int i) {
|
|
| 903 |
pTopIndex = Math.max(i, 0); |
|
| 904 |
} |
|
| 905 |
|
|
| 906 |
public void setVMax(int maxFilter) {
|
|
| 907 |
this.pVmaxFilter = maxFilter; |
|
| 908 |
} |
|
| 909 |
|
|
| 869 | 910 |
/** |
| 870 | 911 |
* Sort lines. |
| 871 | 912 |
* |
| ... | ... | |
| 876 | 917 |
LineComparator lc = new LineComparator(mode, reverse); |
| 877 | 918 |
lc.initialize(this.getCorpus()); |
| 878 | 919 |
Collections.sort(lines, lc); |
| 920 |
this.pTopIndex = 0; // return to the first page |
|
| 879 | 921 |
} |
| 880 | 922 |
|
| 881 | 923 |
/** |
| ... | ... | |
| 973 | 1015 |
writer.close(); |
| 974 | 1016 |
} |
| 975 | 1017 |
|
| 976 |
|
|
| 977 | 1018 |
/** |
| 978 | 1019 |
* Write the lines between from and to on a writer. |
| 979 | 1020 |
* |
| ... | ... | |
| 1050 | 1091 |
Fmax = f; |
| 1051 | 1092 |
} |
| 1052 | 1093 |
} |
| 1053 |
|
|
| 1054 |
@Override |
|
| 1055 |
public boolean canCompute() {
|
|
| 1056 |
if (getCorpus() == null && getPartition() == null) {
|
|
| 1057 |
System.out.println("Corpus or partition not set");
|
|
| 1058 |
return false; |
|
| 1059 |
} |
|
| 1060 |
|
|
| 1061 |
if (pProperties == null || pProperties.size() == 0) {
|
|
| 1062 |
System.out.println("No property set.");
|
|
| 1063 |
return false; |
|
| 1064 |
} |
|
| 1065 |
|
|
| 1066 |
if (pQuery == null || pQuery.getQueryString().length() == 0) {
|
|
| 1067 |
System.out.println("No query set.");
|
|
| 1068 |
return false; |
|
| 1069 |
} |
|
| 1070 |
|
|
| 1071 |
return true; |
|
| 1072 |
} |
|
| 1073 |
|
|
| 1074 |
@Override |
|
| 1075 |
public boolean saveParameters() {
|
|
| 1076 |
// TODO Auto-generated method stub |
|
| 1077 |
return false; |
|
| 1078 |
} |
|
| 1079 | 1094 |
} |
| tmp/org.txm.searchengine.cqp.rcp/META-INF/MANIFEST.MF (revision 542) | ||
|---|---|---|
| 13 | 13 |
org.eclipse.ui |
| 14 | 14 |
Export-Package: org.txm.rcp.commands.base, |
| 15 | 15 |
org.txm.searchengine.cqp.rcp, |
| 16 |
org.txm.searchengine.cqp.rcp.command, |
|
| 16 | 17 |
org.txm.searchengine.cqp.rcp.editor, |
| 17 | 18 |
org.txm.searchengine.cqp.rcp.preferences |
| tmp/org.txm.searchengine.cqp.rcp/src/org/txm/searchengine/cqp/rcp/editor/DiagnosticEditor.java (revision 542) | ||
|---|---|---|
| 55 | 55 |
} |
| 56 | 56 |
|
| 57 | 57 |
@Override |
| 58 |
public void refresh() {
|
|
| 58 |
public void refresh(boolean update) {
|
|
| 59 | 59 |
super.refresh(); |
| 60 | 60 |
File file = diag.getHTMLFile(); |
| 61 | 61 |
if (file.exists()) {
|
| tmp/org.txm.searchengine.cqp.rcp/src/org/txm/searchengine/cqp/rcp/Messages.java (revision 542) | ||
|---|---|---|
| 19 | 19 |
public static String CQPPreferencePage_18; |
| 20 | 20 |
|
| 21 | 21 |
static {
|
| 22 |
System.out.println("INIT: "+Messages.class.getPackage().getName());
|
|
| 22 | 23 |
Utf8NLS.initializeMessages(Messages.class); |
| 23 | 24 |
} |
| 24 | 25 |
} |
| tmp/org.txm.searchengine.cqp.rcp/src/org/txm/searchengine/cqp/rcp/messages.properties (revision 542) | ||
|---|---|---|
| 2 | 2 |
#Eclipse modern messages class |
| 3 | 3 |
#Mon Feb 10 11:04:14 CET 2014 |
| 4 | 4 |
|
| 5 |
OK=OK |
|
| 6 |
REFRESH=Refresh |
|
| 7 |
CGU_TITLE=Terms of service |
|
| 8 |
CGU_MESSAGE=<p>TXM is published under the GNU GPL 2 license <<a href="https://www.gnu.org/licenses/gpl-2.0.en.html">https://www.gnu.org/licenses/gpl-2.0.en.html</a>>. |
|
| 9 |
CGU_CHECKMESSAGE=I accept the licence and I undertake to cite TXM for acknowledging my use of TXM in my research work \n(see the Citation section of the <http://textometrie.ens-lyon.fr/spip.php?rubrique61> page). |
|
| 10 |
|
|
| 11 | 5 |
|
| 12 |
About_Menu_Label = About TXM... |
|
| 13 |
|
|
| 14 |
AdapterFactory_0 = ** Warning: the corpus {0} is corrupted. Some commands won''t work correctly.
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
ERROR = Error: |
|
| 18 |
|
|
| 19 |
AssistedQueryWidget_0 = Open the query assistant |
|
| 20 |
|
|
| 21 | 6 |
CANT_CREATE_GRAPHIC = ** Cannot create the graphic |
| 22 | 7 |
|
| 23 | 8 |
CQPPreferenceInitializer_0 = localhost |
| ... | ... | |
| 35 | 20 |
CQPPreferencePage_17 = Path to CWB server initialisation file |
| 36 | 21 |
CQPPreferencePage_18 = Additionnal &options for the CWB server: |
| 37 | 22 |
|
| 38 |
Cannot_ask_simple_when_advance = Cannot ask for the simple tab when the user has selected the advanced tab |
|
| 39 |
|
|
| 40 |
ComplexSortSelector_0 = sort keys: |
|
| 41 |
ComplexSortSelector_1 = Complex sort: |
|
| 42 |
ComplexSortSelector_2 = Sort |
|
| 43 |
ComplexSortSelector_5 = ** Error during sort: {0}
|
|
| 44 |
ComplexSortSelector_6 = default |
|
| 45 |
|
|
| 46 |
ComplexSort_0 = Opening complex sort dialog |
|
| 47 |
ComplexSort_1 = &Multiple Sort |
|
| 48 |
ComplexSort_10 = Invalid comparator |
|
| 49 |
ComplexSort_11 = you must select at least 2 comparators |
|
| 50 |
ComplexSort_12 = Adding to selection |
|
| 51 |
ComplexSort_14 = Remove from selection |
|
| 52 |
ComplexSort_16 = Moving up the selection |
|
| 53 |
ComplexSort_18 = Moving down the selection |
|
| 54 |
ComplexSort_2 = Define and use a composite sorter |
|
| 55 |
ComplexSort_3 = Select a composite sorter |
|
| 56 |
ComplexSort_4 = &New |
|
| 57 |
ComplexSort_5 = Create a new sorter |
|
| 58 |
ComplexSort_6 = Name: |
|
| 59 |
ComplexSort_9 = Name is mandatory. |
|
| 60 |
|
|
| 61 | 23 |
ComplexSubcorpusPanel_0 = Match |
| 62 | 24 |
ComplexSubcorpusPanel_1 = All criteria |
| 63 | 25 |
ComplexSubcorpusPanel_16 = does not contain |
| ... | ... | |
| 69 | 31 |
ComputeDiagnostic_0 = Selection is not structured |
| 70 | 32 |
ComputeDiagnostic_1 = Error: selection is not a corpus: |
| 71 | 33 |
|
| 72 |
|
|
| 73 | 34 |
ONE_RESULT = Done: one result. |
| 74 | 35 |
|
| 75 |
ConvertCorpus_0 = Corpus conversion failed. |
|
| 76 |
|
|
| 77 |
|
|
| 78 |
CreatePartitionDialog_0 = Create Partition |
|
| 79 |
CreatePartitionDialog_1 = Simple |
|
| 80 |
CreatePartitionDialog_10 = Error: the partition created has no part |
|
| 81 |
CreatePartitionDialog_16 = Queries cannot be left empty. |
|
| 82 |
CreatePartitionDialog_2 = &Structure: |
|
| 83 |
CreatePartitionDialog_3 = Assisted |
|
| 84 |
CreatePartitionDialog_4 = &Property: |
|
| 85 |
CreatePartitionDialog_5 = Advanced |
|
| 86 |
CreatePartitionDialog_6 = &Name: |
|
| 87 |
CreatePartitionDialog_7 = Part |
|
| 88 |
CreatePartitionDialog_8 = No part was defined |
|
| 89 |
CreatePartitionDialog_9 = No partition name was specified. The name is {0}
|
|
| 90 |
|
|
| 91 |
CreatePartition_0 = Creating a new partition with {0}
|
|
| 92 |
CreatePartition_2 = ** Error: the partition was not created |
|
| 93 |
CreatePartition_5 = Done: {0} items
|
|
| 94 |
CreatePartition_55 = Done: {0} items for {1} occurrences
|
|
| 95 |
CreatePartition_6 = Done: {0} parts
|
|
| 96 |
|
|
| 97 |
CreateSubCorpus_0 = ** Error: subcorpus was not created |
|
| 98 |
CreateSubCorpus_1 = No selection for: |
|
| 99 |
CreateSubCorpus_2 = Failed to get last CQP error: |
|
| 100 |
CreateSubCorpus_3 = Selection is not a corpus: |
|
| 101 |
CreateSubCorpus_begin = Creating a sub-corpus in the Search Engine |
|
| 102 |
CreateSubCorpus_create = Creating a sub-corpus on {0}
|
|
| 103 |
|
|
| 104 |
CreateSubcorpusDialog_0 = Create subcorpus |
|
| 105 |
CreateSubcorpusDialog_10 = &Query: |
|
| 106 |
CreateSubcorpusDialog_11 = Invalid name |
|
| 107 |
CreateSubcorpusDialog_13 = Invalid query |
|
| 108 |
CreateSubcorpusDialog_14 = Query cannot be left empty. |
|
| 109 |
CreateSubcorpusDialog_6 = &Value: |
|
| 110 |
CreateSubcorpusDialog_8 = No subcorpus name was specified. We've generated one. |
|
| 111 |
|
|
| 112 |
CreateSubcorpus_7 = Compute SubCorpus on {0}. Structs: {1} & props {2}: {3}
|
|
| 113 |
CreateSubcorpus_8 = Done: {0} created
|
|
| 114 |
CreateSubcorpus_9 = Compute SubCorpus on {0}. Query: {1}
|
|
| 115 |
|
|
| 116 |
DONE = Done: {0}
|
|
| 117 |
|
|
| 118 |
DefineReferencePattern_0 = References display options |
|
| 119 |
DefineReferencePattern_1 = References &display options |
|
| 120 |
DefineReferencePattern_2 = References display options |
|
| 121 |
DefineReferencePattern_3 = References &sort options |
|
| 122 |
DefineReferencePattern_4 = References sort options |
|
| 123 |
DefineReferencePattern_5 = References sort options |
|
| 124 |
|
|
| 125 |
DeleteFile_0 = Are you sure you want to delete to sort |
|
| 126 |
DeleteFile_2 = ** Failed to delete file |
|
| 127 |
|
|
| 128 | 36 |
DeleteInCorporaView_1 = ** Failed to delete subcorpus {0}
|
| 129 | 37 |
DeleteInCorporaView_2 = ** Failed to delete partition {0}
|
| 130 | 38 |
|
| 131 |
DeleteLines_0 = The table must contain at least one line |
|
| 132 |
DeleteLines_1 = Are you sure ? |
|
| 133 |
|
|
| 134 |
DeleteObject_0 = Deleting {0}, continue ?
|
|
| 135 |
DeleteObject_1 = Failed to remove |
|
| 136 |
DeleteObject_10 = Deleted: {0}
|
|
| 137 |
DeleteObject_3 = Error: delete() returned 'false' |
|
| 138 |
DeleteObject_4 = Error while deleting {0}: {1}
|
|
| 139 |
DeleteObject_5 = Deleting {0}
|
|
| 140 |
|
|
| 141 | 39 |
DiagnosticPreferencePage_1 = Description |
| 142 | 40 |
DiagnosticPreferencePage_2 = Maximum values to display |
| 143 | 41 |
DiagnosticPreferencePage_3 = Order partition parts by size |
| ... | ... | |
| 173 | 71 |
|
| 174 | 72 |
GraphicalLogger_0 = Error {0}
|
| 175 | 73 |
|
| 176 |
GroovyConsole_4 = \nConsole reports an Internal error. |
|
| 177 |
GroovyConsole_5 = The error is: |
|
| 178 |
|
|
| 179 |
ImportDialog_0 = Import setup - {0}
|
|
| 180 |
ImportDialog_1 = Source directory: |
|
| 181 |
ImportDialog_13 = This directory seems to contain a binary corpus |
|
| 182 |
ImportDialog_14 = This computer encoding: |
|
| 183 |
ImportDialog_16 = Guess: |
|
| 184 |
ImportDialog_19 = This computer language: |
|
| 185 |
ImportDialog_22 = Select: |
|
| 186 |
ImportDialog_23 = Options |
|
| 187 |
ImportDialog_4 = Sources characters encoding: |
|
| 188 |
ImportDialog_5 = Main language: |
|
| 189 |
ImportDialog_6 = Tokenizer parameter file: |
|
| 190 |
|
|
| 191 |
ImportFormEditor_0 = Warning: the import script is missing: {0}
|
|
| 192 |
ImportFormEditor_1 = {0} Import
|
|
| 193 |
|
|
| 194 |
ImportPreferencePage_0 = Character encoding |
|
| 195 |
ImportPreferencePage_2 = metadata.csv file format |
|
| 196 |
ImportPreferencePage_3 = Clipboard |
|
| 197 |
ImportPreferencePage_4 = Default language |
|
| 198 |
ImportPreferencePage_5 = Note: Use '??' value to guess. |
|
| 199 |
|
|
| 200 |
ImportSelectedText_0 = Import clipboard text |
|
| 201 |
ImportSelectedText_1 = clipboard |
|
| 202 |
ImportSelectedText_10 = Identified Language |
|
| 203 |
ImportSelectedText_12 = Using language |
|
| 204 |
ImportSelectedText_2 = ** Clipboard is empty |
|
| 205 |
ImportSelectedText_3 = Confirm |
|
| 206 |
ImportSelectedText_4 = The corpus and the corpus {0} will be deleted
|
|
| 207 |
ImportSelectedText_6 = ** Internal error: ImportSelectedText failed to get default project |
|
| 208 |
|
|
| 209 | 74 |
InternalCorpusView_0 = Error while computing corpus summary |
| 210 | 75 |
InternalCorpusView_1 = Reload |
| 211 | 76 |
InternalCorpusView_2 = Error: getText: {0}
|
| ... | ... | |
| 214 | 79 |
|
| 215 | 80 |
LastCQPError = Last CQP error: |
| 216 | 81 |
|
| 217 |
LoadBinaryCorpus_0 = : OK |
|
| 218 |
LoadBinaryCorpus_1 = Failed to remove old backup of corpus: |
|
| 219 |
LoadBinaryCorpus_10 = The new binary corpus ' |
|
| 220 |
LoadBinaryCorpus_11 = ' could not be loaded. |
|
| 221 |
LoadBinaryCorpus_12 = Restoring previous corpus... |
|
| 222 |
LoadBinaryCorpus_13 = Failed to delete corrupted corpus: |
|
| 223 |
LoadBinaryCorpus_14 = . Could not restore |
|
| 224 |
LoadBinaryCorpus_15 = Failed to restore backup corpus: |
|
| 225 |
LoadBinaryCorpus_2 = Failed to backup the corpus to: |
|
| 226 |
LoadBinaryCorpus_3 = : FAIL (reason= |
|
| 227 |
LoadBinaryCorpus_4 = Failed to get the new binary corpus |
|
| 228 |
LoadBinaryCorpus_5 = No corpus found in the binary corpus. |
|
| 229 |
LoadBinaryCorpus_6 = Testing the new CQP corpus: |
|
| 230 |
LoadBinaryCorpus_7 = ) |
|
| 231 | 82 |
|
| 232 | 83 |
NumberOfLines = Number of lines: |
| 233 | 84 |
|
| ... | ... | |
| 278 | 129 |
QueryAssistDialog_34 = separated by at least 1 word |
| 279 | 130 |
QueryAssistDialog_8 = a word with its property |
| 280 | 131 |
|
| 281 |
|
|
| 282 | 132 |
RefreshingCorporaView = Refreshing corpora... |
| 283 | 133 |
|
| 284 |
|
|
| 285 | 134 |
SEARCH = &Search |
| 286 | 135 |
|
| 287 |
|
|
| 288 | 136 |
SetContextSize_1 = &Contexts display options |
| 289 | 137 |
SetContextSize_2 = Contexts display options |
| 290 | 138 |
SetContextSize_3 = Left context size |
| tmp/org.txm.utils/.settings/org.eclipse.jdt.ui.prefs (revision 542) | ||
|---|---|---|
| 1 |
eclipse.preferences.version=1 |
|
| 2 |
formatter_profile=_Mine |
|
| 3 |
formatter_settings_version=12 |
|
| 0 | 4 | |
| tmp/org.txm.utils/.settings/org.eclipse.jdt.core.prefs (revision 542) | ||
|---|---|---|
| 5 | 5 |
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error |
| 6 | 6 |
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error |
| 7 | 7 |
org.eclipse.jdt.core.compiler.source=1.6 |
| 8 |
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false |
|
| 9 |
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 |
|
| 10 |
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 |
|
| 11 |
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 |
|
| 12 |
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 |
|
| 13 |
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 |
|
| 14 |
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 |
|
| 15 |
org.eclipse.jdt.core.formatter.alignment_for_assignment=0 |
|
| 16 |
org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 |
|
| 17 |
org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 |
|
| 18 |
org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 |
|
| 19 |
org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 |
|
| 20 |
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 |
|
| 21 |
org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 |
|
| 22 |
org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 |
|
| 23 |
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 |
|
| 24 |
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 |
|
| 25 |
org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 |
|
| 26 |
org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 |
|
| 27 |
org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 |
|
| 28 |
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 |
|
| 29 |
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 |
|
| 30 |
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 |
|
| 31 |
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 |
|
| 32 |
org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 |
|
| 33 |
org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 |
|
| 34 |
org.eclipse.jdt.core.formatter.blank_lines_after_package=1 |
|
| 35 |
org.eclipse.jdt.core.formatter.blank_lines_before_field=0 |
|
| 36 |
org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 |
|
| 37 |
org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 |
|
| 38 |
org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 |
|
| 39 |
org.eclipse.jdt.core.formatter.blank_lines_before_method=1 |
|
| 40 |
org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 |
|
| 41 |
org.eclipse.jdt.core.formatter.blank_lines_before_package=0 |
|
| 42 |
org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 |
|
| 43 |
org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 |
|
| 44 |
org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line |
|
| 45 |
org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line |
|
| 46 |
org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line |
|
| 47 |
org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line |
|
| 48 |
org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line |
|
| 49 |
org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line |
|
| 50 |
org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line |
|
| 51 |
org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line |
|
| 52 |
org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line |
|
| 53 |
org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line |
|
| 54 |
org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line |
|
| 55 |
org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line |
|
| 56 |
org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false |
|
| 57 |
org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false |
|
| 58 |
org.eclipse.jdt.core.formatter.comment.format_block_comments=true |
|
| 59 |
org.eclipse.jdt.core.formatter.comment.format_header=false |
|
| 60 |
org.eclipse.jdt.core.formatter.comment.format_html=true |
|
| 61 |
org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true |
|
| 62 |
org.eclipse.jdt.core.formatter.comment.format_line_comments=true |
|
| 63 |
org.eclipse.jdt.core.formatter.comment.format_source_code=true |
|
| 64 |
org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true |
|
| 65 |
org.eclipse.jdt.core.formatter.comment.indent_root_tags=true |
|
| 66 |
org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert |
|
| 67 |
org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert |
|
| 68 |
org.eclipse.jdt.core.formatter.comment.line_length=80 |
|
| 69 |
org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true |
|
| 70 |
org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true |
|
| 71 |
org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false |
|
| 72 |
org.eclipse.jdt.core.formatter.compact_else_if=true |
|
| 73 |
org.eclipse.jdt.core.formatter.continuation_indentation=2 |
|
| 74 |
org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 |
|
| 75 |
org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off |
|
| 76 |
org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on |
|
| 77 |
org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false |
|
| 78 |
org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true |
|
| 79 |
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true |
|
| 80 |
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true |
|
| 81 |
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true |
|
| 82 |
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true |
|
| 83 |
org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true |
|
| 84 |
org.eclipse.jdt.core.formatter.indent_empty_lines=false |
|
| 85 |
org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true |
|
| 86 |
org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true |
|
| 87 |
org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true |
|
| 88 |
org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false |
|
| 89 |
org.eclipse.jdt.core.formatter.indentation.size=4 |
|
| 90 |
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert |
|
| 91 |
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert |
|
| 92 |
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert |
|
| 93 |
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert |
|
| 94 |
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert |
|
| 95 |
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert |
|
| 96 |
org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert |
|
| 97 |
org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert |
|
| 98 |
org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert |
|
| 99 |
org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert |
|
| 100 |
org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert |
|
| 101 |
org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert |
|
| 102 |
org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert |
|
| 103 |
org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert |
|
| 104 |
org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert |
|
| 105 |
org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert |
|
| 106 |
org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert |
|
| 107 |
org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert |
|
| 108 |
org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert |
|
| 109 |
org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert |
|
| 110 |
org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert |
|
| 111 |
org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert |
|
| 112 |
org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert |
|
| 113 |
org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert |
|
| 114 |
org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert |
|
| 115 |
org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert |
|
| 116 |
org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert |
|
| 117 |
org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert |
|
| 118 |
org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert |
|
| 119 |
org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert |
|
| 120 |
org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert |
|
| 121 |
org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert |
|
| 122 |
org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert |
|
| 123 |
org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert |
|
| 124 |
org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert |
|
| 125 |
org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert |
|
| 126 |
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert |
|
| 127 |
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert |
|
| 128 |
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert |
|
| 129 |
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert |
|
| 130 |
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert |
|
| 131 |
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert |
|
| 132 |
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert |
|
| 133 |
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert |
|
| 134 |
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert |
|
| 135 |
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert |
|
| 136 |
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert |
|
| 137 |
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert |
|
| 138 |
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert |
|
| 139 |
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert |
|
| 140 |
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert |
|
| 141 |
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert |
|
| 142 |
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert |
|
| 143 |
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert |
|
| 144 |
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert |
|
| 145 |
org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert |
|
| 146 |
org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert |
|
| 147 |
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert |
|
| 148 |
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert |
|
| 149 |
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert |
|
| 150 |
org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert |
|
| 151 |
org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert |
|
| 152 |
org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert |
|
| 153 |
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert |
|
| 154 |
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert |
|
| 155 |
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert |
|
| 156 |
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert |
|
| 157 |
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert |
|
| 158 |
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert |
|
| 159 |
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert |
|
| 160 |
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert |
|
| 161 |
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert |
|
| 162 |
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert |
|
| 163 |
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert |
|
| 164 |
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert |
|
| 165 |
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert |
|
| 166 |
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert |
|
| 167 |
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert |
|
| 168 |
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert |
|
| 169 |
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert |
|
| 170 |
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert |
|
| 171 |
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert |
|
| 172 |
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert |
|
| 173 |
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert |
|
| 174 |
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert |
|
| 175 |
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert |
|
| 176 |
org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert |
|
| 177 |
org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert |
|
| 178 |
org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert |
|
| 179 |
org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert |
|
| 180 |
org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert |
|
| 181 |
org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert |
|
| 182 |
org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert |
|
| 183 |
org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert |
|
| 184 |
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert |
|
| 185 |
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert |
|
| 186 |
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert |
|
| 187 |
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert |
|
| 188 |
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert |
|
| 189 |
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert |
|
| 190 |
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert |
|
| 191 |
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert |
|
| 192 |
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert |
|
| 193 |
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert |
|
| 194 |
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert |
|
| 195 |
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert |
|
| 196 |
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert |
|
| 197 |
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert |
|
| 198 |
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert |
|
| 199 |
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert |
|
| 200 |
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert |
|
| 201 |
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert |
|
| 202 |
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert |
|
| 203 |
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert |
|
| 204 |
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert |
|
| 205 |
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert |
|
| 206 |
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert |
|
| 207 |
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert |
|
| 208 |
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert |
|
| 209 |
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert |
|
| 210 |
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert |
|
| 211 |
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert |
|
| 212 |
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert |
|
| 213 |
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert |
|
| 214 |
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert |
|
| 215 |
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert |
|
| 216 |
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert |
|
| 217 |
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert |
|
| 218 |
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert |
|
| 219 |
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert |
|
| 220 |
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert |
|
| 221 |
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert |
|
| 222 |
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert |
|
| 223 |
org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert |
|
| 224 |
org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert |
|
| 225 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert |
|
| 226 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert |
|
| 227 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert |
|
| 228 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert |
|
| 229 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert |
|
| 230 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert |
|
| 231 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert |
|
| 232 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert |
|
| 233 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert |
|
| 234 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert |
|
| 235 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert |
|
| 236 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert |
|
| 237 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert |
|
| 238 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert |
|
| 239 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert |
|
| 240 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert |
|
| 241 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert |
|
| 242 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert |
|
| 243 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert |
|
| 244 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert |
|
| 245 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert |
|
| 246 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert |
|
| 247 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert |
|
| 248 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert |
|
| 249 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert |
|
| 250 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert |
|
| 251 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert |
|
| 252 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert |
|
| 253 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert |
|
| 254 |
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert |
|
| 255 |
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert |
|
| 256 |
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert |
|
| 257 |
org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert |
|
| 258 |
org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert |
|
| 259 |
org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert |
|
| 260 |
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert |
|
| 261 |
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert |
|
| 262 |
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert |
|
| 263 |
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert |
|
| 264 |
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert |
|
| 265 |
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert |
|
| 266 |
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert |
|
| 267 |
org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert |
|
| 268 |
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert |
|
| 269 |
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert |
|
| 270 |
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert |
|
| 271 |
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert |
|
| 272 |
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert |
|
| 273 |
org.eclipse.jdt.core.formatter.join_lines_in_comments=true |
|
| 274 |
org.eclipse.jdt.core.formatter.join_wrapped_lines=true |
|
| 275 |
org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false |
|
| 276 |
org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false |
|
| 277 |
org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false |
|
| 278 |
org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false |
|
| 279 |
org.eclipse.jdt.core.formatter.lineSplit=400 |
|
| 280 |
org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false |
|
| 281 |
org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false |
|
| 282 |
org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 |
|
| 283 |
org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 |
|
| 284 |
org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true |
|
| 285 |
org.eclipse.jdt.core.formatter.tabulation.char=tab |
|
| 286 |
org.eclipse.jdt.core.formatter.tabulation.size=4 |
|
| 287 |
org.eclipse.jdt.core.formatter.use_on_off_tags=false |
|
| 288 |
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false |
|
| 289 |
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true |
|
| 290 |
org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true |
|
| 291 |
org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true |
|
| tmp/org.txm.utils/src/org/txm/utils/messages/Utf8NLS.java (revision 542) | ||
|---|---|---|
| 25 | 25 |
*/ |
| 26 | 26 |
public static void initializeMessages(final Class<?> clazz) {
|
| 27 | 27 |
// initialize resource bundle |
| 28 |
initializeMessages(clazz.getPackage().toString(), clazz);
|
|
| 28 |
initializeMessages(clazz.getPackage().getName()+".messages", clazz);
|
|
| 29 | 29 |
} |
| 30 | 30 |
|
| 31 | 31 |
/** |
| ... | ... | |
| 58 | 58 |
catch(Exception e) {
|
| 59 | 59 |
// e.printStackTrace(); |
| 60 | 60 |
} |
| 61 |
|
|
| 62 | 61 |
} |
| 63 | 62 |
} |
| 64 | 63 |
} |
| tmp/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/messages/CooccurrenceCoreMessages.java (revision 542) | ||
|---|---|---|
| 25 | 25 |
public static String Cooccurrence_8; |
| 26 | 26 |
public static String Cooccurrence_9; |
| 27 | 27 |
|
| 28 |
public static String CooccurrencesEditor_23; |
|
| 29 |
public static String CooccurrencesEditor_24; |
|
| 28 | 30 |
public static String CooccurrencesEditor_27; |
| 29 | 31 |
public static String CooccurrencesEditor_28; |
| 30 | 32 |
public static String CooccurrencesEditor_29; |
| tmp/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/functions/CooccurrenceMaths.java (revision 542) | ||
|---|---|---|
| 1 |
package org.txm.cooccurrence.core.functions; |
|
| 2 |
|
|
| 3 |
import org.txm.cooccurrence.core.messages.CooccurrenceCoreMessages; |
|
| 4 |
|
|
| 5 |
/** |
|
| 6 |
* static methods to compute cooccurrences scores |
|
| 7 |
* |
|
| 8 |
* @author mdecorde |
|
| 9 |
* |
|
| 10 |
*/ |
|
| 11 |
public class CooccurrenceMaths {
|
|
| 12 |
|
|
| 13 |
/** The array of xyz values. */ |
|
| 14 |
static double[] a = new double[101]; |
|
| 15 |
|
|
| 16 |
/** The arbicoln. */ |
|
| 17 |
static double[][] arbicoln = new double[101][101]; |
|
| 18 |
|
|
| 19 |
/** The cof. */ |
|
| 20 |
static double[] cof = { 76.18009172947146, -86.50532032941677,
|
|
| 21 |
24.01409824083091, -1.231739572450155, 0.1208650973866179e-2, |
|
| 22 |
-0.5395239384953e-5 }; |
|
| 23 |
|
|
| 24 |
/** The maxprec. */ |
|
| 25 |
static double maxprec = 0.0; |
|
| 26 |
|
|
| 27 |
|
|
| 28 |
static {// void init_rbicoln()
|
|
| 29 |
int i, j; |
|
| 30 |
|
|
| 31 |
for (i = 0; i < 101; i++) |
|
| 32 |
for (j = 0; j < 101; j++) |
|
| 33 |
arbicoln[i][j] = -1; |
|
| 34 |
} |
|
| 35 |
|
|
| 36 |
/** |
|
| 37 |
* Factln. |
|
| 38 |
* |
|
| 39 |
* @param n the n |
|
| 40 |
* @return the double |
|
| 41 |
*/ |
|
| 42 |
static double factln(int n) {
|
|
| 43 |
if (n < 0) |
|
| 44 |
System.err.println(CooccurrenceCoreMessages.Cooccurrence_102); |
|
| 45 |
if (n <= 1) |
|
| 46 |
return 0.0; |
|
| 47 |
if (n <= 100) |
|
| 48 |
return (a[n] > 0) ? a[n] : (a[n] = gammln(n + 1.0)); |
|
| 49 |
else |
|
| 50 |
return gammln(n + 1.0); |
|
| 51 |
} |
|
| 52 |
|
|
| 53 |
/** |
|
| 54 |
* Gammln. |
|
| 55 |
* |
|
| 56 |
* @param xx the xx |
|
| 57 |
* @return the double |
|
| 58 |
*/ |
|
| 59 |
static double gammln(double xx) {
|
|
| 60 |
double x, y, tmp, ser; |
|
| 61 |
|
|
| 62 |
int j; |
|
| 63 |
|
|
| 64 |
y = x = xx; |
|
| 65 |
tmp = x + 5.5; |
|
| 66 |
tmp -= (x + 0.5) * Math.log(tmp); |
|
| 67 |
ser = 1.000000000190015; |
|
| 68 |
for (j = 0; j <= 5; j++) |
|
| 69 |
ser += cof[j] / ++y; |
|
| 70 |
return -tmp + Math.log(2.5066282746310005 * ser / x); |
|
| 71 |
} |
|
| 72 |
|
|
| 73 |
// Maths |
|
| 74 |
/** |
|
| 75 |
* Proba binom. |
|
| 76 |
* |
|
| 77 |
* @param inf the inf |
|
| 78 |
* @param ing the ing |
|
| 79 |
* @param s the s |
|
| 80 |
* @param cf the cf |
|
| 81 |
* @return the double |
|
| 82 |
*/ |
|
| 83 |
public static double ProbaBinom(long inf, long ing, long s, long cf) {
|
|
| 84 |
long mode = (long) Math.floor((double) ((inf + 1) * (ing + 1)) |
|
| 85 |
/ (inf + ing + s + 2)); |
|
| 86 |
long f, g, k; |
|
| 87 |
double P = 0.0, p, lp, dnm; |
|
| 88 |
int lpflag = 1; |
|
| 89 |
|
|
| 90 |
if (cf <= mode) |
|
| 91 |
return (1.0); |
|
| 92 |
|
|
| 93 |
if (inf < ing) {
|
|
| 94 |
f = inf; |
|
| 95 |
g = ing; |
|
| 96 |
} else {
|
|
| 97 |
f = ing; |
|
| 98 |
g = inf; |
|
| 99 |
} |
|
| 100 |
; |
|
| 101 |
|
|
| 102 |
dnm = rbicoln((int) (f + g + s), (int) g); |
|
| 103 |
for (k = cf; k <= f; k++) {
|
|
| 104 |
p = Math.exp(rbicoln((int) f, (int) k) |
|
| 105 |
+ rbicoln((int) (s + g), (int) (g - k)) - dnm); |
|
| 106 |
// if (lpflag > 0) { // rentre dedans de toute facon
|
|
| 107 |
lp = p; |
|
| 108 |
lpflag = 0; |
|
| 109 |
// }; |
|
| 110 |
if ((lp / p) < maxprec) |
|
| 111 |
break; |
|
| 112 |
lp = p; |
|
| 113 |
P += p; |
|
| 114 |
} |
|
| 115 |
; |
|
| 116 |
|
|
| 117 |
return (P); |
|
| 118 |
|
|
| 119 |
/* |
|
| 120 |
* for (k = 0; k < cf; k++) { p = exp(rbicoln(f,
|
|
| 121 |
* k)+rbicoln(s+g,g-k)-rbicoln(f+g+s, g)); P += p; }; return(fabs(1-P)); |
|
| 122 |
*/ |
|
| 123 |
} |
|
| 124 |
|
|
| 125 |
/** |
|
| 126 |
* Rbicoln. |
|
| 127 |
* |
|
| 128 |
* @param n the n |
|
| 129 |
* @param k the k |
|
| 130 |
* @return the double |
|
| 131 |
*/ |
|
| 132 |
static double rbicoln(int n, int k) {
|
|
| 133 |
if (n < 0) |
|
| 134 |
System.err.println(CooccurrenceCoreMessages.Cooccurrence_103); |
|
| 135 |
if (k < 0) |
|
| 136 |
System.err.println(CooccurrenceCoreMessages.Cooccurrence_103); |
|
| 137 |
if (n <= 100 && k <= 100) |
|
| 138 |
return (arbicoln[n][k] >= 0) ? arbicoln[n][k] |
|
| 139 |
: (arbicoln[n][k] = factln(n) - factln(k) - factln(n - k)); |
|
| 140 |
else |
|
| 141 |
return factln(n) - factln(k) - factln(n - k); |
|
| 142 |
} |
|
| 143 |
|
|
| 144 |
/** |
|
| 145 |
* Calcmode. |
|
| 146 |
* |
|
| 147 |
* @param inf the inf |
|
| 148 |
* @param ing the ing |
|
| 149 |
* @param s the s |
|
| 150 |
* @param cf the cf |
|
| 151 |
* @return the long |
|
| 152 |
*/ |
|
| 153 |
long calcmode(long inf, long ing, long s, long cf) {
|
|
| 154 |
return (long) Math.floor((double) ((inf + 1) * (ing + 1)) |
|
| 155 |
/ (inf + ing + s + 2)); |
|
| 156 |
} |
|
| 157 |
} |
|
| 0 | 158 | |
| tmp/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/functions/Cooccurrence.java (revision 542) | ||
|---|---|---|
| 75 | 75 |
*/ |
| 76 | 76 |
public class Cooccurrence extends TXMResult {
|
| 77 | 77 |
|
| 78 |
/** The a. */ |
|
| 79 |
static double[] a = new double[101]; |
|
| 80 |
|
|
| 81 |
/** The arbicoln. */ |
|
| 82 |
static double[][] arbicoln = new double[101][101]; |
|
| 83 |
|
|
| 84 |
/** The cof. */ |
|
| 85 |
static double[] cof = { 76.18009172947146, -86.50532032941677,
|
|
| 86 |
24.01409824083091, -1.231739572450155, 0.1208650973866179e-2, |
|
| 87 |
-0.5395239384953e-5 }; |
|
| 88 |
|
|
| 89 |
/** The maxprec. */ |
|
| 90 |
static double maxprec = 0.0; |
|
| 91 |
|
|
| 92 | 78 |
/** The nocooc. */ |
| 93 | 79 |
protected static int nocooc = 1; |
| 94 | 80 |
/** The prefix r. */ |
| ... | ... | |
| 173 | 159 |
/** The P. */ |
| 174 | 160 |
int P = -1; |
| 175 | 161 |
|
| 162 |
String pCooccurentQueryFilter = "[]"; //$NON-NLS-1$ |
|
| 176 | 163 |
/** The mincof. */ |
| 177 | 164 |
private int pFCoocFilter; |
| 178 | 165 |
/** The minf. */ |
| 179 | 166 |
private int pFminFilter; |
| 180 | 167 |
/** The include xpivot. */ |
| 181 | 168 |
private boolean pIncludeXpivot; |
| 182 |
/** The structural unit context limit. */ |
|
| 183 |
StructuralUnit pStructuralUnitLimit; |
|
| 184 | 169 |
/** The maxleft. */ |
| 185 | 170 |
int pMaxLeftContextSize; |
| 186 | 171 |
/** The maxright. */ |
| ... | ... | |
| 196 | 181 |
/** The minscore. */ |
| 197 | 182 |
private double pScoreMinFilter; |
| 198 | 183 |
|
| 199 |
String pCooccurentQueryFilter = "[]"; //$NON-NLS-1$ |
|
| 184 |
/** The structural unit context limit. */ |
|
| 185 |
StructuralUnit pStructuralUnitLimit; |
|
| 200 | 186 |
|
| 201 | 187 |
/** The reference corpus to use = the R symbol that point to a matrix WordxFreqs. */ |
| 202 | 188 |
String referenceCorpus; |
| ... | ... | |
| 210 | 196 |
/** The writer. */ |
| 211 | 197 |
private BufferedWriter writer; |
| 212 | 198 |
|
| 213 |
static {// void init_rbicoln()
|
|
| 214 |
int i, j; |
|
| 215 |
|
|
| 216 |
for (i = 0; i < 101; i++) |
|
| 217 |
for (j = 0; j < 101; j++) |
|
| 218 |
arbicoln[i][j] = -1; |
|
| 219 |
} |
|
| 220 |
|
|
| 221 | 199 |
/** |
| 222 |
* Factln. |
|
| 223 |
* |
|
| 224 |
* @param n the n |
|
| 225 |
* @return the double |
|
| 200 |
* Creates an empty <link>Cooccurrence</link> object, child of the specified <link>Corpus</link>. |
|
| 201 |
* @param corpus |
|
| 226 | 202 |
*/ |
| 227 |
static double factln(int n) {
|
|
| 228 |
if (n < 0) |
|
| 229 |
System.err.println(CooccurrenceCoreMessages.Cooccurrence_102); |
|
| 230 |
if (n <= 1) |
|
| 231 |
return 0.0; |
|
| 232 |
if (n <= 100) |
|
| 233 |
return (a[n] > 0) ? a[n] : (a[n] = gammln(n + 1.0)); |
|
| 234 |
else |
|
| 235 |
return gammln(n + 1.0); |
|
| 203 |
public Cooccurrence(Corpus corpus) {
|
|
| 204 |
super(corpus); |
|
| 236 | 205 |
} |
| 237 | 206 |
|
| 238 | 207 |
/** |
| 239 |
* Gammln. |
|
| 240 |
* |
|
| 241 |
* @param xx the xx |
|
| 242 |
* @return the double |
|
| 208 |
* |
|
| 209 |
* @param watcher |
|
| 210 |
* @param pQuery |
|
| 211 |
* @param pProperties |
|
| 212 |
* @param pStructuralUnitLimit |
|
| 213 |
* @param minleft |
|
| 214 |
* @param maxleft |
|
| 215 |
* @param minright |
|
| 216 |
* @param maxright |
|
| 217 |
* @param minf |
|
| 218 |
* @param minscore |
|
| 219 |
* @param mincof |
|
| 220 |
* @param pIncludeXpivot |
|
| 221 |
* @param buildLexicalTableWithCooccurrents |
|
| 222 |
* @return |
|
| 243 | 223 |
*/ |
| 244 |
static double gammln(double xx) {
|
|
| 245 |
double x, y, tmp, ser; |
|
| 224 |
protected boolean _compute(boolean update) {
|
|
| 225 |
//FIXME: debug |
|
| 226 |
//System.out.println("cooc: "+corpus+" "+query+" "+properties+" "+limit+" "+maxLeft+" "+minLeft+" "+minRight+" "+maxRight+" "+minFreq+" "+minCof+" "+minScore+" "+includeXpivot);
|
|
| 246 | 227 |
|
| 247 |
int j; |
|
| 228 |
monitor.subTask(CooccurrenceCoreMessages.CooccurrencesEditor_27); |
|
| 229 |
try {
|
|
| 230 |
if (!this.stepQueryLimits()) {
|
|
| 231 |
return false; |
|
| 232 |
} |
|
| 248 | 233 |
|
| 249 |
y = x = xx; |
|
| 250 |
tmp = x + 5.5; |
|
| 251 |
tmp -= (x + 0.5) * Math.log(tmp); |
|
| 252 |
ser = 1.000000000190015; |
|
| 253 |
for (j = 0; j <= 5; j++) |
|
| 254 |
ser += cof[j] / ++y; |
|
| 255 |
return -tmp + Math.log(2.5066282746310005 * ser / x); |
|
| 256 |
} |
|
| 234 |
monitor.subTask(CooccurrenceCoreMessages.CooccurrencesEditor_28); |
|
| 235 |
if (!this.stepGetMatches()) {
|
|
| 236 |
return false; |
|
| 237 |
} |
|
| 238 |
monitor.worked(10); |
|
| 257 | 239 |
|
| 258 |
// Maths |
|
| 259 |
/** |
|
| 260 |
* Proba binom. |
|
| 261 |
* |
|
| 262 |
* @param inf the inf |
|
| 263 |
* @param ing the ing |
|
| 264 |
* @param s the s |
|
| 265 |
* @param cf the cf |
|
| 266 |
* @return the double |
|
| 267 |
*/ |
|
| 268 |
public static double ProbaBinom(long inf, long ing, long s, long cf) {
|
|
| 269 |
long mode = (long) Math.floor((double) ((inf + 1) * (ing + 1)) |
|
| 270 |
/ (inf + ing + s + 2)); |
|
| 271 |
long f, g, k; |
|
| 272 |
double P = 0.0, p, lp, dnm; |
|
| 273 |
int lpflag = 1; |
|
| 240 |
monitor.subTask(CooccurrenceCoreMessages.CooccurrencesEditor_29); |
|
| 241 |
if (!this.stepBuildSignatures()) |
|
| 242 |
return false; |
|
| 243 |
monitor.worked(10); |
|
| 274 | 244 |
|
| 275 |
if (cf <= mode) |
|
| 276 |
return (1.0); |
|
| 245 |
monitor.subTask(CooccurrenceCoreMessages.CooccurrencesEditor_30); |
|
| 246 |
if (!this.stepCount()) {
|
|
| 247 |
return false; |
|
| 248 |
} |
|
| 249 |
monitor.worked(10); |
|
| 277 | 250 |
|
| 278 |
if (inf < ing) {
|
|
| 279 |
f = inf; |
|
| 280 |
g = ing; |
|
| 281 |
} else {
|
|
| 282 |
f = ing; |
|
| 283 |
g = inf; |
|
| 284 |
} |
|
| 285 |
; |
|
| 251 |
monitor.subTask(CooccurrenceCoreMessages.CooccurrencesEditor_31); |
|
| 252 |
this.acquireSemaphore(); |
|
| 253 |
if (!this.stepBuildLexicalTable()) {
|
|
| 254 |
return false; |
|
| 255 |
} |
|
| 256 |
monitor.worked(10); |
|
| 257 |
this.releaseSemaphore(); |
|
| 286 | 258 |
|
| 287 |
dnm = rbicoln((int) (f + g + s), (int) g); |
|
| 288 |
for (k = cf; k <= f; k++) {
|
|
| 289 |
p = Math.exp(rbicoln((int) f, (int) k) |
|
| 290 |
+ rbicoln((int) (s + g), (int) (g - k)) - dnm); |
|
| 291 |
// if (lpflag > 0) { // rentre dedans de toute facon
|
|
| 292 |
lp = p; |
|
| 293 |
lpflag = 0; |
|
| 294 |
// }; |
|
| 295 |
if ((lp / p) < maxprec) |
|
| 296 |
break; |
|
| 297 |
lp = p; |
|
| 298 |
P += p; |
|
| 259 |
monitor.subTask(CooccurrenceCoreMessages.CooccurrencesEditor_32); |
|
| 260 |
this.acquireSemaphore(); |
|
| 261 |
if (!this.stepGetScores()) {
|
|
| 262 |
return false; |
|
| 263 |
} |
|
| 264 |
monitor.worked(10); |
|
| 265 |
this.releaseSemaphore(); |
|
| 299 | 266 |
} |
| 300 |
; |
|
| 267 |
// user canceling |
|
| 268 |
catch(ThreadDeath e) {
|
|
| 269 |
return false; |
|
| 270 |
} |
|
| 271 |
catch(Exception e) {
|
|
| 272 |
e.printStackTrace(); |
|
| 273 |
return false; |
|
| 274 |
} |
|
| 301 | 275 |
|
| 302 |
return (P); |
|
| 303 |
|
|
| 304 |
/* |
|
| 305 |
* for (k = 0; k < cf; k++) { p = exp(rbicoln(f,
|
|
| 306 |
* k)+rbicoln(s+g,g-k)-rbicoln(f+g+s, g)); P += p; }; return(fabs(1-P)); |
|
| 307 |
*/ |
|
| 308 |
|
|
| 276 |
return true; |
|
| 309 | 277 |
} |
| 310 | 278 |
|
| 311 | 279 |
/** |
| 312 |
* Rbicoln. |
|
| 313 |
* |
|
| 314 |
* @param n the n |
|
| 315 |
* @param k the k |
|
| 316 |
* @return the double |
|
| 317 |
*/ |
|
| 318 |
static double rbicoln(int n, int k) {
|
|
| 319 |
if (n < 0) |
|
| 320 |
System.err.println(CooccurrenceCoreMessages.Cooccurrence_103); |
|
| 321 |
if (k < 0) |
|
| 322 |
System.err.println(CooccurrenceCoreMessages.Cooccurrence_103); |
|
| 323 |
if (n <= 100 && k <= 100) |
|
| 324 |
return (arbicoln[n][k] >= 0) ? arbicoln[n][k] |
|
| 325 |
: (arbicoln[n][k] = factln(n) - factln(k) - factln(n - k)); |
|
| 326 |
else |
|
| 327 |
return factln(n) - factln(k) - factln(n - k); |
|
| 328 |
} |
|
| 329 |
|
|
| 330 |
/** |
|
| 331 |
* Creates an empty <link>Cooccurrence</link> object, child of the specified <link>Corpus</link>. |
|
| 332 |
* @param corpus |
|
| 333 |
*/ |
|
| 334 |
public Cooccurrence(Corpus corpus) {
|
|
| 335 |
super(corpus, null); |
|
| 336 |
} |
|
| 337 |
|
|
| 338 |
/** |
|
| 339 | 280 |
* As r matrix. |
| 340 | 281 |
* |
| 341 | 282 |
* @return the string |
| ... | ... | |
| 380 | 321 |
return symbol; |
| 381 | 322 |
} |
| 382 | 323 |
|
| 383 |
/** |
|
| 384 |
* Calcmode. |
|
| 385 |
* |
|
| 386 |
* @param inf the inf |
|
| 387 |
* @param ing the ing |
|
| 388 |
* @param s the s |
|
| 389 |
* @param cf the cf |
|
| 390 |
* @return the long |
|
| 391 |
*/ |
|
| 392 |
long calcmode(long inf, long ing, long s, long cf) {
|
|
| 393 |
return (long) Math.floor((double) ((inf + 1) * (ing + 1)) |
|
| 394 |
/ (inf + ing + s + 2)); |
|
| 324 |
@Override |
|
| 325 |
public boolean canCompute() {
|
|
| 326 |
|
|
| 327 |
if (pQuery == null || pQuery.isEmpty()) {
|
|
| 328 |
System.out.println("No query set.");
|
|
| 329 |
return false; |
|
| 330 |
} |
|
| 331 |
|
|
| 332 |
if (pProperties == null) {
|
|
| 333 |
System.out.println("No properties set.");
|
|
| 334 |
return false; |
|
| 335 |
} |
|
| 336 |
|
|
| 337 |
if (getCorpus() == null) {
|
|
| 338 |
System.out.println("No corpus set.");
|
|
| 339 |
return false; |
|
| 340 |
} |
|
| 341 |
|
|
| 342 |
if (pQuery.getQueryString().length() == 0) {
|
|
| 343 |
System.out.println("Query is empty.");
|
|
| 344 |
return false; |
|
| 345 |
} |
|
| 346 |
|
|
| 347 |
if (pProperties.size() == 0) {
|
|
| 348 |
System.out.println("No properties filled.");
|
|
| 349 |
return false; |
|
| 350 |
} |
|
| 351 |
|
|
| 352 |
return true; |
|
| 395 | 353 |
} |
| 396 | 354 |
|
| 397 | 355 |
@Override |
| ... | ... | |
| 427 | 385 |
} |
| 428 | 386 |
|
| 429 | 387 |
/** |
| 430 |
* |
|
| 431 |
* @param watcher |
|
| 432 |
* @param pQuery |
|
| 433 |
* @param pProperties |
|
| 434 |
* @param pStructuralUnitLimit |
|
| 435 |
* @param minleft |
|
| 436 |
* @param maxleft |
|
| 437 |
* @param minright |
|
| 438 |
* @param maxright |
|
Formats disponibles : Unified diff