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.
I am following the guidance on the spacy website using the following code, but i get the error below the code:
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 settingdoc[i].is_sent_start
.