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

ENTITY recognition skips closing bracket ) #11993

Closed
Berowne opened this issue Dec 19, 2022 · 4 comments
Closed

ENTITY recognition skips closing bracket ) #11993

Berowne opened this issue Dec 19, 2022 · 4 comments
Labels
models Issues related to the statistical models

Comments

@Berowne
Copy link

Berowne commented Dec 19, 2022

How to reproduce the behaviour

#%pip install en_core_web_lg
import spacy
from spacy import displacy
nlp = spacy.load('en_core_web_lg')
doc = nlp("Find the entity with closing bracket. HyperTree Proof Search (HTPS) able to solve International Math Olympiad (IMO) problems" )
displacy.render(doc, style="ent", jupyter=True)
print( [e.text for e in doc.ents])

['HyperTree Proof Search (', 'International Math Olympiad (']

SHOULD BE

.>>> ['HyperTree Proof Search', 'International Math Olympiad']

Your Environment

  • Operating System: AWS LINUX
  • Python Version Used: 3.8
  • spaCy Version Used: 3.0.6
@Berowne
Copy link
Author

Berowne commented Dec 19, 2022

or falsely includes first bracket actually...

@adrianeboyd
Copy link
Contributor

For expectations related to statistical models and mistakes, see the top post in #3052 for a general discussion.

@adrianeboyd adrianeboyd added models Issues related to the statistical models resolved The issue was addressed / answered labels Dec 20, 2022
@github-actions
Copy link
Contributor

This issue has been automatically closed because it was answered and there was no follow-up discussion.

@github-actions github-actions bot removed the resolved The issue was addressed / answered label Dec 28, 2022
@github-actions
Copy link
Contributor

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
models Issues related to the statistical models
Projects
None yet
Development

No branches or pull requests

2 participants