Update app.py
Browse files
app.py
CHANGED
@@ -516,7 +516,7 @@ def extract_keywords_from_text(text, query_words):
|
|
516 |
def clean_text(text):
|
517 |
return re.sub(r'[^آ-ی۰-۹0-9،.؟!؛+\-* ]+', '', text)
|
518 |
|
519 |
-
def find_closest_lines(query, doc_texts, stop_words, top_n=
|
520 |
cleaned_query = remove_stop_words(query, stop_words)
|
521 |
query_words = cleaned_query.split()
|
522 |
all_matched_lines = []
|
|
|
516 |
def clean_text(text):
|
517 |
return re.sub(r'[^آ-ی۰-۹0-9،.؟!؛+\-* ]+', '', text)
|
518 |
|
519 |
+
def find_closest_lines(query, doc_texts, stop_words, top_n=20):
|
520 |
cleaned_query = remove_stop_words(query, stop_words)
|
521 |
query_words = cleaned_query.split()
|
522 |
all_matched_lines = []
|