# IOB tagging for NER / DatasetDict

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fiob-tagging-for-ner-datasetdict%2F42107%3E%5C
**Category:** Beginners\
**Created:** [June 5, 2023, 11:35am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fiob-tagging-for-ner-datasetdict%2F42107 "2023-06-05T11:35:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![R0m4ntic](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/r0m4ntic/32/16535_2.png) [@R0m4ntic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FR0m4ntic)%5C
**Post date:** [June 5, 2023, 11:35am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fiob-tagging-for-ner-datasetdict%2F42107%2F1 "2023-06-05T11:35:16Z")

</div>

Hello everyone!

I have created a custom dataset in the IOB tagging format. I want to follow the HF tutorial for Token Classification.

Sydney \_ \_ B-ORG  
Airport \_ \_ I-ORG  
announces \_ \_ O  
range \_ \_ O  
of \_ \_ O  
new \_ \_ O  
sustainability \_ \_ O  
goals \_ \_ O

Finland \_ \_ B-LOCATION  
is \_ \_ O  
on \_ \_ O  
track \_ \_ O  
to \_ \_ O  
be \_ \_ O  
carbon \_ \_ B-SUSTAINABILITY  
neutral \_ \_ I-SUSTAINABILITY  
by \_ \_ O  
2035 \_ \_ B-DATE

When I am loading my dataset with load\_dataset(). I only got “text”… But not the “labels”.

DatasetDict({  
train: Dataset({  
features: [‘text’],  
num\_rows: 285996  
})  
})

When I look at the structure in the data loader it’s as follows.

‘Sydney \_ \_ B-ORG’,  
‘Airport \_ \_ I-ORG’,  
‘announces \_ \_ O’,  
‘range \_ \_ O’,  
‘of \_ \_ O’,  
‘new \_ \_ O’,  
‘sustainability \_ \_ O’,  
‘goals \_ \_ O’,  
‘’,  
‘’,

Did I miss something?  
How can I create a similar structure of the WNUT 17 dataset (“id”, “ner\_tags”, and “tokens” ) in the tutorial?  
Thank you for your help.

Roman

---

<div class="post-metadata">

**Author:** ![Noura123](https://avatars.discourse-cdn.com/v4/letter/n/9d8465/32.png) [@Noura123](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FNoura123)%5C
**Post date:** [November 20, 2023, 9:23am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fiob-tagging-for-ner-datasetdict%2F42107%2F2 "2023-11-20T09:23:06Z")

</div>

Did you find a solution for that? I’m having the same trouble as well.
