上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 106 下一页
摘要: 1.改变惩罚 https://www.datalearner.com/blog/1051561454844661,简单讲解 主要的目的是让分错的标签惩罚度更高一点? https://www.cnblogs.com/itmorn/p/11254448.html,简单讲解 上面这个也基本上是这么说的,主 阅读全文
posted @ 2020-09-27 02:28 lypbendlf 阅读(167) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/yilovexing/article/details/80577510 1. *args 和**kwargs python函数传递参数的方式有两种: 位置参数(positional argument) 关键词参数(keyword argument) 原来上 阅读全文
posted @ 2020-09-26 22:37 lypbendlf 阅读(265) 评论(0) 推荐(0)
摘要: 1.byte-level text encoding https://zhuanlan.zhihu.com/p/170656789 BPE(Byte-Pair Encoding)该方法使用bytes(字节)作为基础的子词单元,这样便把词汇表的大小控制到了5w。它可以在不需要引入任何未知字符前提下对任 阅读全文
posted @ 2020-09-26 20:20 lypbendlf 阅读(587) 评论(0) 推荐(1)
摘要: https://github.com/huggingface/transformers/issues/1827 from transformers import BertModel, BertConfig config = BertConfig.from_pretrained("xxx", outp 阅读全文
posted @ 2020-09-26 19:02 lypbendlf 阅读(3032) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/biangbiang/archive/2013/02/19/2916780.html import json print( json.dumps('中国')) print( json.dumps('中国',ensure_ascii=False)) "\ 阅读全文
posted @ 2020-09-25 22:04 lypbendlf 阅读(123) 评论(0) 推荐(0)
摘要: 1.LSTM的三个输出output, hidden, cell,分别表示什么意思? https://blog.csdn.net/wangwangstone/article/details/90296461 这里最后的代码中能搞明白。 import torch import torch.nn as n 阅读全文
posted @ 2020-09-24 12:53 lypbendlf 阅读(3718) 评论(0) 推荐(1)
摘要: https://blog.csdn.net/chandelierds/article/details/91357784,这个讲的很不错 1.往堆中添加元素 import heapq a = [] #创建一个空堆 heapq.heappush(a,18) heapq.heappush(a,1) hea 阅读全文
posted @ 2020-09-23 16:04 lypbendlf 阅读(198) 评论(0) 推荐(0)
摘要: https://github.com/fastnlp/fastNLP/blob/master/fastNLP/modules/decoder/crf.py#L298 阅读全文
posted @ 2020-09-22 20:15 lypbendlf 阅读(186) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/Ivyli4258/p/8275021.html a=[{'a':1},{'b':2}] for dict in a: for i in dict: print(i) print("dict[%s]=" %i,dict[i] ) a dict[a]= 阅读全文
posted @ 2020-09-22 11:24 lypbendlf 阅读(205) 评论(0) 推荐(0)
摘要: 1.简单版 https://blog.csdn.net/zhuzuwei/article/details/80487032 2.复杂版 https://blog.csdn.net/blmoistawinde/article/details/82379256 阅读全文
posted @ 2020-09-19 20:49 lypbendlf 阅读(172) 评论(0) 推荐(0)
上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 106 下一页