上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 106 下一页
摘要: 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 阅读(235) 评论(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 阅读(129) 评论(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 阅读(924) 评论(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 阅读(141) 评论(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 阅读(261) 评论(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 阅读(269) 评论(0) 推荐(0)
摘要: https://zhidao.baidu.com/question/1835487987347793780.html 阅读全文
posted @ 2020-09-15 19:25 lypbendlf 阅读(224) 评论(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 阅读(1050) 评论(0) 推荐(0)
摘要: 1.numpy.loadtxt() https://www.jianshu.com/p/ef37f739b531 np.loadtxt()用于从文本加载数据。文本文件中的每一行必须含有相同的数据。 阅读全文
posted @ 2020-09-13 22:13 lypbendlf 阅读(99) 评论(0) 推荐(0)
摘要: 参考: https://blog.csdn.net/csdn_yi_e/article/details/71037288 https://blog.csdn.net/qq_42739440/article/details/89887451 1.chardet判断编码类型 import chardet 阅读全文
posted @ 2020-08-17 11:40 lypbendlf 阅读(2674) 评论(0) 推荐(0)
上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 106 下一页