CLUENER2020 icon indicating copy to clipboard operation
CLUENER2020 copied to clipboard

Row index represents the current state, and column index represents the next state in the transition matrix of CRF?

Open lkqnaruto opened this issue 2 years ago • 1 comments

Hi

I'm little bit confused about the index of CRF transition matrix. I wonder whether the row index represents the current state, and column index represents the next state in the transition matrix of CRF? Would it be same for the case if they are switched?https://github.com/CLUEbenchmark/CLUENER2020/blob/a3e1bcf27eb9280d113b3e938561ca07652e32a3/pytorch_version/models/crf.py#L41

I notice in your code, row index is the start state, and column index is the next state. I wonder whether it would be the same if I use row index to be the next state and column index to be the current state?

lkqnaruto avatar Dec 08 '21 06:12 lkqnaruto

您好! 您的邮件我已收到,我会尽快查看的。谢谢哈!

YueCongPKU avatar Dec 08 '21 06:12 YueCongPKU