Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -83,7 +83,7 @@ def extract_ner_info(text, nlp):
|
|
83 |
i += 1
|
84 |
# جمعآوری مکانها با امتیاز بالای ۸۰
|
85 |
for entity in ner_results:
|
86 |
-
if entity['entity'] == '
|
87 |
if loc:
|
88 |
loc += ' '
|
89 |
loc += entity['word']
|
|
|
83 |
i += 1
|
84 |
# جمعآوری مکانها با امتیاز بالای ۸۰
|
85 |
for entity in ner_results:
|
86 |
+
if entity['entity'] == 'B-loc' and entity['score'] >= 0.80:
|
87 |
if loc:
|
88 |
loc += ' '
|
89 |
loc += entity['word']
|