摘要: 转自:https://blog.csdn.net/qq_16912257/article/details/79099581 https://blog.csdn.net/thriving_fcl/article/details/51406780 1.简单使用 from gensim.models im 阅读全文
posted @ 2019-04-18 20:34 lypbendlf 阅读(511) 评论(0) 推荐(0) 编辑
摘要: 1.tagger-master中的loader.py实现从文件中加载词向量。 pretrained = set([#关注的是这里,打开词嵌入文件。 line.rstrip().split()[0].strip() for line in codecs.open(ext_emb_path, 'r', 阅读全文
posted @ 2019-04-18 20:25 lypbendlf 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.runoob.com/python/python-func-any.html 1.any() 函数用于判断给定的可迭代参数 iterable 是否全部为 False,则返回 False,如果有一个为 True,则返回 True。 元素除了是 0、空、FALSE 外都算 T 阅读全文
posted @ 2019-04-18 20:13 lypbendlf 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/sddai/p/5696870.html //原来三者是不同的。。。 1.例子 准确率(Accuracy) = (TP + TN) / 总样本 =(40 + 10)/100 = 50%。 定义是: 对于给定的测试数据集,分类器正确分类的样本数与总 阅读全文
posted @ 2019-04-18 16:23 lypbendlf 阅读(1082) 评论(0) 推荐(0) 编辑
摘要: 转自:https://datascience.stackexchange.com/questions/15989/micro-average-vs-macro-average-performance-in-a-multiclass-classification-settin 1.计算方式不同 A m 阅读全文
posted @ 2019-04-18 15:45 lypbendlf 阅读(336) 评论(0) 推荐(0) 编辑
摘要: Deep learning with word embeddings 论文阅读笔记1.将三个模型进行了对比: i)LSTM-CRF(tagger-master); ii)使用通用特征集的CRF+词嵌入向量 ; iii)对每个类的特定实体NER方法。 2.基线模型 2.1CRF模型 CRFSuite: 阅读全文
posted @ 2019-04-18 15:10 lypbendlf 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/business122/article/details/7541486 1.python的set和其他语言类似, 是一个无序不重复元素集, 基本功能包括关系测试和消除重复元素. 集合对象还支持union(联合), intersection(交), d 阅读全文
posted @ 2019-04-18 11:22 lypbendlf 阅读(172) 评论(0) 推荐(0) 编辑