Update app.py
Browse files
app.py
CHANGED
@@ -124,7 +124,7 @@ if flag_model:
|
|
124 |
with streamlit.spinner('NER processing...'):
|
125 |
if linking:
|
126 |
start_sentence = 0
|
127 |
-
docs = nlp.pipe(sentences, batch_size=
|
128 |
for doc in docs:
|
129 |
end_sentence = start_sentence + len(doc.text) + 1
|
130 |
for ent in doc.ents:
|
|
|
124 |
with streamlit.spinner('NER processing...'):
|
125 |
if linking:
|
126 |
start_sentence = 0
|
127 |
+
docs = nlp.pipe(sentences, batch_size=150)
|
128 |
for doc in docs:
|
129 |
end_sentence = start_sentence + len(doc.text) + 1
|
130 |
for ent in doc.ents:
|