prashant
commited on
Commit
•
87b80d6
1
Parent(s):
3b97e90
punctuation fix
Browse files- utils/search.py +1 -1
- utils/uploadAndExample.py +1 -1
utils/search.py
CHANGED
@@ -33,7 +33,7 @@ def tokenize_lexical_query(query:str)-> List[str]:
|
|
33 |
|
34 |
"""
|
35 |
nlp = spacy.load("en_core_web_sm")
|
36 |
-
token_list = [token.text.lower() for token in nlp(query) if not token.is_stop]
|
37 |
return token_list
|
38 |
|
39 |
def runSpacyMatcher(token_list:List[str], document:Text):
|
|
|
33 |
|
34 |
"""
|
35 |
nlp = spacy.load("en_core_web_sm")
|
36 |
+
token_list = [token.text.lower() for token in nlp(query) if not (token.is_stop or token.is_punct)]
|
37 |
return token_list
|
38 |
|
39 |
def runSpacyMatcher(token_list:List[str], document:Text):
|
utils/uploadAndExample.py
CHANGED
@@ -33,7 +33,7 @@ def add_upload(choice):
|
|
33 |
if option is 'South Africa:Low Emission strategy':
|
34 |
file_name = file_path = 'docStore/sample/South Africa_s Low Emission Development Strategy.txt'
|
35 |
st.session_state['filename'] = file_name
|
36 |
-
st.
|
37 |
else:
|
38 |
file_name = file_path = 'docStore/sample/Ethiopia_s_2021_10 Year Development Plan.txt'
|
39 |
st.session_state['filename'] = file_name
|
|
|
33 |
if option is 'South Africa:Low Emission strategy':
|
34 |
file_name = file_path = 'docStore/sample/South Africa_s Low Emission Development Strategy.txt'
|
35 |
st.session_state['filename'] = file_name
|
36 |
+
st.session_state['filepath'] = file_path
|
37 |
else:
|
38 |
file_name = file_path = 'docStore/sample/Ethiopia_s_2021_10 Year Development Plan.txt'
|
39 |
st.session_state['filename'] = file_name
|