commit | 2e4b3d6d602828757fdbec2bc48238867ff40244 | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Fri Sep 20 09:02:32 2024 +0200 |
committer | Marc Kupietz <kupietz@ids-mannheim.de> | Fri Sep 20 09:12:06 2024 +0200 |
tree | bb677f40763abc1c075f738cf3eb9973a71547a1 | |
parent | a92bacb0789aad3d263d78610af2224ea513c105 [diff] |
Remove spaces around dependency tags Change-Id: Ibe633617cc7cb27767cf4f6cc02a52c1e117beb7
diff --git a/app/src/main/kotlin/de/ids_mannheim/korapxmltools/MaltParserBridge.kt b/app/src/main/kotlin/de/ids_mannheim/korapxmltools/MaltParserBridge.kt index da8fb05..90883d0 100644 --- a/app/src/main/kotlin/de/ids_mannheim/korapxmltools/MaltParserBridge.kt +++ b/app/src/main/kotlin/de/ids_mannheim/korapxmltools/MaltParserBridge.kt
@@ -39,7 +39,7 @@ val head = edge.target.index val label = edge.toString() if (label.contains("DEPREL:")) { - val rel = edge.toString().substringAfter("DEPREL:") + val rel = edge.toString().substringAfter("DEPREL:").trim() val old = morpho?.get(sentenceTokenOffsets[head - 1]) morpho?.set( sentenceTokenOffsets[head - 1], KorapXml2Conllu.MorphoSpan(