Skip to content

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

@bhargav

Description

@bhargav

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions