I have a data set in which each row of data belongs to certain classes/labels.
text | class1 | class2 | class3 |
---|---|---|---|
text1 | pos | neg | na |
text2 | na | neg | na |
text3 | na | neu | na |
text4 | pos | neg | neg |
text5 | neg | neg | na |
There are basically 4 classes with 3 labels each (pos, neg, neu, na
). I suppose this is both a multiclass and multilabel problem. How do I approach this? I am using the BinaryRelevance
function from multisklearn
but the result always returns 2 classes only (0 and 1). What is the correct way to do this?