Spaces:
Runtime error
Runtime error
Commit
·
e9d3c2b
1
Parent(s):
3c5ee9d
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ cleaned_text = re.sub(r'[^a-zA-Z0-9.,]', ' ', cleaned_text)
|
|
31 |
paragraphs = [p.strip() for p in re.split(r'\n', cleaned_text) if p.strip()]
|
32 |
|
33 |
# Process text using SpaCy
|
34 |
-
nlp = spacy.load("
|
35 |
doc = nlp(cleaned_text)
|
36 |
|
37 |
sentences = [sent.text for sent in doc.sents]
|
|
|
31 |
paragraphs = [p.strip() for p in re.split(r'\n', cleaned_text) if p.strip()]
|
32 |
|
33 |
# Process text using SpaCy
|
34 |
+
nlp = spacy.load("en_core_web_sm")
|
35 |
doc = nlp(cleaned_text)
|
36 |
|
37 |
sentences = [sent.text for sent in doc.sents]
|