小编Jia*_*Liu的帖子

tensorflow.pad如何工作?

有tensorflow.pad()的示例:

# 't' =  is [[1, 2, 3], [4, 5, 6]].
# 'paddings' is [[1, 1,], [2, 2]].
#  rank of 't' is 2.
' tf.pad(t, paddings, "CONSTANT")'
==> [[0, 0, 0, 0, 0, 0, 0],
     [0, 0, 1, 2, 3, 0, 0],
     [0, 0, 4, 5, 6, 0, 0],
     [0, 0, 0, 0, 0, 0, 0]]
Run Code Online (Sandbox Code Playgroud)

我的问题是如何在每个输入维度中填充零?并且t的形状为[2,3],为什么pad()之后的输出为[4,x],“ 4”如何出现?感谢您的帮助!!!

python deep-learning tensorflow

4
推荐指数
2
解决办法
3020
查看次数

如何通过CoreNLP识别一个小写的命名实体,如kobe bryant?

我遇到一个问题,CoreNLP只能识别名为Kobe Bryant的命名实体,它以一个大写字母开头,但不能识别kobe bryant作为一个人!那么如何通过CoreNLP识别以小写字符开头的命名实体???? 欣赏它!!!!

java stanford-nlp

2
推荐指数
1
解决办法
506
查看次数

标签 统计

deep-learning ×1

java ×1

python ×1

stanford-nlp ×1

tensorflow ×1