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).
In the Entity Relation example datastructures, calling
.hashcodeon any of the items causes an StackOverflow due to unbounded recursion..hashcodeon tokens and relations in the sentence..hashcodeon the sentence object..hashcodeon its two entity tokens and sentence object.This leads to unbounded recursion. Thus, cannot add these instances in a HashSet or HashMap (as keys).