How do I hide certain labels on inference?
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: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!