Skip to content

Commit

Permalink
Fix #85
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhangcs committed Apr 1, 2022
1 parent a9cf681 commit 021efc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supar/utils/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def get_labels(cls, sequence):
for i, s in enumerate(sequence, 1):
if s != '_':
for pair in s.split('|'):
edge, label = pair.split(':')
edge, label = pair.split(':', 1)
labels[i][int(edge)] = label
return labels

Expand Down

0 comments on commit 021efc5

Please sign in to comment.