bug in trainer.py line297
# 🐛 Bug

## Information

I found this bug while running example/token_classification/run_ner.py. 
I fixed that by delete the 'self.' prefix.

## Reproduce
 just execute `run_ner.py`

Will be fixed by #5982<|||||>Fixed by #5982