valueError E030 sentence boundaries unset
natescrape opened this issue · 1 comments
natescrape commented
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
solved