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

Online entity extractor demo results differs from downloaded 2.0.0 model #2672

Closed
einarbmag opened this issue Aug 15, 2018 · 2 comments
Closed
Labels
bug Bugs and behaviour differing from documentation docs Documentation and website

Comments

@einarbmag
Copy link

How to reproduce the behaviour

I've noticed that the online model produces different results than the downloaded spaCy model. In particular, the sentence "who is Florence Ng at Value Partners" gets parsed correctly in the online demo:
https://explosion.ai/demos/displacy-ent?text=who%20is%20Florence%20Ng%20at%20Value%20Partners&model=en_core_web_md&ents=person%2Corg%2Cgpe%2Cloc%2Cproduct%2Cnorp%2Cdate%2Cper%2Cmisc

but not in the locally downloaded "en-core-web-md" model, where all of "Florence Ng at Value Partners" gets classified as an ORG.

import spacy
nlp = spacy.load("en_core_web_md")
doc = nlp("who is Florence Ng at Value Partners")
doc.ents

Output: (Florence Ng at Value Partners,)

What could be the reason for the discrepancy? Is the online demo actually using a different model?

Your Environment

  • Operating System: Windows 7
  • Python Version Used: 3.6.1
  • spaCy Version Used: 2.0.12
  • Environment Information:
@ines ines added bug Bugs and behaviour differing from documentation docs Documentation and website labels Aug 15, 2018
@honnibal
Copy link
Member

Thanks, I'd linked the wrong model to en_core_web_md on the demo. It should be resolved now. I've also made en_core_web_lg available there too.

@lock
Copy link

lock bot commented Sep 14, 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 Sep 14, 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 docs Documentation and website
Projects
None yet
Development

No branches or pull requests

3 participants