allanj/pytorch_neural_crf

Can you tell me what is the forward_labeld and foward_unlabeld?

zshy1205 opened this issue · 3 comments

Can you give some advice about read your code?
why the loss use forward_labeld and foward_unlabeld?

This might be helpful: #4 (comment)

Thanks

Thanks @mxc19912008 . To briefly elaborate more about this: forward_labeled calculates the score (in log-space) corresponds to the gold path. forward_unlabeled calculate the sum of the scores (in log-space) that corresponds to all the possible paths.