Update appStore/keyword_search.py
Browse files- appStore/keyword_search.py +11 -14
appStore/keyword_search.py
CHANGED
@@ -46,21 +46,18 @@ def app():
|
|
46 |
|
47 |
st.write(
|
48 |
"""
|
49 |
-
The *
|
50 |
-
|
51 |
-
policy
|
52 |
-
Sustainable Development Solution Network.
|
53 |
""")
|
54 |
st.write("")
|
55 |
-
st.write(""" The application allows its user to perform a
|
56 |
-
based on two options: a lexical ([TFIDF](https://en.wikipedia.org/wiki/Tf%E2%80%93idf))\
|
57 |
-
|
58 |
-
|
59 |
-
approaches is quite straightforward; while the lexical search only \
|
60 |
displays paragraphs in the document with exact matching results, \
|
61 |
the semantic search shows paragraphs with meaningful connections \
|
62 |
-
(e.g., synonyms) based on the context
|
63 |
-
allows for a personalized experience in using the application. Both \
|
64 |
methods employ a probabilistic retrieval framework in its identification\
|
65 |
of relevant paragraphs. By defualt the search is performed using \
|
66 |
'Semantic Search', and to find 'Exact/Lexical Matches' please tick the \
|
@@ -107,9 +104,9 @@ def app():
|
|
107 |
type_hinting = "Please enter here your question and we \
|
108 |
will look for an answer in the document\
|
109 |
OR enter the keyword you are looking \
|
110 |
-
for and we will
|
111 |
-
context in the document
|
112 |
-
|
113 |
if keywordList is not None:
|
114 |
# queryList = st.text_input("You selected the {} category we \
|
115 |
# will look for these keywords in document".format(genre)
|
|
|
46 |
|
47 |
st.write(
|
48 |
"""
|
49 |
+
The *Search* app is an interface \
|
50 |
+
for doing contextual and keyword searches in \
|
51 |
+
policy documents. \
|
|
|
52 |
""")
|
53 |
st.write("")
|
54 |
+
st.write(""" The application allows its user to perform a search\
|
55 |
+
based on two options: a lexical search([TFIDF](https://en.wikipedia.org/wiki/Tf%E2%80%93idf))\
|
56 |
+
and semantic search. [bi-encoder](https://www.sbert.net/examples/applications/retrieve_rerank/README.html)\
|
57 |
+
The lexical search only \
|
|
|
58 |
displays paragraphs in the document with exact matching results, \
|
59 |
the semantic search shows paragraphs with meaningful connections \
|
60 |
+
(e.g., synonyms) based on the search context. Both \
|
|
|
61 |
methods employ a probabilistic retrieval framework in its identification\
|
62 |
of relevant paragraphs. By defualt the search is performed using \
|
63 |
'Semantic Search', and to find 'Exact/Lexical Matches' please tick the \
|
|
|
104 |
type_hinting = "Please enter here your question and we \
|
105 |
will look for an answer in the document\
|
106 |
OR enter the keyword you are looking \
|
107 |
+
for and we will look for similar\
|
108 |
+
context in the document.\
|
109 |
+
You can also explore predefined sets of keywords from sidebar. "
|
110 |
if keywordList is not None:
|
111 |
# queryList = st.text_input("You selected the {} category we \
|
112 |
# will look for these keywords in document".format(genre)
|