From 17f4376746f7fa3d8fbb0324e4cf0534e1cfa0ae Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Wed, 26 Aug 2020 15:48:20 +0200 Subject: [PATCH] [folia2salt] solved a few parser errors (proycon/folia#85) --- foliatools/folia2salt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/foliatools/folia2salt.py b/foliatools/folia2salt.py index c1a1881..a249125 100644 --- a/foliatools/folia2salt.py +++ b/foliatools/folia2salt.py @@ -178,7 +178,7 @@ def convert_tokens(doc, layers, **kwargs): E.edges({ "{http://www.w3.org/2001/XMLSchema-instance}type": "sDocumentStructure:STextualRelation", "source": f"//@nodes.{nodes_seqnr}", - "target": "//@nodes.{textnode}" + "target": f"//@nodes.{textnode}" }, E.labels({ "{http://www.w3.org/2001/XMLSchema-instance}type": "saltCore:SElementId", @@ -619,7 +619,7 @@ def convert_common_attributes(annotation,namespace, **kwargs): "{http://www.w3.org/2001/XMLSchema-instance}type": "saltCore:SMetaAnnotation", "namespace": namespace, "name": "confidence", - "value": "N::" + str(annotation.confidence) + "value": "F::" + str(annotation.confidence) }) if annotation.n is not None: