JohnGiorgi / seq2rel-ds

This is a companion repository to seq2rel (https://github.com/JohnGiorgi/seq2rel) which aims to make it easy to generate training data.
5 stars 1 forks source link

Refactor linearization #48

Closed JohnGiorgi closed 2 years ago

JohnGiorgi commented 2 years ago

Overview

This PR attempts to better encapsulate the linearization of entities and relations. This is done by adding two new methods, both called to_string, that can be called from a PubtatorCluster or PubtatorAnnotation objects to get the linearized entity or relation strings respectively.

There are several small changes not expected to impact performance:

And there are changes that may have a small impact on performance:

TODO