tf.contrib.crf.crf_decode
Декодирование последовательности меток с наивысшим баллом в TensorFlow.
tf.contrib.crf.crf_decode(
potentials, transition_params, sequence_length
)
Это функция для тензора.
| Аргументы | |
|---|---|
potentials | Тензор [batch_size, max_seq_len, num_tags] унарных потенциалов. |
transition_params | Матрица [num_tags, num_tags] бинарных потенциалов. |
sequence_length | Вектор [batch_size] истинных длин последовательностей. |
| Возвращаемые значения | |
|---|---|
decode_tags | Матрица [batch_size, max_seq_len] с типом tf.int32. Содержит индексы меток с наивысшим баллом. |
best_score | Вектор [batch_size], содержащий оценку decode_tags. |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/crf/crf_decode