# Span filtering prodigy datasets using W&B Tables

**URL:** <https://community.wandb.ai/t/span-filtering-prodigy-datasets-using-w-b-tables/646>\
**Category:** W&B Help\
**Created:** [September 16, 2021, 12:37pm UTC](https://community.wandb.ai/t/span-filtering-prodigy-datasets-using-w-b-tables/646 "2021-09-16T12:37:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfred-ls](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@alfred-ls](https://community.wandb.ai/u/alfred-ls)\
**Post date:** [September 16, 2021, 12:37pm UTC](https://community.wandb.ai/t/span-filtering-prodigy-datasets-using-w-b-tables/646/1 "2021-09-16T12:37:01Z")

</div>

Hi! I am currently testing the new prodigy integration to visualize NER datasets and it works great, thank you! But I have some problems.  
I would like to filter `row["spans"]["label"] ` by the special entities and I have problems here. My use case:

- Which texts contain only people (PERSON)? Which organisations (ORG) or locations (LOCATION)? How many people do I find in total?
- I would like to create new rows/columns to visualize the results.

My problem: I can’t manage to filter according to the entities. What am I doing wrong?  
Your example here is also ok for the test:

> **[Visualizing Prodigy Datasets Using W&B Tables](https://wandb.ai/kshen/prodigy/reports/Visualizing-Prodigy-Datasets-Using-W-B-Tables--Vmlldzo5NDE2MTc)**
>
> Use the W&B/Prodigy integration to upload your Prodigy annotated datasets to W&B for easier visualization. Made by Kevin Shen using Weights & Biases

 ![image](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/b9a81ed4d714e6b33f97a5dcdc6f3ca749dfe8e0.png)

Thank you  
Alfred

---

<div class="post-metadata">

**Author:** ![\_scott](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/_scott/32/95_2.png) [@\_scott](https://community.wandb.ai/u/_scott)\
**Post date:** [September 18, 2021, 8:59pm UTC](https://community.wandb.ai/t/span-filtering-prodigy-datasets-using-w-b-tables/646/2 "2021-09-18T20:59:51Z")

</div>

Glad you’re enjoying the prodigy integration!

I’ll try get an answer for this for you ASAP.

---

<div class="post-metadata">

**Author:** ![alfred-ls](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@alfred-ls](https://community.wandb.ai/u/alfred-ls)\
**Post date:** [September 24, 2021, 10:20am UTC](https://community.wandb.ai/t/span-filtering-prodigy-datasets-using-w-b-tables/646/3 "2021-09-24T10:20:07Z")

</div>

I don’t know what I did wrong last time, but it works perfectly. Thanks!

![image](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/65110a2cb18407338e0a0ea30428977c2e81e590.png)

---

<div class="post-metadata">

**Author:** ![\_scott](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/_scott/32/95_2.png) [@\_scott](https://community.wandb.ai/u/_scott)\
**Post date:** [September 24, 2021, 11:30am UTC](https://community.wandb.ai/t/span-filtering-prodigy-datasets-using-w-b-tables/646/4 "2021-09-24T11:30:29Z")

</div>

Nice! Glad you got it working 🙂
