Révision 2906
| tmp/org.txm.analec.rcp/src/org/txm/annotation/urs/URSAnnotationReIndexer.java (revision 2906) | ||
|---|---|---|
| 15 | 15 |
import org.txm.searchengine.cqp.corpus.MainCorpus; |
| 16 | 16 |
import org.txm.searchengine.cqp.corpus.Property; |
| 17 | 17 |
import org.txm.searchengine.cqp.serverException.CqiServerError; |
| 18 |
import org.txm.utils.logger.Log; |
|
| 18 | 19 |
|
| 19 | 20 |
import visuAnalec.donnees.Corpus; |
| 20 | 21 |
import visuAnalec.elements.Unite; |
| ... | ... | |
| 43 | 44 |
public boolean process() throws CqiClientException, IOException, CqiServerError {
|
| 44 | 45 |
|
| 45 | 46 |
int corpusSize = corpus.getSize(); |
| 46 |
|
|
| 47 |
if (corpusSize == 0) {
|
|
| 48 |
Log.warning("Error: The CQP corpus is empty ?");
|
|
| 49 |
return false; |
|
| 50 |
} |
|
| 47 | 51 |
String text = analecCorpus.getTexte(); |
| 48 | 52 |
int isearch = 0; // the current search start position |
| 49 | 53 |
|
| ... | ... | |
| 51 | 55 |
Property word = corpus.getProperty("word");
|
| 52 | 56 |
|
| 53 | 57 |
int positions[] = new int[corpusSize]; |
| 54 |
for (int i = 0; i < corpusSize; i++) |
|
| 58 |
for (int i = 0; i < corpusSize; i++) {
|
|
| 55 | 59 |
positions[i] = i; |
| 60 |
} |
|
| 56 | 61 |
|
| 57 | 62 |
int positionsCorrespondances[] = new int[corpusSize]; |
| 58 | 63 |
String strs[] = CQI.cpos2Str(word.getQualifiedName(), positions); |
Formats disponibles : Unified diff