Skip to content

Commit

Permalink
Merge pull request #328 from aliqb/roo_label
Browse files Browse the repository at this point in the history
lower case root label
  • Loading branch information
imani authored May 2, 2024
2 parents 09886e2 + 2bb2e85 commit 1cb2f10
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 1cb2f10

Please sign in to comment.