View source on GitHub |
Computes the binary scores of tag sequences.
tfa.text.crf_binary_score(
tag_indices: tfa.types.TensorLike
,
sequence_lengths: tfa.types.TensorLike
,
transition_params: tfa.types.TensorLike
) -> tf.Tensor
Returns | |
---|---|
binary_scores
|
A [batch_size] vector of binary scores. |