yangheng95/ABSADatasets

Train model from checkpoint with custom data throwing "Target -100 is out of bounds" error

amandalim857 opened this issue · 1 comments

Hi Yang Heng, I am trying to train the model from the checkpoint with custom data. I have already labelled the data in the correct format and also used convert_apc_set_to_atepc_set with no problem at all. I renamed the dataset to "hotel.train.txt.atepc" etc and put the data into integrated_datasets/atepc/150.Hotel/ and ran the model. However, I keep getting this error:

image

I noticed in other datasets it was labelled -999 while mine was -100, so I changed the labels to -999 but still have the same "Target -100 is out of bounds" error.

This is how my current labelled data looks like:

image

I am also not sure why errors would appear in my annotations, since if I ran convert_apc_set_to_atepc_set wouldn't that shown me errors if there was problems with my data in the first place, instead of being able to successfully create the atepc annotated file?

Thank you very much for your kind help!

Apologies, meant to leave this under the github repository for PYABSA, not ABSADatasets