Token classification
https://huggingface.co/transformers/custom_datasets.htmli followed token classification tutorial on above link trained completed successufully then i predictedmodel = DistilBertForTokenClassification.from_pretrained('./results/checkpoint-500', num_labels=len(unique_tags))
trainer = Trainer(
    model=model,                         # the instantiated 🤗 Transformers model to be trained
)

res = trainer.predict(new_dataset)
predictions = res.predictions```
 
i am getting an numpy array of d dimension how to convert predicted values to its corresponding tokens and i am assuming that res.predictions is numerical value of tags not tokens if i am wrong correct me
2021-10-11T11:52:07Z
You can check outthis threadI just wrote on how to convert predictions to actual labels for token classification models.