spaCy icon indicating copy to clipboard operation
spaCy copied to clipboard

Lexeme probs not defined in en_core_web_lg and de_core_news_lg

Open ilijaplusx opened this issue 5 years ago • 5 comments

How to reproduce the behaviour

import spacy

nlp = spacy.load("en_core_web_lg")
most_common_words = ["the", "be", "to", "of", "and"]
print([nlp.vocab[w].prob for w in most_common_words])
# [-20.0, -20.0, -20.0, -20.0, -20.0]

I've tried this for en_core_web_lg, en_core_web_md and de_core_news_lg, all of them with the same undefined prob.

Your Environment

  • Operating System: Ubuntu 18.04
  • Python Version: 3.8.8
  • spaCy Version: 3.0.3
  • Environment Information: JupyterLab 3.0.7
  • Model versions: 3.0.0

ilijaplusx avatar Mar 05 '21 08:03 ilijaplusx

See: https://github.com/explosion/spaCy/discussions/6388#discussioncomment-330606

adrianeboyd avatar Mar 05 '21 09:03 adrianeboyd

Thanks @adrianeboyd the referenced comment did the work!

Follow up - is this mentioned somewhere in the docs that I missed? If not, maybe it can be added in?

ilijaplusx avatar Mar 05 '21 10:03 ilijaplusx

Yeah, it's something that should at least be added to the v3 migration guide.

adrianeboyd avatar Mar 05 '21 14:03 adrianeboyd

Super :) Thanks for the answers. I can than leave this issue open so you can track that?

ilijaplusx avatar Mar 05 '21 14:03 ilijaplusx

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[bot] avatar Oct 20 '21 00:10 github-actions[bot]