We can create labels using label_from_folder()
, but the labels are folder names that is n2102040
. The problem is I want to convert these labels to their original names like computer
what that folder name stands for in the LOCsynset file.
Also, I am using from_folder
to get the data.
You can always use label_from_re
and then use a dict
to map the labels to a meaningful name.
3 Likes
Thanks, got it