a-PyTorch-Tutorial-to-Sequence-Labeling icon indicating copy to clipboard operation
a-PyTorch-Tutorial-to-Sequence-Labeling copied to clipboard

inquiry in log-sum-exp(all scores) - gold score

Open nooralahzadeh opened this issue 6 years ago • 1 comments

Hi, Thanks for the great explanation. I am wondering if I want to calculate partial CRF (http://aclweb.org/anthology/C18-1183)where we have some gold tag for some token and all possible tags for other tokens and it needs to calculate the following formula? log_sum_ex (all socore) - log_sum_ex(partial score) what would be the changes in the code?

Thanks

nooralahzadeh avatar Feb 04 '19 18:02 nooralahzadeh

I found a way to calculate partial CRF, however I made it with another CRF layer implementation. Your CRF layer implementation is so fast, however it is not compatible in a way to apply fuzzy/partial CRF!

nooralahzadeh avatar Mar 08 '19 14:03 nooralahzadeh