You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/search/word_score/local/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,10 @@
4
4
5
5
- Git clone the repo and cd to the project location.
6
6
- cd to `local`, i.e., `cd ./src/search/word_score/local`.
7
-
- Replace the file in `./content` with a csv file of your choice, but the data column should be named `tags` column.
7
+
- Replace the link in the Dockerfile to a downloadable csv file of your choice, but the data column should be named `tags`.
8
8
- Start your docker engine and `docker build -t word_score .`.
9
9
- Do `docker run -p 8000:8000 word_score`.
10
-
-`curl -X POST -H "Content-Type: application/json" -d '{"query": "seed procurement district", "n": "5", "search_category" : "seed"}' http://localhost:8000/`. <br> Replace `seed procurement district` with a query you want to search and `5` with the number of rows you want to retrieve.
10
+
-`curl -X POST -H "Content-Type: application/json" -d '{"query": "seed procurement district", "n": "5", "search_category" : "seed", "threshold": "0.8", "k": "6"}' http://localhost:8000/`. <br> Replace `seed procurement district` with a query you want to search and `5` with the number of rows you want to retrieve. Change `threshold` value (0 to 1) to retrieve documents whose score cross the specific threshold. `k` is the number of top k words to consider for thresholding of the score.
0 commit comments