Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -161,10 +161,10 @@ lexical_all = results[1]
|
|
161 |
|
162 |
# 2) Filter out content < 20 chars (as intermediate fix to problem that e.g. super short paragraphs with few chars get high similarity score)
|
163 |
semantic_all = [
|
164 |
-
r for r in semantic_all if len(r.payload["page_content"]) >=
|
165 |
]
|
166 |
lexical_all = [
|
167 |
-
r for r in lexical_all if len(r.payload["page_content"]) >=
|
168 |
]
|
169 |
|
170 |
# 2) Apply a threshold to SEMANTIC results (score >= 0.4)
|
|
|
161 |
|
162 |
# 2) Filter out content < 20 chars (as intermediate fix to problem that e.g. super short paragraphs with few chars get high similarity score)
|
163 |
semantic_all = [
|
164 |
+
r for r in semantic_all if len(r.payload["page_content"]) >= 20
|
165 |
]
|
166 |
lexical_all = [
|
167 |
+
r for r in lexical_all if len(r.payload["page_content"]) >= 20
|
168 |
]
|
169 |
|
170 |
# 2) Apply a threshold to SEMANTIC results (score >= 0.4)
|