commit | 33669f7a90f667c6fc5d498b2808520e65ea921e | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Sun Mar 03 13:03:58 2024 +0100 |
committer | Marc Kupietz <kupietz@ids-mannheim.de> | Sun Mar 03 13:03:58 2024 +0100 |
tree | 098fff4de104bf1eecfda58c42160a9b322d127a | |
parent | 2af56b385a920f8b4a528ad25781a1471d871e2f [diff] |
Trim feature elements Change-Id: I51d74ca15889a517a8f4c4bcfc377cc27e86a7b4
diff --git a/app/src/main/kotlin/de/ids_mannheim/korapxmltools/KorapXml2Conllu.kt b/app/src/main/kotlin/de/ids_mannheim/korapxmltools/KorapXml2Conllu.kt index bdaf25b..e0d876a 100644 --- a/app/src/main/kotlin/de/ids_mannheim/korapxmltools/KorapXml2Conllu.kt +++ b/app/src/main/kotlin/de/ids_mannheim/korapxmltools/KorapXml2Conllu.kt
@@ -372,7 +372,7 @@ val fromTo = "${node.getAttribute("from")}-${node.getAttribute("to")}" IntStream.range(0, features.length).mapToObj(features::item).forEach { feature -> val attr = (feature as Element).getAttribute("name") - val value = feature.textContent + val value = feature.textContent.trim() when (attr) { "lemma" -> fs.lemma = value "upos" -> fs.upos = value