# How do I hide certain labels on inference?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-do-i-hide-certain-labels-on-inference%2F18134%3E%5C
**Category:** Beginners\
**Created:** [May 19, 2022, 8:28am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-do-i-hide-certain-labels-on-inference%2F18134 "2022-05-19T08:28:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kktoto](https://avatars.discourse-cdn.com/v4/letter/k/b2d939/32.png) [@kktoto](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fkktoto)%5C
**Post date:** [May 19, 2022, 8:28am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-do-i-hide-certain-labels-on-inference%2F18134%2F1 "2022-05-19T08:28:37Z")

</div>

Hi! I am currently using my customized labels in a token classification model and have pushed the model to hub.  
I am using the labels shown as below:

label\_list = [“NORM”, “COMMA”, “PERIOD”, “QUEST\_MARK”, “EXCLAMATION”]  
label2id = {‘COMMA’: ‘1’,  
‘EXCLAMATION’: ‘4’,  
‘NORM’: ‘0’,  
‘PERIOD’: ‘2’,  
‘QUEST\_MARK’: ‘3’}  
id2label = {‘0’: ‘NORM’,  
‘1’: ‘COMMA’,  
‘2’: ‘PERIOD’,  
‘3’: ‘QUEST\_MARK’,  
‘4’: ‘EXCLAMATION’}

Currently on inference API, it shows:  
 ![aabbbaaaaa](https://us1.discourse-cdn.com/hellohellohello/original/2X/8/832cf6e39f0ebc22d1247be6873e3c75fea85364.png)

How may I hide the label of “NORM”(id=0) and make the inference only show labels of id1-4 (“COMMA”, “PERIOD”, etc.)?  
Thank you!
