explosion / spacy-streamlit

👑 spaCy building blocks and visualizers for Streamlit apps
https://share.streamlit.io/ines/spacy-streamlit-demo/master/app.py
MIT License
806 stars 115 forks source link

Unexpected keyword errors #33

Open rory-hurley-gds opened 2 years ago

rory-hurley-gds commented 2 years ago

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?

svlandeg commented 2 years ago

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.