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

Remove get parent/children/sentence generator from Context #87

Merged
merged 1 commit into from
Jul 25, 2018

Conversation

lukehsiao
Copy link
Contributor

Only a few of the classes inheriting from Context implemented these
functions, and they are not as clear as explicitly navigating the data
model. For example, the Span.get_parent() is less explicit than just
saying Span.sentence. Rather than prsent an interface that is not
explicit and rarely implemented, this commit just removes it.

Only a few of the classes inheriting from Context implemented these
functions, and they are not as clear as explicitly navigating the data
model. For example, the Span.get_parent() is less explicit than just
saying Span.sentence. Rather than prsent an interface that is not
explicit and rarely implemented, this commit just removes it.
@lukehsiao lukehsiao added the clean-up Cleaning up the code or refactoring label Jul 25, 2018
@lukehsiao lukehsiao self-assigned this Jul 25, 2018
@lukehsiao lukehsiao requested a review from senwu July 25, 2018 01:20
@lukehsiao lukehsiao added this to the v0.3.0 milestone Jul 25, 2018
Copy link
Collaborator

@senwu senwu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lukehsiao lukehsiao merged commit 661e4ed into master Jul 25, 2018
@lukehsiao lukehsiao deleted the data-model branch July 25, 2018 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clean-up Cleaning up the code or refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants