Skip to content

Commit

Permalink
[folia2salt] solved a few parser errors (proycon/folia#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Aug 26, 2020
1 parent 9745dbd commit 17f4376
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions foliatools/folia2salt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 17f4376

Please sign in to comment.