Skip to content

Commit 3233682

Browse files
committed
Additional changes for word_score
1 parent 7a8ef32 commit 3233682

File tree

6 files changed

+28
-0
lines changed

6 files changed

+28
-0
lines changed

config.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@
7878
"environment": {},
7979
"nginx": []
8080
},
81+
{
82+
"serviceName": "word_score",
83+
"modelBasePath": "src/search/word_score/local/.",
84+
"apiBasePath": "/search/word_score/local",
85+
"containerPort": 8000,
86+
"environment": {},
87+
"nginx": []
88+
},
8189
{
8290
"serviceName": "text_translation_bhashini",
8391
"modelBasePath": "src/text_translation/bhashini/remote/.",

repository_data.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,16 @@
120120
"request_class": "ModelRequest"
121121
}
122122
}
123+
},
124+
"search": {
125+
"word_score": {
126+
"local": {
127+
"__is_async": true,
128+
"__is_base": true,
129+
"model_class": "Model",
130+
"request_class": "ModelRequest"
131+
}
132+
}
123133
}
124134
}
125135
}

src/search/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Purpose
2+
3+
Common folder for scoring methods required for augmenting search and retrieval of documents.

src/search/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from word_score import *

src/search/word_score/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Word Score
2+
3+
This folder consists of an API that scores documents based on an approach that combines IDF and Fuzzy word matching.
4+
5+
For a given query, it calculates fuzzy matching scores for words in query (max score for a word from entire row), weights them with IDF, takes average of the scores of all words in the query to give a score for the entire query, sorts them, and returns the top n matches.

src/search/word_score/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .local import *

0 commit comments

Comments
 (0)