Skip to content

RecursionError: maximum recursion depth exceeded #261

@lemonov

Description

@lemonov

Some repeated phrases causes model crash due to hitting max recursion depth.
According to stacktrace issue originates from:

ginza/bunsetu_recognizer.py => _children_except_clause_heads Line:347

Minimal example:

    import spacy
    a = '漢字'*1000
    nlp = spacy.load('ja_ginza_electra')
    b = nlp(a)

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