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

[LBJava-Examples] Issue in Entity Relation example datastructures #105

Open
bhargav opened this issue Jun 30, 2017 · 0 comments
Open

[LBJava-Examples] Issue in Entity Relation example datastructures #105

bhargav opened this issue Jun 30, 2017 · 0 comments

Comments

@bhargav
Copy link
Contributor

bhargav commented Jun 30, 2017

In the Entity Relation example datastructures, calling .hashcode on any of the items causes an StackOverflow due to unbounded recursion.

  • ConllRawSentence - Calls .hashcode on tokens and relations in the sentence.
  • ConllRawToken - Calls .hashcode on the sentence object.
  • ConllRelation - Calls .hashcode on its two entity tokens and sentence object.

This leads to unbounded recursion. Thus, cannot add these instances in a HashSet or HashMap (as keys).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant