Closed vvssttkk closed 3 years ago
Thanks for your issue!
Yes it does! Some of the pre-made HF datasets are multi-class: https://huggingface.co/datasets/emotion#default-1
I'll make the docs clearer to reflect this
good
so, at the field label
i can point some labels separated ,
good so, at the field
label
i can point some labels separated,
The field label
actually refers to the label for that specific sample, i.e cat
dog
etc. So at once, the model has to identify one label from a selection of X, if that makes sense!
IF the choices change per sample, have a look at our Multiple Choice Task: https://lightning-transformers.readthedocs.io/en/latest/tasks/nlp/multiple_choice.html
i want to watch more examples of your lib
for now, i have text
and labels
like "mask", "tesla", "spacex" ..
for this task i can use multiple choice or no? if yes, how i can enter manual the fields i need
So for each sample of text, like so:
{
"text": "Hi I am elon musk",
"label": "tesla"
},
{
"text": "Send a rocket into space",
"label": "spacex"
}
Related to #155 I'll clear up the format of data so it's clearer to people!
Hello,
To confirm, you currently support multi-class but not multi-label? Can't find any examples in the docs regarding multi-label.
Or is Multi-Label only supported through a custom DataModule?
@SeanNaren any word on this?
hey @RaedShabbir! by multi-label could you give an example? Chances are it is supported, the docs just need clarification :)
Thanks for getting back to me @SeanNaren,
I mean one hot encodings as the label vector, so the data would look similar to https://www.kaggle.com/c/jigsaw-toxic-comment-classification-challenge/data
In other words each text can have from 0 up to N labels, where N is the total number of labels.
i.e. text: "Blah blah blah" labels: "toxic", "severe"
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
did the task
text classification
support multiclass and/or multilabel classification?