Replies: 3 comments 3 replies
-
Not sure honestly, since this is a multi-label dataset, try You will also need to change the dataset creation script to support multiple labels |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Greetings; I have tirelessly looking for any example notebooks on Arabic Multi label Classification to practice on and only found this thread that seems useful. Have you solved this issue and have a sample notebook to study on? @iR00i @ReemAlJunaid @WissamAntoun @NajlaKSA Thank you. |
Beta Was this translation helpful? Give feedback.
-
assuming im working on a Multi-Label classification task, where for each text sample, there are 3+ labels, and for each label there is only two values, in other words you can call it a Multi-Label Binary classification.
For example consider a dataset like this:
For the task of classification i referred to this colab notebook, i tried to modify the
BertDataset
class to look like this:but when it came to the
InputFeatures()
function that the method__getitem__
returns, i was unsure how to write it, i referred to the original huggingface doc for InputFeatures(), but there is no mention of it's use for multi-label tasks.would something like this work?
and what should be the value of
num_labels
in:Beta Was this translation helpful? Give feedback.
All reactions