Open beyondguo opened 3 years ago
Hi there! We have a forums you can use for questions like this, as we like to keep the issues for bugs and feature requests only. In this instance you are right that the data collator does rename the labels automatically, so it's not strictly necessary to do it before.
However we wanted to show that renaming when doing everything by hand, does that make sense?
Oh, Thank you so much! :)
Hi @sgugger , I'm a beginner to Huggingface, I really love your tutorial which is best course I've ever seen in AI.
However, I got a little confused in the tutorial "Fine-tuning a pretrained model-A full training" part (https://huggingface.co/course/chapter3/4?fw=pt), there mentioned:
I don't think we have to manually rename the "label" to "labels", since in the source code of
data_collator.py
, there is:where the column "lable" has already been changed to "labels".
I have tested the version WITHOUT the line below:
And found that the "label" has been automatically changed to "labels":
That is, "label" has been automatically changed to "labels" by the data_collator.