Sean-Case commited on
Commit
5c04910
β€’
1 Parent(s): a9c2120

Updates to readme file. Changed app file name to work with HF.

Browse files
README.md CHANGED
@@ -10,4 +10,30 @@ pinned: false
10
  license: apache-2.0
11
  ---
12
 
13
- Adaptation of fast_bm25 (https://github.com/Inspirateur/Fast-BM25) to search over your data.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  license: apache-2.0
11
  ---
12
 
13
+ Keyword search over your data. This is an adaptation of fast_bm25 (https://github.com/Inspirateur/Fast-BM25) to search over tabular data with a Gradio UI interface.
14
+
15
+ # Guide
16
+
17
+ 1. Load in your tabular data file (.csv, .parquet, .xlsx - first sheet).
18
+ 2. Wait a few seconds for the file to upload, then in the dropdown menu below 'Enter the name of the text column...' choose the column from the data file that you want to search.
19
+ 3. Hit 'Load data'. The 'Load progress' text box will let you know when the file is ready.
20
+ 4. In the 'Enter your search term' area below this, type in the key words you want to find in your text. Note that if the term is not spelled exactly as it is found in the text, it will not be found!
21
+ 5. Hit search text. You may have to wait depending on the size of the data you are searching.
22
+ 6. You will receive back 1. the top search result and 2. a csv of the search results found in the text ordered by relevance, joined onto the original columns from your data source.
23
+
24
+ # Advanced options
25
+ The search should perform well with default options, so you shouldn't need to change things here.
26
+
27
+ ## Data load / save options
28
+ Toggle 'Clean text during load...' to true if you want to remove html tags and lemmatise the text, i.e. remove the ends of words to retain the core of the word e.g. searched or searches becomes search. Early testing suggests that cleaning takes some time, and does not seem to improve quality of search results.
29
+
30
+ ## Search options
31
+ Here are a few options to modify the BM25 search parameters. If you want more information on what each parameter does, click the relevant info button to the right of the sliders.
32
+
33
+ ## Join on additional dataframes to results
34
+ I was asked to include a feature to join on additional data to the search results. This could be useful for example if you have tabular text data associated with a person ID, and after searching you would like to join on information associated with this person to aid with post-search filtering/analysis.
35
+
36
+ To do this:
37
+ 1. Load in the tabular data you want to join in the box (.csv, .parquet, .xlsx - first sheet).
38
+ 2. Then choose the field that you want to join onto the results sheet, and the matching field from the data you are searching with.
39
+ 3. Next time you do a search on the first tab, the new data should be joined onto your output file.
README_additions.md DELETED
@@ -1 +0,0 @@
1
- Adaptation of fast_bm25 (https://github.com/Inspirateur/Fast-BM25) to your data.
 
 
data_text_search.py β†’ app.py RENAMED
File without changes