title: is there a way with spaCy's NER to calculate metrics per entity type?
body: <p>is there a way in the NER model in spaCy to extract the metrics (precision, recall, f1 score) per entity type?</p>
  
  <p>Something that will look like this:</p>
  
  <pre><code>         precision    recall  f1-score   support
  
    B-LOC      0.810     0.784     0.797      1084
    I-LOC      0.690     0.637     0.662       325
   B-MISC      0.731     0.569     0.640       339
   I-MISC      0.699     0.589     0.639       557
    B-ORG      0.807     0.832     0.820      1400
    I-ORG      0.852     0.786     0.818      1104
    B-PER      0.850     0.884     0.867       735
    I-PER      0.893     0.943     0.917       634
  </code></pre>
  
  <p>avg / total      0.809     0.787     0.796      6178</p>
  
  <p>taken from: <a href="http://www.davidsbatista.net/blog/2018/05/09/Named_Entity_Evaluation/" rel="noreferrer">http://www.davidsbatista.net/blog/2018/05/09/Named_Entity_Evaluation/</a></p>
  
  <p>Thank you!</p>