![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
NLP
11111kgd
有多少人工就有多少智能
展开
-
neo4j常用语句
创建节点并添加属性"MERGE (p:reason {name: '刘能'}) RETURN p"创建关系"match (p),(b) " \"where p.name='刘能' and b.name='赵四'" \"create(p)-[r:‘friend’]->(b) return r"实体模糊查询# 查询带刘相关的实体并返回实体名称"MATCH (n) WHERE n.name=~'.*刘.*' return n.name"一级目录查询"match(n)-[r]-(m)原创 2021-04-27 18:21:11 · 474 阅读 · 0 评论 -
NLP的四大类任务
NLP的四大类任务序列标注:分词,词性标注,命名实体识别分类任务:文本分类,情感计算句子关系判断:entailment(分类为蕴含或矛盾),相似度计算生成式任务:机器翻译,问答系统,文本摘要...原创 2021-03-10 09:12:20 · 1298 阅读 · 0 评论 -
文章相似度匹配 NLP
本篇基于TFIDF计算相似度计算流程:获取文章数据;对文章数据进行预处理操作(分词及去除停用词);创建词典;建立tfidf模型计算相似度#原始数据【在文件中获取出来的,没有经过处理的文章内容】with open('./articel.txt','r',encoding='utf-8') as fr: all_data = fr.readlines()# 获取停用词def stopword(): stopwords = [word.strip() for word in原创 2020-07-10 16:13:02 · 867 阅读 · 2 评论