SupritYoung / KBert-En

I modified some code of K-BERT so that it can be fit to English datasets Topics Resources
9 stars 1 forks source link

ZeroDivisionError: division by zero #3

Open ariefpurnamamuharram opened 1 year ago

ariefpurnamamuharram commented 1 year ago

Hello. I run the model with my custom dataset. However, it returns "ZeroDivisionError" as follows. What the most possible troubleshoot for this? Is there something wrong with the dataset? Thank you.

Screenshot 2022-12-12 at 05 38 47
ariefpurnamamuharram commented 1 year ago

Hi @SupritYoung , thank you for creating the modified version of K-BERT for English language. However, have you tried to run it with the dataset as included in the repo (implicit_hate_v1_stg1_posts)? I've try to run with the dataset, however the model can only predict label 0, and always be label 0. Do you have any idea why this happened? Thank you.

Screenshot 2022-12-20 at 06 25 18
ariefpurnamamuharram commented 1 year ago

Furthermore, @SupritYoung no encoders provided in the uer folder? Thank you.

SupritYoung commented 1 year ago

Hello, it's just part of the code, you can copy it to your project and modify little. The label prediction problem may be related to the imbalance of the data, you can see it as an example. The all code will release when my paper is accepted.