explosion/spacy-streamlit

Unexpected keyword errors

rory-hurley-gds opened this issue · 1 comments

Hello,

I aa looking to use spacy-streamlit to visualise custom sentences and entities output from my own model.

When running some of your example .py files, I have found errors
https://github.com/explosion/spacy-streamlit/tree/master/examples

03_visualize-ner-manual.py
The error says:
TypeError: visualize_ner() got an unexpected keyword argument 'manual'

04_visualize-ner-extra-options.pyThe error says:
TypeError: visualize_ner() got an unexpected keyword argument 'displacy_options'

I think this may be a big. Is there a way around this?

Hi! The examples have already been updated to the recent code, we'll make a new release for this soon. In the meantime, you can either use the latest code base from master, or simply remove those arguments from the call when you're running the example.