This PR adds a parameter to sort the order of relations according to order of first appearance. This is already happening by default, but it can now be toggled on and off. The primary motivation to turn it off is for ablation analysis.
Other changes
♻️ Factored out the logic to download the corpus in bc5cdr.py and gda.py into their own function (_download_corpus).
TODO
[ ] write a unit test for pubtator_to_seq2rel (tracking in #30).
This PR adds a parameter to sort the order of relations according to order of first appearance. This is already happening by default, but it can now be toggled on and off. The primary motivation to turn it off is for ablation analysis.
Other changes
bc5cdr.py
andgda.py
into their own function (_download_corpus
).TODO
pubtator_to_seq2rel
(tracking in #30).