Spaces:
GIZ
/
Running on CPU Upgrade

peter2000 commited on
Commit
50ec32e
1 Parent(s): 3a5641b

Update appStore/keyword_search.py

Browse files
Files changed (1) hide show
  1. appStore/keyword_search.py +11 -14
appStore/keyword_search.py CHANGED
@@ -46,21 +46,18 @@ def app():
46
 
47
  st.write(
48
  """
49
- The *Keyword Search* app is an easy-to-use interface \
50
- built in Streamlit for doing keyword search in \
51
- policy document - developed by GIZ Data and the \
52
- Sustainable Development Solution Network.
53
  """)
54
  st.write("")
55
- st.write(""" The application allows its user to perform a keyword search\
56
- based on two options: a lexical ([TFIDF](https://en.wikipedia.org/wiki/Tf%E2%80%93idf))\
57
- search and semantic [bi-encoder](https://www.sbert.net/examples/applications/retrieve_rerank/README.html)\
58
- search. The difference between both \
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 as well. The semantic search \
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 we will look for similar\
111
- context in the document. If dont have anything,\
112
- try the presets of keywords from sidebar. "
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)