New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ranker): correct column names in ranker score matrix #1973
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1973 +/- ##
==========================================
+ Coverage 82.71% 86.60% +3.88%
==========================================
Files 148 148
Lines 7106 7107 +1
==========================================
+ Hits 5878 6155 +277
+ Misses 1228 952 -276
Continue to review full report at Codecov.
|
Latency summaryCurrent PR yields:
Breakdown
Backed by latency-tracking. Further commits will update this comment. |
jina/executors/rankers/__init__.py
Outdated
@@ -31,18 +33,10 @@ class Chunk2DocRanker(BaseRanker): | |||
""" | |||
|
|||
required_keys = {'text'} #: a set of ``str``, key-values to extracted from the chunk-level protobuf message | |||
"""set: Set of required keys to be extracted from matches and query to fill the information of `query` and `chunk` meta information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we remove the documentation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, copy paste glitch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I will fix the tests @hanxiao |
np.object
is deprecatedTODO:
TfIdfRanker
andBM25Ranker