上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 107 下一页
摘要: 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 阅读(199) 评论(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 阅读(160) 评论(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 阅读(223) 评论(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 阅读(123) 评论(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 阅读(790) 评论(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 阅读(135) 评论(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 阅读(249) 评论(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 阅读(261) 评论(0) 推荐(0) 编辑
摘要: https://zhidao.baidu.com/question/1835487987347793780.html 阅读全文
posted @ 2020-09-15 19:25 lypbendlf 阅读(218) 评论(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 阅读(989) 评论(0) 推荐(0) 编辑
上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 107 下一页