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

Second noun chunk contains first one. #988

Closed
D1Doris opened this issue Apr 18, 2017 · 2 comments
Closed

Second noun chunk contains first one. #988

D1Doris opened this issue Apr 18, 2017 · 2 comments
Labels
bug Bugs and behaviour differing from documentation

Comments

@D1Doris
Copy link

D1Doris commented Apr 18, 2017

For one sentence, the chunker returns a strange noun chunk:

import spacy
nlp = spacy.load('en')
doc = nlp(unicode('Does flight number three fifty-four require a connecting flight to get to Boston?'))
for np in doc.noun_chunks:
... print np
...
flight number
Does flight number three fifty-four require
a connecting flight
Boston
exit()

"Does flight number three fifty-four require" shouldn't be there.

My Environment:

  • Python version: 2.7.6
  • Platform: Linux-3.4.0+-x86_64-with-Ubuntu-14.04-trusty
  • spaCy version: 1.7.5
  • Installed models: en

Out of the 3000 sentences I've parsed, about 130 experience this problem.

@honnibal honnibal added the bug Bugs and behaviour differing from documentation label Apr 23, 2017
@honnibal
Copy link
Member

Thanks, this is a regression introduced in a recent patch. Will be fixed in next release.

@ines ines closed this as completed Apr 23, 2017
@lock
Copy link

lock bot commented May 8, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bugs and behaviour differing from documentation
Projects
None yet
Development

No branches or pull requests

3 participants