-
Notifications
You must be signed in to change notification settings - Fork 75
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: DIA-1523: test coverage for LabelStudioSkill #247
base: master
Are you sure you want to change the base?
Conversation
black made a bunch of formatting changes, ignore the ones in existing tests, there's just one big new test at the bottom |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #247 +/- ##
==========================================
+ Coverage 65.71% 66.33% +0.62%
==========================================
Files 47 47
Lines 2424 2439 +15
==========================================
+ Hits 1593 1618 +25
+ Misses 831 821 -10 ☔ View full report in Codecov by Sentry. |
input_field_name = ner_tag.objects[0].value.lstrip('$') | ||
output_field_name = ner_tag.name | ||
quote_string_field_name = 'text' | ||
output = extract_indices(pd.concat([input, output], axis=1), input_field_name, output_field_name, quote_string_field_name) | ||
df = pd.concat([input, output], axis=1) | ||
output = validate_output_format_for_ner_tag(df, input_field_name, output_field_name) |
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.
nice, now we can take out this additional call to validate_output_format_for_ner_tag
, but other than that lgtm 👍
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.
Still need it, I added the call to EntityExtraction.extract_indices not the standalone extract_indices
Fuzz testing using a bunch of different label configs and models and making sure predictions are always valid
Uncovered and fixed 2 bugs: