-
Notifications
You must be signed in to change notification settings - Fork 2.2k
docs(drivers): add missing docstrings #1976
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
Conversation
jina/drivers/evaluate.py
Outdated
@@ -132,12 +128,19 @@ def __init__(self, | |||
|
|||
@property | |||
def single_field(self): | |||
"""Get single field.""" |
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.
Can u add here the comment. Property to guarantee compatibility when only one field is provided either as a string or as a unit length tuple
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.
Sure! Thanks!
Codecov Report
@@ Coverage Diff @@
## master #1976 +/- ##
==========================================
- Coverage 81.89% 81.52% -0.37%
==========================================
Files 148 148
Lines 7107 7081 -26
==========================================
- Hits 5820 5773 -47
- Misses 1287 1308 +21
Continue to review full report at Codecov.
|
Latency summaryCurrent PR yields:
Breakdown
Backed by latency-tracking. Further commits will update this comment. |
jina/drivers/evaluate.py
Outdated
@@ -68,13 +68,11 @@ def _apply_all( | |||
evaluation.ref_id = groundtruth.id | |||
|
|||
def extract(self, doc: 'Document') -> Any: | |||
"""Extracting the to-be-evaluated field from the document. | |||
Drivers inherit from :class:`BaseEvaluateDriver` must implement this method. | |||
"""Extract the to-be-evaluated field from the document. Drivers inherit from :class:`BaseEvaluateDriver` must implement this method. |
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.
I think the first line of the docstring must be one short sentence.
No description provided.