Thank you @Bhack for the introduction. Hi @rocketstar31, I am the new codeowner of CRF. I think the (on-going) CRF tutorial (https://github.com/tensorflow/addons/pull/2552 11, the notebook at https://github.com/howl-anderson/addons/blob/add_crf_tutorial/docs/tutorials/layers_crf.ipynb 19) is helpful to you. It gives detailed code samples on how to use CRF layer and compute the loss. If you still have any questions about the issue or the tutorial, please let me know.