Révision 1428
tmp/org.txm.cql2lsa.rcp/src/org/txm/functions/cql2lsa/ExpII.java (revision 1428) | ||
---|---|---|
424 | 424 |
return line; |
425 | 425 |
} |
426 | 426 |
|
427 |
public LexicalTable toLexicalTable() { |
|
427 |
public LexicalTableImpl toLexicalTable() {
|
|
428 | 428 |
|
429 | 429 |
int npart = texts.size(); |
430 | 430 |
int[][] freqs = new int[lines.size()][npart]; |
... | ... | |
446 | 446 |
} |
447 | 447 |
|
448 | 448 |
try { |
449 |
LexicalTable lt = new LexicalTable(corpus); |
|
450 |
lt.setUnitProperty(corpus.getProperty("word")); |
|
451 |
lt.setData(new LexicalTableImpl(freqs, rownames, colnames)); |
|
449 |
LexicalTableImpl lt = new LexicalTableImpl(freqs, rownames, colnames); |
|
452 | 450 |
return lt; |
453 | 451 |
} catch (Exception e) { |
454 | 452 |
org.txm.utils.logger.Log.printStackTrace(e); |
tmp/org.txm.lexicaltable.core/src/org/txm/lexicaltable/core/functions/LexicalTable.java (revision 1428) | ||
---|---|---|
137 | 137 |
super(parametersNodePath); |
138 | 138 |
} |
139 | 139 |
|
140 |
public LexicalTable(CQPCorpus corpus) { |
|
141 |
super(corpus); |
|
142 |
|
|
143 |
try { // create empty LT to store infos |
|
144 |
String[] rowNames = {}; |
|
145 |
String[] colNames = {}; |
|
146 |
int[][] matrix = new int[0][0]; |
|
147 |
this.statsData = new LexicalTableImpl(matrix, rowNames, colNames); |
|
148 |
} catch (Exception e) { |
|
149 |
e.printStackTrace(); |
|
150 |
} |
|
151 |
} |
|
152 |
|
|
140 | 153 |
@Override |
141 | 154 |
public boolean loadParameters() { |
142 | 155 |
try { |
Formats disponibles : Unified diff