M17idd commited on
Commit
a7a468a
·
1 Parent(s): 0dc9d10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -518,7 +518,8 @@ def extract_keywords_from_text(text, query_words):
518
  return matched_lines
519
 
520
  def clean_text(text):
521
- return re.sub(r'[^آ-ی۰-،.؟!؛+\-* ]+', '', text)
 
522
 
523
 
524
  from collections import Counter
 
518
  return matched_lines
519
 
520
  def clean_text(text):
521
+ return re.sub(r'[^آ-ی0-9۰-۹،.؟!؛+\-* ]+', '', text)
522
+
523
 
524
 
525
  from collections import Counter