-
Notifications
You must be signed in to change notification settings - Fork 388
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
feat: expose allow overlapping property #4697
feat: expose allow overlapping property #4697
Conversation
for more information, see https://pre-commit.ci
The URL of the deployed environment for this PR is https://argilla-quickstart-pr-4697-ki24f765kq-no.a.run.app |
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.
Functionality looks good.
I left some comments on testing. We could expand testing for all use cases, but I'm not sure how you want the suite to flow.
@@ -72,15 +72,17 @@ def test_create_dataset_with_span_questions(argilla_user: "ServerUser") -> None: | |||
|
|||
ds = FeedbackDataset( | |||
fields=[TextField(name="text")], | |||
questions=[SpanQuestion(name="spans", field="text", labels=["label1", "label2"])], | |||
questions=[SpanQuestion(name="spans", field="text", labels=["label1", "label2"], allow_overlapping=True)], |
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.
- Should we separate these tests so that we have with/without overlap?
- Should we add records to both that have overlaps or not?
- Should we assert raises of the overlap error code?
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.
Thanks. I've created a new separate test checking possible values for the allow_overlapping
flag.
For related records questions, I will include some integration tests. Validations for responses and suggestions are not covered on this SDK, we will cover them in the new SDK
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feat/overlapped-span-questions #4697 +/- ##
==================================================================
- Coverage 45.85% 45.84% -0.01%
==================================================================
Files 193 193
Lines 11810 11812 +2
==================================================================
Hits 5415 5415
- Misses 6395 6397 +2 ☔ View full report in Codecov by Sentry. |
Co-authored-by: burtenshaw <ben@argilla.io>
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…rgilla-io/argilla into feat/expose-allow-overlapping-property
1f8aa08
into
feat/overlapped-span-questions
Description
This PR adds the
allow_overlapping
field for span questions to configure span questions with overlapping support. The default value is set toFalse
to align the previous version of the span question.It must be merged after argilla-io/argilla-server#89
Closes #4694
Type of change
(Please delete options that are not relevant. Remember to title the PR according to the type of change)
How Has This Been Tested
(Please describe the tests that you ran to verify your changes. And ideally, reference
tests
)Checklist
CHANGELOG.md
file (See https://keepachangelog.com/)