Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BratSentence -- entities should be initialized via parameter #383

Closed
3 tasks done
nicolay-r opened this issue Aug 9, 2022 · 0 comments
Closed
3 tasks done

BratSentence -- entities should be initialized via parameter #383

nicolay-r opened this issue Aug 9, 2022 · 0 comments
Assignees
Labels
critical enhancement New feature or request

Comments

@nicolay-r
Copy link
Owner

nicolay-r commented Aug 9, 2022

Issue: API is Bad because it publicly allows to modify (add) the contents of the BratSentences. The latter may lead to unsync code, based on BratSentences instances.

self.__entities = []
# region public methods
def add_local_entity(self, entity):
assert(isinstance(entity, BratEntity))
self.__entities.append(entity)

@nicolay-r nicolay-r added enhancement New feature or request critical labels Aug 9, 2022
@nicolay-r nicolay-r self-assigned this Aug 9, 2022
nicolay-r added a commit that referenced this issue Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
critical enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant