View source on GitHub |
Computes the unnormalized score for a tag sequence.
tfa.text.crf_sequence_score(
inputs: tfa.types.TensorLike
,
tag_indices: tfa.types.TensorLike
,
sequence_lengths: tfa.types.TensorLike
,
transition_params: tfa.types.TensorLike
) -> tf.Tensor
Returns | |
---|---|
sequence_scores
|
A [batch_size] vector of unnormalized sequence scores. |