Skip to content

Commit

Permalink
lower case root label
Browse files Browse the repository at this point in the history
  • Loading branch information
aliqb committed Mar 20, 2024
1 parent 09886e2 commit 2bb2e85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hazm/dependency_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def parse_tagged_sents(
raise Exception("MaltParser parsing failed: %s" % " ".join(cmd))

return (
DependencyGraph(item)
DependencyGraph(item, top_relation_label='root')
for item in open(output_file.name, encoding="utf8").read().split("\n\n") # noqa: SIM115, PTH123
if item.strip()
)
Expand Down

0 comments on commit 2bb2e85

Please sign in to comment.