[英]why the value of array_ops.expand_dims is below.The code comes from tensorflow contrib crf
[英]What's code snippet of tf.contrib.crf.crf_log_likelihood in latest tensorflow version 2.8
Tensorflow 1.5 中存在以下功能,目前已弃用。
function对应的代码是什么:
tf.contrib.crf.crf_log_likelihood()
tf.contrib.crf.viterbi_decode()
在最新的Tensorflow 2.8版本?
这两个功能现在都可以在Tensorflow
Addons
package 下使用。
您可以使用以下代码访问这些功能:
!pip install tensorflow_addons #to install tensorflow_addons package
import tensorflow_addons as tfa
tfa.text.crf_log_likelihood()
tfa.text.viterbi_decode()
请检查此链接以获取更多详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.