Skip to content

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`.

Where the book teaches it

Related terms

ClassLabelConfiguration