lancopku / SGM

Sequence Generation Model for Multi-label Classification (COLING 2018)
432 stars 113 forks source link

What is the format of label_test? #5

Closed linxid closed 5 years ago

linxid commented 6 years ago

Is it meaning that data have different label length. If my dataset's label is:

id1 -2 -2 -2 -2 1 -2 -2 -2 -2 1 -2 -2 -2 -2 -2 -2 1 -2 1 -2
id2 -2 -2 -2 -2 -2 -2 -2 0 -2 1 0 0 0 0 1 -2 -2 -2 1 -2

I only need to let label train is: -2 -2 -2 -2 1 -2 -2 -2 -2 1 -2 -2 -2 -2 -2 -2 1 -2 1 -2 Thx

ypengc7512 commented 6 years ago

The label sequences can have different lengths. The model can automatically determine the number of predicted labels by predicting $eos$.