cdcvd commited on
Commit
958d821
·
verified ·
1 Parent(s): 5846ff3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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'] == 'I-fac' and entity['score'] >= 0.80:
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']