spacy-streamlit icon indicating copy to clipboard operation
spacy-streamlit copied to clipboard

Unexpected keyword errors

Open rory-hurley-gds opened this issue 3 years ago • 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?

rory-hurley-gds avatar Jan 25 '22 08:01 rory-hurley-gds

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.

svlandeg avatar Jan 28 '22 08:01 svlandeg