Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
oepen committed Aug 22, 2020
1 parent a38d868 commit 8728e61
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion codec/pmb.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os.path;
import re;
import sys;
import xml.etree.ElementTree as ET;

from graph import Graph;

Expand Down
1 change: 0 additions & 1 deletion codec/treex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion score/smatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8728e61

Please sign in to comment.