Révision 2989
tmp/org.txm.core/src/java/org/txm/importer/scripts/xmltxm/AnnotationInjection.groovy (revision 2989) | ||
---|---|---|
187 | 187 |
} |
188 | 188 |
} |
189 | 189 |
} |
190 |
println links |
|
190 |
|
|
191 | 191 |
anaparser.close(); |
192 | 192 |
anainputData.close(); |
193 | 193 |
return links; |
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/importer/transcriber/compiler.groovy (revision 2989) | ||
---|---|---|
192 | 192 |
cwbEn.setDebug(debug); |
193 | 193 |
cwbMa.setDebug(debug); |
194 | 194 |
|
195 |
String uAttr = "u:0+n+spkid+who+scope+accent+s+time+check+dialect+type"; |
|
195 |
String uAttr = "u:0+n+spkid+who+scope+accent+start+time+check+dialect+type";
|
|
196 | 196 |
String textAttr ="text:0+base+project" |
197 | 197 |
if (trans != null) { |
198 | 198 |
for (String key : trans.keySet()) { |
... | ... | |
310 | 310 |
String wordid= ""; |
311 | 311 |
//def wordattributes = [:]; |
312 | 312 |
String anatype = ""; |
313 |
String anaresp = ""; |
|
313 | 314 |
String anavalue = ""; |
314 | 315 |
|
315 | 316 |
String formatedTime; |
... | ... | |
423 | 424 |
break; |
424 | 425 |
case "ana": |
425 | 426 |
flagAna = true; |
426 |
anavalue = ""; |
|
427 |
for (int i = 0 ; i < parser.getAttributeCount(); i++) |
|
427 |
anavalue = "" |
|
428 |
anaresp = "" |
|
429 |
anatype = "" |
|
430 |
for (int i = 0 ; i < parser.getAttributeCount(); i++) { |
|
428 | 431 |
if (parser.getAttributeLocalName(i).equals("type")) { |
429 | 432 |
anatype = parser.getAttributeValue(i).substring(1);//remove the # |
430 |
break;
|
|
433 |
continue;
|
|
431 | 434 |
} |
435 |
if (parser.getAttributeLocalName(i).equals("resp")) { |
|
436 |
anaresp = parser.getAttributeValue(i).substring(1);//remove the # |
|
437 |
continue; |
|
438 |
} |
|
439 |
} |
|
432 | 440 |
break; |
433 | 441 |
} |
434 | 442 |
break; |
... | ... | |
465 | 473 |
flagForm = false; |
466 | 474 |
break; |
467 | 475 |
case "ana": |
468 |
anavalues.put(anatype, anavalue) |
|
476 |
if (!anavalues.containsKey(anatype)) { // overwrite existing ana only if it's not the #txm resp |
|
477 |
anavalues.put(anatype, anavalue) |
|
478 |
} else if (!anaresp.equals("txm")) { |
|
479 |
anavalues.put(anatype, anavalue) |
|
480 |
} |
|
469 | 481 |
flagAna = false; |
470 | 482 |
break; |
471 | 483 |
case "w": |
Formats disponibles : Unified diff