Skip to content

Commit

Permalink
🐛 Fix bug in displacy serve method (#46)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Martinez <Marcos.Martinez.Galindo@ibm.com>
  • Loading branch information
marmg committed Mar 30, 2023
1 parent df6b2ca commit 311e1cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zshot/utils/displacy/displacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,8 @@ def _call_displacy(docs: Union[Iterable[Union[Doc]], Doc], style: str, method: s
return display(HTML('<span class="tex2jax_ignore">{}</span>'.format(html)))
return html

if method == "render":
kwargs.update({"jupyter": jupyter})

disp = getattr(s_displacy, method)
return disp(docs, style=style, options=options, jupyter=jupyter, **kwargs)
return disp(docs, style=style, options=options, **kwargs)

0 comments on commit 311e1cf

Please sign in to comment.