Révision 1901
tmp/org.txm.index.core/src/org/txm/index/core/messages/IndexCoreMessages.java (revision 1901) | ||
---|---|---|
24 | 24 |
|
25 | 25 |
public static String formsAndFrequenciesTablesMustHaveTheSameSize; |
26 | 26 |
public static String lexiconColonP0; |
27 |
public static String computingTheLexiconOfSubcorpusP0; |
|
27 |
public static String computingTheLexiconOfSubcorpusP0; |
|
28 |
public static String lexiconOfP0InTheP1Corpus; |
|
29 |
public static String indexOfP0PropertiesP1InTheP2Corpus; |
|
30 |
|
|
31 |
|
|
28 | 32 |
|
29 | 33 |
static { |
30 | 34 |
// initialize resource bundle |
tmp/org.txm.index.core/src/org/txm/index/core/messages/messages_ru.properties (revision 1901) | ||
---|---|---|
1 |
#TXM messages generated by the PluginMessagesManager class |
|
2 |
#Tue Dec 18 10:24:08 CET 2018 |
|
3 |
indexColonCorpusP0queryP1propertiesP2FminP3FmaxP4=Индекс\:\n\tКорпус {0}\n\tЗапрос {1}\n\tсвойства {2}\n\tFmin {3}\n\tFmax {4} |
|
4 |
indexColonPartitionP0queryP1propertiesP2FminP3FmaxP4=Индекс\:\n\tРаспределение {0}\n\tЗапрос {1}\n\tсвойства {2}\n\tFmin {3}\n\tFmax {4} |
|
5 |
lexicon=Словарь |
|
6 |
RESULT_TYPE=Индекс |
|
1 |
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/) |
|
2 |
#TXM messages generated by the PluginMessagesManager class |
|
3 |
#Tue Dec 18 10:24:08 CET 2018 |
|
4 |
|
|
5 |
RESULT_TYPE = Индекс |
|
6 |
|
|
7 |
indexColonCorpusP0queryP1propertiesP2FminP3FmaxP4 = Индекс:\n\ Корпус {0}\n\ Запрос {1}\n\ свойства {2}\n\ Fmin {3}\n\ Fmax {4} |
|
8 |
|
|
9 |
indexColonPartitionP0queryP1propertiesP2FminP3FmaxP4 = Индекс:\n\ Распределение {0}\n\ Запрос {1}\n\ свойства {2}\n\ Fmin {3}\n\ Fmax {4} |
|
10 |
|
|
11 |
indexOfP0PropertiesP1InTheP2Corpus = |
|
12 |
|
|
13 |
lexicon = Словарь |
|
14 |
|
|
15 |
lexiconOfP0InTheP1Corpus = |
tmp/org.txm.index.core/src/org/txm/index/core/messages/messages_fr.properties (revision 1901) | ||
---|---|---|
1 |
#TXM messages generated by the PluginMessagesManager class |
|
2 |
#Tue Dec 18 10:24:08 CET 2018 |
|
3 |
computingTheLexiconOfSubcorpusP0=Calcul du lexique du sous-corpus {0}… |
|
4 |
consoleColonP0=Console \: {0} |
|
5 |
error_failedToExportLexiconColonP0=** Échec de l'exportation du lexique\: {0}. |
|
6 |
formsAndFrequenciesTablesMustHaveTheSameSize=Les tableaux des formes et des fréquences doivent avoir la même longueur. |
|
7 |
indexColonCorpusP0queryP1propertiesP2FminP3FmaxP4=Index\:\n\tCorpus {0}\n\tRequête {1}\n\tPropriétés {2}\n\tFmin {3}\n\tFmax {4} |
|
8 |
indexColonPartitionP0queryP1propertiesP2FminP3FmaxP4=Index\:\n\tPartition {0}\n\tRequête {1}\n\tPropriétés {2}\n\tFmin {3}\n\tFmax {4} |
|
9 |
lexicon=Lexique |
|
10 |
lexiconColonP0=Lexique \: {0} |
|
11 |
RESULT_TYPE=Index |
|
1 |
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/) |
|
2 |
#TXM messages generated by the PluginMessagesManager class |
|
3 |
#Tue Dec 18 10:24:08 CET 2018 |
|
4 |
|
|
5 |
RESULT_TYPE = Index |
|
6 |
|
|
7 |
computingTheLexiconOfSubcorpusP0 = Calcul du lexique du sous-corpus {0}… |
|
8 |
|
|
9 |
consoleColonP0 = Console : {0} |
|
10 |
|
|
11 |
error_failedToExportLexiconColonP0 = ** Échec de l'exportation du lexique: {0}. |
|
12 |
|
|
13 |
formsAndFrequenciesTablesMustHaveTheSameSize = Les tableaux des formes et des fréquences doivent avoir la même longueur. |
|
14 |
|
|
15 |
indexColonCorpusP0queryP1propertiesP2FminP3FmaxP4 = Index:\n\ Corpus {0}\n\ Requête {1}\n\ Propriétés {2}\n\ Fmin {3}\n\ Fmax {4} |
|
16 |
|
|
17 |
indexColonPartitionP0queryP1propertiesP2FminP3FmaxP4 = Index:\n\ Partition {0}\n\ Requête {1}\n\ Propriétés {2}\n\ Fmin {3}\n\ Fmax {4} |
|
18 |
|
|
19 |
indexOfP0PropertiesP1InTheP2Corpus = Index de <{0}>, propriété(s) [{1}], dans le corpus {2}... |
|
20 |
|
|
21 |
lexicon = Lexique |
|
22 |
|
|
23 |
lexiconColonP0 = Lexique : {0} |
|
24 |
|
|
25 |
lexiconOfP0InTheP1Corpus = Lexique de la propriété [{0}] dans le corpus {1}... |
tmp/org.txm.index.core/src/org/txm/index/core/messages/messages.properties (revision 1901) | ||
---|---|---|
1 |
#TXM messages generated by the PluginMessagesManager class |
|
2 |
#Tue Dec 18 10:24:08 CET 2018 |
|
3 |
computingTheLexiconOfSubcorpusP0=Computing the lexicon of sub-corpus {0}… |
|
4 |
consoleColonP0=Console\: {0} |
|
5 |
error_failedToExportLexiconColonP0=** Failed to export Lexicon \: {0}. |
|
6 |
formsAndFrequenciesTablesMustHaveTheSameSize=Forms and frequencies tables must have the same size. |
|
7 |
indexColonCorpusP0queryP1propertiesP2FminP3FmaxP4=Index\:\n\tCorpus {0}\n\tQuery {1}\n\tProperties {2}\n\tFmin {3}\n\tFmax {4} |
|
8 |
indexColonPartitionP0queryP1propertiesP2FminP3FmaxP4=Index\:\n\tPartition {0}\n\tQuery {1}\n\tProperties {2}\n\tFmin {3}\n\tFmax {4} |
|
9 |
lexicon=Lexicon |
|
10 |
lexiconColonP0=Lexicon\: {0} |
|
11 |
RESULT_TYPE=Index |
|
1 |
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/) |
|
2 |
#TXM messages generated by the PluginMessagesManager class |
|
3 |
#Tue Dec 18 10:24:08 CET 2018 |
|
4 |
|
|
5 |
RESULT_TYPE = Index |
|
6 |
|
|
7 |
computingTheLexiconOfSubcorpusP0 = Computing the lexicon of sub-corpus {0}… |
|
8 |
|
|
9 |
consoleColonP0 = Console: {0} |
|
10 |
|
|
11 |
error_failedToExportLexiconColonP0 = ** Failed to export Lexicon : {0}. |
|
12 |
|
|
13 |
formsAndFrequenciesTablesMustHaveTheSameSize = Forms and frequencies tables must have the same size. |
|
14 |
|
|
15 |
indexColonCorpusP0queryP1propertiesP2FminP3FmaxP4 = Index:\n\ Corpus {0}\n\ Query {1}\n\ Properties {2}\n\ Fmin {3}\n\ Fmax {4} |
|
16 |
|
|
17 |
indexColonPartitionP0queryP1propertiesP2FminP3FmaxP4 = Index:\n\ Partition {0}\n\ Query {1}\n\ Properties {2}\n\ Fmin {3}\n\ Fmax {4} |
|
18 |
|
|
19 |
indexOfP0PropertiesP1InTheP2Corpus = Index of <{0}>, properties [{1}], in the {2} corpus... |
|
20 |
|
|
21 |
lexicon = Lexicon |
|
22 |
|
|
23 |
lexiconColonP0 = Lexicon: {0} |
|
24 |
|
|
25 |
lexiconOfP0InTheP1Corpus = Lexicon of property [{0}] in the {1} corpus... |
tmp/org.txm.index.core/src/org/txm/index/core/functions/Lexicon.java (revision 1901) | ||
---|---|---|
32 | 32 |
|
33 | 33 |
import org.txm.core.messages.TXMCoreMessages; |
34 | 34 |
import org.txm.core.preferences.TXMPreferences; |
35 |
import org.txm.index.core.messages.IndexCoreMessages; |
|
35 | 36 |
import org.txm.searchengine.cqp.corpus.CQPCorpus; |
36 | 37 |
import org.txm.searchengine.cqp.corpus.CQPLexicon; |
37 | 38 |
import org.txm.searchengine.cqp.corpus.Property; |
38 | 39 |
import org.txm.searchengine.cqp.corpus.Subcorpus; |
40 |
import org.txm.searchengine.cqp.corpus.WordProperty; |
|
39 | 41 |
import org.txm.utils.logger.Log; |
40 | 42 |
|
41 | 43 |
/** |
... | ... | |
47 | 49 |
public class Lexicon extends Index { |
48 | 50 |
|
49 | 51 |
|
50 |
// /** The lexicon used to compute the index (if query = null || query == [] && properties.size() == 1 */ |
|
51 |
// protected CQPLexicon lexicon; |
|
52 |
|
|
53 | 52 |
public Lexicon(CQPCorpus parent) { |
54 | 53 |
super(parent); |
55 | 54 |
} |
... | ... | |
62 | 61 |
protected boolean _computeLines() { |
63 | 62 |
try { |
64 | 63 |
|
65 |
// this.query = new Query("[]"); //$NON-NLS-1$
|
|
64 |
//this.query = new Query("[]"); //$NON-NLS-1$ |
|
66 | 65 |
// this.props = new ArrayList<Property>(); |
67 | 66 |
// this.props.add(property); |
68 | 67 |
Property property = pProperties.get(0); |
69 | 68 |
|
70 |
CQPLexicon lexicon = CQPLexicon.getLexicon(getCorpus(), property, monitor); |
|
69 |
CQPLexicon lexicon = CQPLexicon.getLexicon(this.getCorpus(), property, monitor);
|
|
71 | 70 |
lexicon.setProperty(property); |
72 | 71 |
lexicon._compute(); |
73 | 72 |
|
... | ... | |
116 | 115 |
} |
117 | 116 |
|
118 | 117 |
@Override |
118 |
public String getComputingStartMessage() { |
|
119 |
return TXMCoreMessages.bind(IndexCoreMessages.lexiconOfP0InTheP1Corpus, WordProperty.propertiesToString(this.pProperties), this.getCorpus().getName()); |
|
120 |
} |
|
121 |
|
|
122 |
|
|
123 |
@Override |
|
119 | 124 |
public String getName() { |
120 | 125 |
try { |
121 | 126 |
return this.getParent().getSimpleName() + ": " + this.getSimpleName(); |
... | ... | |
134 | 139 |
return getParent().getSimpleName(); |
135 | 140 |
} |
136 | 141 |
} |
137 |
|
|
138 |
// /** |
|
139 |
// * |
|
140 |
// * @return the lexicon used to compute the result. The Lexicon is not altered |
|
141 |
// */ |
|
142 |
// public CQPLexicon getLexicon() { |
|
143 |
// return lexicon; |
|
144 |
// } |
|
142 |
|
|
145 | 143 |
} |
tmp/org.txm.index.core/src/org/txm/index/core/functions/Index.java (revision 1901) | ||
---|---|---|
692 | 692 |
} |
693 | 693 |
} |
694 | 694 |
|
695 |
@Override |
|
696 |
public String getComputingStartMessage() { |
|
697 |
return TXMCoreMessages.bind(IndexCoreMessages.indexOfP0PropertiesP1InTheP2Corpus, this.pQuery, WordProperty.propertiesToString(this.pProperties).replaceAll(TXMPreferences.LIST_SEPARATOR, ", "), this.getCorpus().getName()); //$NON-NLS-1$ |
|
698 |
} |
|
699 |
|
|
700 |
|
|
701 |
@Override |
|
702 |
public String getComputingDoneMessage() { |
|
703 |
if(this.lines.isEmpty()) { |
|
704 |
return TXMCoreMessages.common_noResults; |
|
705 |
} |
|
706 |
else { |
|
707 |
return TXMCoreMessages.bind(TXMCoreMessages.common_P0ItemsForP1Occurrences, this.lines.size(), this.nTotalTokens); |
|
708 |
} |
|
709 |
} |
|
710 |
|
|
711 |
|
|
695 | 712 |
/** |
696 | 713 |
* Gets the number of tokens found. |
697 | 714 |
* |
Formats disponibles : Unified diff