- 博客(9)
- 收藏
- 关注
原创 wordPiece Google’s Neural Machine Translation System: Bridging the Gap between Human and Machine Tra
Google’s Neural Machine Translation System: Bridging the Gap between Human and Machine Translation主要关注于wordPiece分词方法论文的4.2节在自然语言处理领域,分词作为数据预处理工作中重要的一环。神经网络模型的训练和预测都需要借助词表来对句子进行表示。传统的构造词表的方法,先对句子进行分词,然后选择频数最高的前N个词组成词表。通常训练集中包含了大量的词汇,以英语为例,总的单词数量在17万到100
2021-01-16 17:02:26
350
原创 Attention-Based Bidirectional Long Short-Term Memory for Relation Classification
论文题目:《Attention-Based Bidirectional Long Short-Term Memory for Relation Classification》@TOC应用领域:NLP的关系分类(关系分类任务是寻找名词对之间的语义关系。是一项语义处理任务,对许多下游任务如信息抽取,问题回答等非常有用。)(例如:该句包含了名词flowers和chaple的实体-目的地关系之间的例子。flowers are carried into the chaple )(挑战:重要的信息可以出现在句
2021-01-16 15:01:27
285
1
原创 tf.identity()函数
tf.identify(input,name=None)功能:返回一个和输入的tensor大小和数值都相同的tensor
2020-07-14 17:53:10
566
原创 导入同一级目录下的python文件的函数标红
解决办法:from .utils import batch_gather原本是from utils import batch_gather重点是多加了一个点
2020-07-13 20:27:59
1037
1
原创 TypeError: `Tensor` objects are not iterable when eager execution is not enabled.
TypeError: `Tensor` objects are not iterable when eager execution is not enabled. To iterate over this tensor use `tf.map_fn`.问题分析:当未启用即时使用时,张量对象不可以迭代,使用tf.map_fn
2020-07-13 19:29:37
2355
原创 TypeError: ‘map‘ object is not subscriptable
问题分析:类型错误:‘map’对象是不可订阅的;subscriptable是写在下方的,脚注的;出现问题的代码片段: outputs_l = [nest.pack_sequence_as(inputs_l[0], output_ta_flat) for output_ta_flat in zip(*outputs_ta_flat)]其实也没有map这个语法解决办法:网上查到的推荐的方法:使用list包装出现问题的对象,list();使用后没有作用我试着for output
2020-07-13 18:07:01
2434
原创 在 Python 3.x 中,range() 是像 xrange() 那样实现以至于一个专门的 xrange() 函数都不再存在(在 Python 3 中 xrange() 会抛出命名异常)
range
2020-07-13 17:28:04
160
原创 2020-07-06
Pychame突然打不开1.进入cmd.exe文件目录2.邮件以管理员身份打开命令行3.输入 netsh winsock reset4.运行命令行5.重启电脑,重新打开pycharm
2020-07-06 16:46:13
110
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人