prashant
commited on
Commit
•
fb38e55
1
Parent(s):
13272a7
semantic update
Browse files
appStore/keyword_search.py
CHANGED
@@ -49,6 +49,8 @@ def app():
|
|
49 |
|
50 |
searchtype = st.selectbox("Do you want to find exact macthes or similar meaning/context",
|
51 |
['Exact Matches', 'Similar context/meaning'])
|
|
|
|
|
52 |
|
53 |
with st.container():
|
54 |
if keywordList is not None:
|
@@ -79,6 +81,7 @@ def app():
|
|
79 |
st.markdown("##### Top few lexical search (TFIDF) hits #####")
|
80 |
lexical_search(queryList,paraList)
|
81 |
else:
|
|
|
82 |
paraList = runSemanticPreprocessingPipeline()
|
83 |
logging.info("starting semantic search")
|
84 |
with st.spinner("Performing Similar/Contextual search"):
|
|
|
49 |
|
50 |
searchtype = st.selectbox("Do you want to find exact macthes or similar meaning/context",
|
51 |
['Exact Matches', 'Similar context/meaning'])
|
52 |
+
|
53 |
+
|
54 |
|
55 |
with st.container():
|
56 |
if keywordList is not None:
|
|
|
81 |
st.markdown("##### Top few lexical search (TFIDF) hits #####")
|
82 |
lexical_search(queryList,paraList)
|
83 |
else:
|
84 |
+
st.sidebar(show_answer = st.check("Show context"))
|
85 |
paraList = runSemanticPreprocessingPipeline()
|
86 |
logging.info("starting semantic search")
|
87 |
with st.spinner("Performing Similar/Contextual search"):
|