Warning: This project is deprecated. TensorFlow Addons has stopped development, The project will only be providing minimal maintenance releases until May 2024. See the full announcement here or on github.


Computes forward decoding in a linear-chain CRF.

inputs A [batch_size, num_tags] matrix of unary potentials.
state A [batch_size, num_tags] matrix containing the previous step's score values.
transition_params A [num_tags, num_tags] matrix of binary potentials.
sequence_lengths A [batch_size] vector of true sequence lengths.

backpointers A [batch_size, num_tags] matrix of backpointers.
new_state A [batch_size, num_tags] matrix of new score values.