# Recipe for annotations distribution

**URL:** https://support.prodi.gy/t/recipe-for-annotations-distribution/7167
**Category:** Uncategorized
**Tags:** usage, textcat
**Created:** [April 2, 2024, 8:56am UTC](https://support.prodi.gy/t/recipe-for-annotations-distribution/7167 "2024-04-02T08:56:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![TimothePearce](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/timothepearce/32/4228_2.png) [@TimothePearce](https://support.prodi.gy/u/TimothePearce)
#### Post date: [April 2, 2024, 8:56am UTC](https://support.prodi.gy/t/recipe-for-annotations-distribution/7167/1 "2024-04-02T08:56:45Z")

</div>

Hi @spacy,

I didn't find any recipe regarding annotations distribution by classes.

I know that we can easily show the distribution by writing a script, but is there a reason why this is not a "native" recipe?

If you didn't find any, I would like to do a PR for it (only for `textcat` at the moment). 😁

```python

$ prodigy textcat.distribution <dataset>

Dataset: <dataset>

ℹ Annotations distribution

Label Count
--------------- -----
LABEL A 250
LABEL B 124
LABEL C 245
...

```

---

<div class="post-metadata">

### Author: ![india-kerle](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/india-kerle/32/4324_2.png) [@india-kerle](https://support.prodi.gy/u/india-kerle)
#### Post date: [April 2, 2024, 10:33am UTC](https://support.prodi.gy/t/recipe-for-annotations-distribution/7167/2 "2024-04-02T10:33:09Z")

</div>

@TimothePearce,

Thanks for the great suggestion! I've created an issue for it for the team to discuss. I'll get back to you on it soon.

---

<div class="post-metadata">

### Author: ![india-kerle](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/india-kerle/32/4324_2.png) [@india-kerle](https://support.prodi.gy/u/india-kerle)
#### Post date: [April 9, 2024, 12:23pm UTC](https://support.prodi.gy/t/recipe-for-annotations-distribution/7167/3 "2024-04-09T12:23:21Z")

</div>

Hey @TimothePearce - a quick follow up - one solution could be to convert your annotations to the appropriate format using `data-to-spacy` and then using [spacy debug](https://spacy.io/api/cli#debug) to investigate annotation distributions. Hopefully this helps!
