
实体链接(entity linking)
文章平均质量分 83
mmc2015
北大信科学院,关注深度强化学习。http://net.pku.edu.cn/~maohangyu/
展开
-
(1)认识Lucene:构建索引
参考官网://http://lucene.apache.org/core/5_3_1/demo/overview-summary.html#overview_descriptionpackage example;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStream;原创 2015-09-07 10:51:38 · 1192 阅读 · 0 评论 -
(2)认识Lucene:检索数据
参考官网://http://lucene.apache.org/core/5_3_1/demo/overview-summary.html#overview_descriptionpackage example;import java.nio.file.Files;import java.nio.file.Path;import java.nio.file.Paths;impo原创 2015-12-09 21:36:29 · 581 阅读 · 0 评论 -
(3)使用Lucene、LingPipe做实体链接(Entity Linking)——思路描述
思路:从DBpedia下载实体数据、含歧义的实体数据。使用python对下载的数据做一些预处理,主要是提取实体、提取有歧义的实体的映射关系、提取有歧义的实体的上下文。long_abstracts_preprocessing_entity(file_contents_examples)如下:Animalia (book)long_abstracts_preprocessi原创 2015-12-19 09:28:32 · 2320 阅读 · 0 评论 -
(4)使用Lucene、LingPipe做实体链接(Entity Linking)——数据预处理
注意,先提取有歧义的entity,再提取该entity对应的上下文(无歧义的entity没必要提取上下文)。disambiguations_preprocessing.pyfor line in f: temp=line.split("/resource/") if len(temp)!=3: #some data has problem co原创 2015-12-22 22:06:38 · 1473 阅读 · 9 评论 -
(5)使用Lucene、LingPipe做实体链接(Entity Linking)——使用Lucene构建歧义实体映射index、歧义实体上下文index
使用Lucene构建歧义实体映射index:/* * we need run this file as "Java Application" before this system is built *///http://lucene.apache.org/core/5_3_1/demo/overview-summary.html#overview_descriptionpublic原创 2015-12-22 22:16:53 · 1090 阅读 · 0 评论 -
(6)使用Lucene、LingPipe做实体链接(Entity Linking)——使用了LingPipe构建entity索引
上一篇做的工作是:使用Lucene构建歧义实体映射index、歧义实体上下文index这是还差entities的index,否则怎么查entities呢!LingPipe是个天然的entities recognise工具,有很多用法,具体参考官网,文末给出了链接。使用LingPipe构建entities的index不多说了,直接上代码://entityDictionaryC原创 2016-01-13 22:53:20 · 1390 阅读 · 0 评论 -
(7)使用Lucene、LingPipe做实体链接(Entity Linking)——根据用户输入进行entity recognition/linking
一般不讲那么多东西,直接贴代码,想看原理直接找官网,文末有链接和参考文献。public Map EntityRecognition(String submitData) throws Exception { Map returnDataMap = new TreeMap(new LengthSort()); String returnData=""; int theFir原创 2016-01-13 23:04:32 · 1754 阅读 · 0 评论 -
(8)将entity linking功能做成chrome插件
主要参考360的官方文档://http://open.chrome.360.cn/extension_dev/samples.html#a1f7cf79dd555b04fa8d603247a040e644996293//http://open.chrome.360.cn/extension_dev/content_scripts.html//http://open.chrome.360原创 2016-01-17 11:21:39 · 884 阅读 · 0 评论