keras-team / keras-contrib

Keras community contributions
MIT License
1.58k stars 650 forks source link

CRF layer documentation #209

Open ftamburin opened 6 years ago

ftamburin commented 6 years ago

Hi, I would like to extend the CRF layer slightly modifying the CRF architecture. Could you please give me a pointer to the exact reference paper/tutorial/book where the original author extracted the equations described in the code comments? If not, could you please give me a pointer to the main author of this layer. Many thanks F

RA-Danny commented 6 years ago

@linxihui If I'm not mistaking, your wrote the CRF layer code (good work btw :) )

Can you point out which paper/formulas you've used to create the implementation ? I'm also interested in it.

Thanks

linxihui commented 6 years ago

@ftamburin The formula for the CRF is already in the document here: https://github.com/keras-team/keras-contrib/blob/master/keras_contrib/layers/crf.py#L20-L21

The algorithm is forward and backward pass which you should be able to find in any book/tutorial on linear CRF.