Skip to content

Performance by named entity category of spacy/en_core_web_trf #12312

Discussion options

You must be logged in to vote

Hi, good question! This information is recorded in the file accuracy.json that is shipped as part of the model when you download it. So when you've done spacy download en_core_web_trf you can navigate to where this package sits in your virtual environment, for instance on my system that would be ...\venv\Lib\site-packages\en_core_web_trf\en_core_web_trf-3.5.0. I'll paste the relevant content here for your convenience:

  "ents_p": 0.8977938984,
  "ents_r": 0.9048978365,
  "ents_f": 0.9013318701,
  "ents_per_type": {
    "DATE": {
      "p": 0.8915360502,
      "r": 0.9028571429,
      "f": 0.8971608833
    },
    "GPE": {
      "p": 0.9549524342,
      "r": 0.9520223152,
      "f": 0.95348…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@exfalsoquodlibet
Comment options

Answer selected by exfalsoquodlibet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation and website perf / accuracy Performance: accuracy
2 participants