09 2020 档案

摘要: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 阅读(859) 评论(0) 推荐(0) 编辑
摘要:1.改变惩罚 https://www.datalearner.com/blog/1051561454844661,简单讲解 主要的目的是让分错的标签惩罚度更高一点? https://www.cnblogs.com/itmorn/p/11254448.html,简单讲解 上面这个也基本上是这么说的,主 阅读全文
posted @ 2020-09-27 02:28 lypbendlf 阅读(158) 评论(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 阅读(258) 评论(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 阅读(560) 评论(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 阅读(2955) 评论(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 阅读(117) 评论(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 阅读(3566) 评论(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 阅读(193) 评论(0) 推荐(0) 编辑
摘要:https://github.com/fastnlp/fastNLP/blob/master/fastNLP/modules/decoder/crf.py#L298 阅读全文
posted @ 2020-09-22 20:15 lypbendlf 阅读(179) 评论(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 阅读(201) 评论(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 阅读(164) 评论(0) 推荐(0) 编辑
摘要:1.编码范围 https://blog.csdn.net/mouday/article/details/81512870 import sys def check_contain_chinese(check_str): for ch in check_str.encode('utf-8').deco 阅读全文
posted @ 2020-09-19 15:03 lypbendlf 阅读(228) 评论(0) 推荐(0) 编辑
摘要:1.直方图 import matplotlib.pyplot as plt plt.hist(x = len_s, # 指定绘图数据 bins = 20, # 指定直方图中条块的个数 color = 'steelblue', # 指定直方图的填充色 edgecolor = 'black' # 指定直 阅读全文
posted @ 2020-09-19 10:50 lypbendlf 阅读(126) 评论(0) 推荐(0) 编辑
摘要:1.下面排名根据 GitHub 上的 star 数排名 Hanlp Stanford 分词 ansj 分词器 哈工大 LTP KCWS分词器 jieba IK 清华大学THULAC ICTCLAS 英文: Keras Spacy Gensim NLTK https://easyai.tech/ai- 阅读全文
posted @ 2020-09-18 18:39 lypbendlf 阅读(840) 评论(0) 推荐(0) 编辑
摘要:转自:https://blog.csdn.net/space_walk/article/details/102738583 1.转换为list def main(): # 字符串 s = "HelloWorld!" # 转换成数组 l = list(s) # 对数组排序,注意,该方法没有返回值 l. 阅读全文
posted @ 2020-09-18 13:44 lypbendlf 阅读(137) 评论(0) 推荐(0) 编辑
摘要:1.查看keras和tf的对应版本 https://docs.floydhub.com/guides/environments/ 2.keras如何使用GPU? https://blog.csdn.net/qq_33182424/article/details/106080243 检查GPU: fr 阅读全文
posted @ 2020-09-17 00:32 lypbendlf 阅读(250) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/ywp_2016/article/details/102914361,这个介绍的非常好。 9-18更新———— http://www.manongjc.com/article/40737.html 功能: 分词、 词干化、 词性标注、 NER、 名词短语提 阅读全文
posted @ 2020-09-16 23:56 lypbendlf 阅读(265) 评论(0) 推荐(0) 编辑
摘要:https://zhidao.baidu.com/question/1835487987347793780.html 阅读全文
posted @ 2020-09-15 19:25 lypbendlf 阅读(220) 评论(0) 推荐(0) 编辑
摘要:1.json转conll格式 https://github.com/explosion/spaCy/issues/1966 from spacy.gold import biluo_tags_from_offsets doc = nlp(u'I like London.') entities = [ 阅读全文
posted @ 2020-09-14 11:04 lypbendlf 阅读(1020) 评论(0) 推荐(0) 编辑
摘要:1.numpy.loadtxt() https://www.jianshu.com/p/ef37f739b531 np.loadtxt()用于从文本加载数据。文本文件中的每一行必须含有相同的数据。 阅读全文
posted @ 2020-09-13 22:13 lypbendlf 阅读(93) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示