10_000 samples & 10_000 labels

Hey Community, I have a data set which each sample has it’s own label, for instance :
I have 10000 sample which each sample has one word as label, and each label is unique for that sentence, this made 10000 training samples with 10000 labels.
Is anyone here has an idea about how to do this or a toy code?

Thank you so much for your help :wink: