explosion / spacy-streamlit

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

valueError E030 sentence boundaries unset #17

Closed natescrape closed 3 years ago

natescrape commented 3 years ago

I am following the guidance on the spacy website using the following code, but i get the error below the code:

models = ["modelout\model-best"]
default_text = "this sentence is a test"
spacy_streamlit.visualize(models, default_text)

ValueError: [E030] Sentence boundaries unset. You can add the 'sentencizer' component to the pipeline with: nlp.add_pipe('sentencizer'). Alternatively, add the dependency parser or sentence recognizer, or set sentence boundaries by setting doc[i].is_sent_start.

natescrape commented 3 years ago

solved