-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Introduced method header for _generate_example method in drugprot.py * Modified test_drugprot.py * restructured test methods to match other test files' structure and especially test_chemprot.py * added test_document_to_example() method * Added drugprot2example() method, enabling conversion from DrugprotDocument back to Example format * Added drugprot_bigbio2example() method, enabling conversion from DrugprotBigBioDocument back to Example format * Pre-Commit forgotten * Connected full-cycle test of document conversion and back * test method test_example_to_document_and_back_all * Modified full cycle test * dataset_variant irrelevant * test every split * Modified drugprot.py to align with BRAT format * split affected entity ids and relation ids in metadata in example to document methods * adjusted document to example methods to fit * adjusted related test methods to align with new format * minor improvements --------- Co-authored-by: Arne Binder <[email protected]>
- Loading branch information
1 parent
88f6b77
commit b5f08f4
Showing
2 changed files
with
205 additions
and
64 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
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