Fix spans -> span for displacy style

This commit is contained in:
Lj Miranda 2023-04-27 12:27:07 +08:00
parent b3c77e3e43
commit bfd9701cef

View File

@ -200,7 +200,7 @@ def render_parses(
file_.write(html)
if spans:
html = displacy.render(docs[:limit], style="spans", page=True)
html = displacy.render(docs[:limit], style="span", page=True)
with (output_path / "spans.html").open("w", encoding="utf8") as file_:
file_.write(html)