marekrei / sequence-labeler

Neural network sequence labeling model
252 stars 74 forks source link

Label probabilities for the CRF layer #10

Open ashim95 opened 5 years ago

ashim95 commented 5 years ago

Hi, Thanks for sharing this great implementation. I know it is possible to get the label probabilities using forward backward algorithm in CRFs. I am finding some difficulties in implementing/modifying the default CRF implementation in tensorflow. For calculation of the partition function, they have only used the forward (message passing) algorithm. Do you have any experience or ideas about how the forward-backward algorithm could be implemented in tf?