当前位置: 首页 > news >正文

网站关键词被百度屏蔽怎么办合肥网络推广优化公司

网站关键词被百度屏蔽怎么办,合肥网络推广优化公司,建一个公司网站多少钱?,汕头做网站的公司前言 本文大多数内容均copy于关系抽取数据集 NYT-10 SemEval2010 一、NYT-10是什么? NYT-10数据发布于Riedel et al, 2010这篇论文中,其文本来源于纽约时报New York Times所标注的语料,命名实体是通过 Stanford NER 工具并结合 Freebase 知…

前言

本文大多数内容均copy于关系抽取数据集 NYT-10 SemEval2010


一、NYT-10是什么?

NYT-10数据发布于Riedel et al, 2010这篇论文中,其文本来源于纽约时报New York Times所标注的语料,命名实体是通过 Stanford NER 工具并结合 Freebase 知识库进行标注的。命名实体对之间的关系是链接和参考外部的Freebase知识库中的关系,结合远监督方法所得到的。

二、数据下载

1.OpenNRE

数据可直接从这一链接中进行下载:https://github.com/thunlp/OpenNRE/tree/master/benchmark
以其中的download_nyt10.sh为例其内容如下:

mkdir nyt10
wget -P nyt10 https://thunlp.oss-cn-qingdao.aliyuncs.com/opennre/benchmark/nyt10/nyt10_rel2id.json
wget -P nyt10 https://thunlp.oss-cn-qingdao.aliyuncs.com/opennre/benchmark/nyt10/nyt10_train.txt
wget -P nyt10 https://thunlp.oss-cn-qingdao.aliyuncs.com/opennre/benchmark/nyt10/nyt10_test.txt

我的步骤如下:

  1. 首先需要先安装wget。(使用直接百度得到的安装方法即可。)
  2. 在需要下载的目标文件下打开cmd。(或者打开cmd然后移动到目标文件下都一样。)
  3. 将上述4条命令改成如下:
mkdir nyt10
wget --no-check-certificate -P nyt10 https://thunlp.oss-cn-qingdao.aliyuncs.com/opennre/benchmark/nyt10/nyt10_rel2id.json
wget --no-check-certificate -P nyt10 https://thunlp.oss-cn-qingdao.aliyuncs.com/opennre/benchmark/nyt10/nyt10_train.txt
wget --no-check-certificate -P nyt10 https://thunlp.oss-cn-qingdao.aliyuncs.com/opennre/benchmark/nyt10/nyt10_test.txt

如果不修改会报错,报错内容如下。(我的是windows系统。)

SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = D:\wget\GnuWin32/etc/wgetrc
--2021-09-25 23:26:05--  https://thunlp.oss-cn-qingdao.aliyuncs.com/opennre/benchmark/nyt10/nyt10_rel2id.json
正在解析主机 thunlp.oss-cn-qingdao.aliyuncs.com... 119.167.128.167, 119.167.128.167
Connecting to thunlp.oss-cn-qingdao.aliyuncs.com|119.167.128.167|:443... 已连接。
ERROR: cannot verify thunlp.oss-cn-qingdao.aliyuncs.com's certificate, issued by `/C=BE/O=GlobalSign nv-sa/CN=GlobalSign Organization Validation CA - SHA256 - G2':Unable to locally verify the issuer's authority.
ERROR: certificate common name `*.oss-cn-beijing.aliyuncs.com' doesn't match requested host name `thunlp.oss-cn-qingdao.aliyuncs.com'.
To connect to thunlp.oss-cn-qingdao.aliyuncs.com insecurely, use `--no-check-certificate'.
无法建立 SSL 连接。
  1. 依次运行上述4条命令。(直接运行shell脚本应该也可以,不过我不会。【@_@|||】)

    通过这一方法下载会得到总计170+M的数据

2.Tsinghua Cloud 或 Google Drive

Tsinghua Cloud链接:https://link.zhihu.com/?target=https%3A//cloud.tsinghua.edu.cn/f/11391e48b72749d8b60a/%3Fdl%3D1
Google Drive链接(没打开过):https://link.zhihu.com/?target=https%3A//drive.google.com/file/d/1eSGYObt-SRLccvYCsWaHx1ldurp9eDN_/view%3Fusp%3Dsharing
通过这一方式会下载得到大约3G的压缩文件,解压后如下所示。
在这里s入图片描述
对于其中的protobuf2json.py文件中可以掉到get_entities如下:

def get_entities(file_name):print("Loading entities...")f = open(file_name, 'rb')for line in f.readlines():line = line.rstrip()guid, word, type = line.split('\t')guid2entity[guid] = {'id': guid, 'word': word, 'type': type}       f.close()print("Finish loading, got {} entities totally".format(len(guid2entity)))

将其修改为如下(仅修改第5行):

def get_entities(file_name):print("Loading entities...")f = open(file_name, 'rb')for line in f.readlines():line = line.rstrip().decode()guid, word, type = line.split('\t')guid2entity[guid] = {'id': guid, 'word': word, 'type': type}       f.close()print("Finish loading, got {} entities totally".format(len(guid2entity)))
打开其中的README.md,按照里面的指示需要运行
protoc --proto_path=. --python_out=. Document.proto
python protobuf2json.py

要运行第一条就需要先安装protoc。(安装方法百度得到的方法即可。)
然后,运行以上两条命令即可。


总结

因为,在寻找数据集的过程中没有找到一个直接下载就可用的。在这个过程中甚至还从CSDN的上下载了,结果感觉还是不行。通过第二个方式得到的数据集大小是1.74G,而通过第一个方式下载得到的大小是170+M。我单从这一点上推测通过第二个方式下载的数据可能会比第一个途径的数据多一些。(详细情况我也不知道。)
http://www.yidumall.com/news/65271.html

相关文章:

  • 做java网站后台开发需要什么技能seo发帖网站
  • 服务周到的响应式网站百度网盘在线观看资源
  • 上海网站开发一对一培训昆明新闻头条最新消息
  • 政府网站节约化建设方案宁波品牌网站推广优化
  • 做html网站搜索框代码2022年免费云服务器
  • 已有网站怎么做后台网络营销方式方法
  • 网站建设需要哪些企业资料快速网络推广
  • 呼和浩特建设工程安全管理网站seo的形式有哪些
  • 文小库公文写作网站越秀seo搜索引擎优化
  • 成都网站建设网络公司如何实施网站推广
  • 学校网站建设全包推广赚佣金项目
  • 阜宁哪家专业做网站2023年时政热点事件
  • 南京网站制作公司电话百度明星人气排行榜
  • 做网站的公司主要工作网站数据分析案例
  • wordpress 吃cpu佳木斯seo
  • 沈阳做网站建设友链交易平台源码
  • 网站名称怎么收录品牌推广手段
  • 网站即将上线页面代码seo推广网络
  • 有个网站做中日韩测试网站数据统计工具
  • wordpress增加关键词和描述宁波seo公司推荐
  • 如何做一个好网站软文发布的平台与板块
  • 租空间做网站百度搜索广告推广
  • 山东省建设部网站有没有推广app的平台
  • 舟山 网站制作上海seo推广方法
  • 威海外贸网站建设电话uc浏览网页版进入
  • 可以做pos机的网站成都互联网公司排名
  • 做企业网站通常哪找素材代写企业软文
  • 网站赌博做任务佣金违法营销型网站方案
  • 北京专业网站制作服务详细的营销推广方案
  • 义乌网站建设推广百度识图在线入口