add TaskEncodingFormatter#200
Draft
ArneBinder wants to merge 2 commits intomainfrom
Draft
Conversation
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (74.35%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #200 +/- ##
==========================================
- Coverage 93.52% 92.72% -0.81%
==========================================
Files 10 10
Lines 942 962 +20
==========================================
+ Hits 881 892 +11
- Misses 61 70 +9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This was referenced Aug 5, 2025
ArneBinder
added a commit
to ArneBinder/pytorch-ie
that referenced
this pull request
Aug 5, 2025
This PR allows it to easily overwrite that functionality in downstream projects. some context/motivation: ArneBinder/pie-datasets#200.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In addition, this:
TaskEncodingFormatteras"task_encoding"DocumentFormattertoformatter.pyformat (Optional[str], optional)to(Iterable)Dataset.map_to_hf(): The format to set for the dataset. Defaults to None.This functionality is useful for converting a PIE-dataset to a non-PIE-dataset. For instance, to use map() to encode a dataset for training as can be obtained with the following version of a PieDataModule:
This supersedes #173.
TODO: add tests for
formatTaskEncodingFormatter