From 8728e6140c715d78ce4fc6aa78e1a67b70725d15 Mon Sep 17 00:00:00 2001 From: Stephan Oepen Date: Sat, 22 Aug 2020 19:02:20 +0200 Subject: [PATCH] cosmetics --- codec/pmb.py | 1 - codec/treex.py | 1 - score/smatch.py | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/codec/pmb.py b/codec/pmb.py index 303747a..e4abe88 100644 --- a/codec/pmb.py +++ b/codec/pmb.py @@ -2,7 +2,6 @@ import os.path; import re; import sys; -import xml.etree.ElementTree as ET; from graph import Graph; diff --git a/codec/treex.py b/codec/treex.py index 7fcd635..8000356 100644 --- a/codec/treex.py +++ b/codec/treex.py @@ -12,7 +12,6 @@ def walk(id, node, parent, nodes, edges, ns): raise Exception("treex.walk(): " "missing ‘id’ or ‘ord’ values while decoding tree #{}; exit." "".format(id)); -# print(i, o, node.findtext(ns + "t_lemma")); nodes.append((i, int(o) if o is not None else 0, node)); if edges is not None: diff --git a/score/smatch.py b/score/smatch.py index 7e7cc0c..e036192 100755 --- a/score/smatch.py +++ b/score/smatch.py @@ -18,7 +18,7 @@ def tuples(graph, prefix, values, faith = True): id += 1; if "anchors" in values and node.anchors is not None: anchor = score.core.anchor(node); - if graph.input: anchor = score.core.explode(graph.input, anchor) + if graph.input: anchor = score.core.explode(graph.input, anchor); attributes.append(("anchor", name, str(anchor))); if "labels" in values and node.label is not None: instance = node.label;