Skip to content

Long antecedent chains will blow the stack #791

@kwalcock

Description

@kwalcock

One 3.5MB nxml file with 50029 mentions seems to form antecedent chains long enough to blow the stack. One CorefEventMention has a "controller" argument that is a CorefTextBoundMention that has antecedents that have antecedents that have antecedents for a long, long ways so that the stack is exhausted as the json output is constructed. I followed it down manually a couple dozen steps and don't see any circles.

I wonder whether we should be recursively outputting anything. It is leading to output files of 50GB+. Can we just output an ID for mentions that are within triggers, arguments, antecedents, paths, etc.? A mention with that ID should appear elsewhere in the list, shouldn't it? Something else can then perform the recursive search.

In Eidos this was avoided by using jsonld in which we could just point to the other mentions with links. To the extent that equivalency hashes are unique (which I think is assumed), those can be used as links.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions