Glossary: NLP with Transformers
id2label / label2id
Also written: id2label, label2id
Dictionaries stored in a model's config that map label numbers to names and back. With them, predictions say 'wholesale' instead of `LABEL_2`.
Glossary: NLP with Transformers
Also written: id2label, label2id
Dictionaries stored in a model's config that map label numbers to names and back. With them, predictions say 'wholesale' instead of `LABEL_2`.