View source on GitHub |
Computes forward decoding in a linear-chain CRF.
tfa.text.crf_decode_forward(
inputs: tfa.types.TensorLike
,
state: tfa.types.TensorLike
,
transition_params: tfa.types.TensorLike
,
sequence_lengths: tfa.types.TensorLike
) -> tf.Tensor
Returns | |
---|---|
backpointers
|
A [batch_size, num_tags] matrix of backpointers. |
new_state
|
A [batch_size, num_tags] matrix of new score values. |