上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 107 下一页
摘要: https://www.cnblogs.com/stones-dream/p/10183210.html 1.sort(first_pointer,first_pointer+n,cmp) 实现原理:sort并不是简单的快速排序,它对普通的快速排序进行了优化,此外,它还结合了插入排序和推排序。系统会 阅读全文
posted @ 2020-10-09 21:55 lypbendlf 阅读(186) 评论(0) 推荐(0) 编辑
摘要: https://medium.com/@aniruddha.choudhury94/part-2-bert-fine-tuning-tutorial-with-pytorch-for-text-classification-on-the-corpus-of-linguistic-18057ce330 阅读全文
posted @ 2020-09-28 11:08 lypbendlf 阅读(852) 评论(0) 推荐(0) 编辑
摘要: 1.改变惩罚 https://www.datalearner.com/blog/1051561454844661,简单讲解 主要的目的是让分错的标签惩罚度更高一点? https://www.cnblogs.com/itmorn/p/11254448.html,简单讲解 上面这个也基本上是这么说的,主 阅读全文
posted @ 2020-09-27 02:28 lypbendlf 阅读(155) 评论(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 阅读(248) 评论(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 阅读(524) 评论(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 阅读(2860) 评论(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 阅读(114) 评论(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 阅读(3171) 评论(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 阅读(186) 评论(0) 推荐(0) 编辑
摘要: https://github.com/fastnlp/fastNLP/blob/master/fastNLP/modules/decoder/crf.py#L298 阅读全文
posted @ 2020-09-22 20:15 lypbendlf 阅读(177) 评论(0) 推荐(0) 编辑
上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 107 下一页