prashant
commited on
Commit
•
e24948b
1
Parent(s):
82f52a5
seamntic update
Browse files
appStore/keyword_search.py
CHANGED
@@ -81,11 +81,14 @@ def app():
|
|
81 |
st.markdown("##### Top few lexical search (TFIDF) hits #####")
|
82 |
lexical_search(queryList,paraList)
|
83 |
else:
|
84 |
-
|
85 |
paraList = runSemanticPreprocessingPipeline()
|
86 |
logging.info("starting semantic search")
|
87 |
with st.spinner("Performing Similar/Contextual search"):
|
88 |
st.markdown("##### Top few semantic search results #####")
|
89 |
-
|
|
|
|
|
|
|
90 |
|
91 |
|
|
|
81 |
st.markdown("##### Top few lexical search (TFIDF) hits #####")
|
82 |
lexical_search(queryList,paraList)
|
83 |
else:
|
84 |
+
show_answers = st.sidebar.checkbox("Show context")
|
85 |
paraList = runSemanticPreprocessingPipeline()
|
86 |
logging.info("starting semantic search")
|
87 |
with st.spinner("Performing Similar/Contextual search"):
|
88 |
st.markdown("##### Top few semantic search results #####")
|
89 |
+
if show_answers:
|
90 |
+
semantic_search(queryList,paraList,show_answers=True)
|
91 |
+
else:
|
92 |
+
semantic_search(queryList,paraList,show_answers=False)
|
93 |
|
94 |
|