Update app.py
Browse files
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'[
|
|
|
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
|