Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -292,7 +292,8 @@ if corpus is not None and queries is not None and qrels is not None:
|
|
| 292 |
if word_suggestions_off:
|
| 293 |
splitting_words = []
|
| 294 |
else:
|
| 295 |
-
|
|
|
|
| 296 |
|
| 297 |
|
| 298 |
# make a selectbox of these splitting words (allow multiple)
|
|
|
|
| 292 |
if word_suggestions_off:
|
| 293 |
splitting_words = []
|
| 294 |
else:
|
| 295 |
+
together_docs = [item[1] + " " + item[2] if type(item[1]) == str else item[2] for item in doc_texts]
|
| 296 |
+
splitting_words = find_dividing_words(together_docs)
|
| 297 |
|
| 298 |
|
| 299 |
# make a selectbox of these splitting words (allow multiple)
|