-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify transformer_token_classification_taskmodule (#71)
* create separate (prepared_)taskmodule_with_partition instead of modifying it inplace * move from parameters single_sentence and sentence_annotation to partition_annotation (backwards compatible) * simplify encode_input * simplify encode_target; outsource _convert_span_annotations_to_tag_sequence() and _encode_text() to ease testing * fix test_convert_span_annotations_to_tag_sequence_with_partition() * raise exception when partitioning is enabled in the taskmodule, but not partition is provided to _encode_text * simplify create_annotations_from_output * create tests for create_annotations_from_output * add documentation for _convert_span_annotations_to_tag_sequence * remove backwards compatibility for partition_annotation (single_sentence + sentence_annotation) * don't use leading underscores if not necessary Co-authored-by: Arne Binder <[email protected]>
- Loading branch information
1 parent
81d4bf4
commit a83f179
Showing
2 changed files
with
503 additions
and
144 deletions.
There are no files selected for viewing
This file contains 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
Oops, something went wrong.