Révision 3963
| TXM/trunk/bundles/org.txm.conllu.core/groovy/org/txm/scripts/importer/conllu/CoNLLUImporter.groovy (revision 3963) | ||
|---|---|---|
| 42 | 42 |
conlluSrcDirectory.deleteDir() |
| 43 | 43 |
conlluSrcDirectory.mkdirs() |
| 44 | 44 |
|
| 45 |
println "Convert CoNLL-U to XML-TEI..."
|
|
| 45 |
println "Split CoNLL-U files per text..."
|
|
| 46 | 46 |
if (!splitCoNLLUFiles(inputDirectory, conlluSrcDirectory, project)) {
|
| 47 | 47 |
return |
| 48 | 48 |
} |
| ... | ... | |
| 298 | 298 |
if (p == "feats") word[p] = "|"+word[p]+"|" |
| 299 | 299 |
if (p == "misc" && word[p].contains("XmlId=")) {
|
| 300 | 300 |
id = word[p].substring(word[p].indexOf("XmlId=") + 6)
|
| 301 |
if (id.contains("|")) { // more misc values after XmlId
|
|
| 301 |
if (id.contains("|")) { // more misc values after XmlId=
|
|
| 302 | 302 |
id = id.substring(0, id.indexOf("|"));
|
| 303 | 303 |
} |
| 304 | 304 |
} |
Formats disponibles : Unified diff