Révision 2235
tmp/org.txm.dictionary.rcp/src/org/txm/macro/frolex/MergeCLDMFLEXSMacro.groovy (revision 2235) | ||
---|---|---|
62 | 62 |
int nMerge = 0; |
63 | 63 |
int nSite = 0; |
64 | 64 |
int nLgerm = 0; |
65 |
// merge lgerm and site lemmas
|
|
65 |
// merge lgerm and site lemma |
|
66 | 66 |
while (key_site != null && key_lgerm != null) { |
67 | 67 |
|
68 | 68 |
def line = ["","","","","","","","","","","",""] |
... | ... | |
155 | 155 |
} |
156 | 156 |
} |
157 | 157 |
|
158 |
// write last Lgerm lemmas
|
|
158 |
// write last Lgerm lemma |
|
159 | 159 |
while (key_lgerm != null) { |
160 | 160 |
nLgerm++ |
161 | 161 |
def line = ["","","","","","","","","","","",""] |
... | ... | |
179 | 179 |
else key_lgerm = null |
180 | 180 |
} |
181 | 181 |
|
182 |
// write last site lemmas
|
|
182 |
// write last site lemma |
|
183 | 183 |
while (key_site != null) { |
184 | 184 |
nSite++ |
185 | 185 |
def line = ["","","","","","","","","","","",""] |
tmp/org.txm.dictionary.rcp/src/org/txm/macro/frolex/CreateFrolexMacro.groovy (revision 2235) | ||
---|---|---|
537 | 537 |
int n = bfmlex.recodeEntryProperties("pos", "pos", conversion_rules, "copier", true) // keep the other lines |
538 | 538 |
System.out.println("Done, "+n+" lines recoded.") |
539 | 539 |
|
540 |
System.out.println("Set punctuation lemmas")
|
|
540 |
System.out.println("Set punctuation lemma") |
|
541 | 541 |
n = bfmlex.recodeEntryProperties("word", "lemma", convPunctLemma, Dictionary.COPYDEST, true) |
542 | 542 |
if (n == -1) { |
543 | 543 |
System.out.println("** Conversion failed see errors logs") |
... | ... | |
545 | 545 |
} |
546 | 546 |
System.out.println("Done, "+n+" lines recoded.") |
547 | 547 |
|
548 |
System.out.println("Set num lemmas")
|
|
548 |
System.out.println("Set num lemma") |
|
549 | 549 |
n = bfmlex.recodeEntryProperties("word", "lemma", convNumLemma, Dictionary.COPYDEST, true) // copy previously created lemma |
550 | 550 |
System.out.println("Done, "+n+" lines recoded.") |
551 | 551 |
|
tmp/org.txm.dictionary.rcp/src/org/txm/dictionary/commands/ExportToTreeTagger.java (revision 2235) | ||
---|---|---|
140 | 140 |
|
141 | 141 |
writer.print(currentForm); |
142 | 142 |
|
143 |
for (String posValue : posFound.keySet()) { // for each pos, sort the lemmas
|
|
143 |
for (String posValue : posFound.keySet()) { // for each pos, sort the lemma |
|
144 | 144 |
|
145 | 145 |
ArrayList<String> lemmaValues = new ArrayList<String>(); |
146 | 146 |
lemmaValues.addAll(posFound.get(posValue)); |
Formats disponibles : Unified diff