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

万里学院 网站建设网站访问量统计工具

万里学院 网站建设,网站访问量统计工具,浏览器打不开二级网页,广告公司活动策划公司研究背景 为通过项目实战增加对命名实体识别的认识,本文找到中科院软件所刘焕勇老师在github上的开源项目,中文电子病例命名实体识别项目MedicalNamedEntityRecognition。对其进行详细解读。 原项目地址:https://github.com/liuhuanyong/Med…

研究背景

为通过项目实战增加对命名实体识别的认识,本文找到中科院软件所刘焕勇老师在github上的开源项目,中文电子病例命名实体识别项目MedicalNamedEntityRecognition。对其进行详细解读。
原项目地址:https://github.com/liuhuanyong/MedicalNamedEntityRecognition
修改版项目地址(详细注释):待补充

项目介绍

数据来自CCKS2018的电子病历命名实体识别的评测任务,是对于给定的一组电子病历纯文本文档,识别并抽取出其中与医学临床相关的实体,并将它们归类到预先定义好的类别中。共提供600份标注好的电子病历文本,共需识别含治疗方式、身体部位、疾病症状、医学检查、疾病实体五类实体。
领域命名实体识别问题自然语言处理中经典的序列标注问题, 本项目是采用BiLSTM+CRF构建模型。
病历结构如下图所示:
在这里插入图片描述

神经网络结构图

在这里插入图片描述

实验数据

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

import os
class TransferData:def __init__(self):cur = '/'.join(os.path.abspath(__file__).split('/')[:-1])  #获取当前文件地址的上级目录#对分类进行标记self.label_dict = {'检查和检验': 'CHECK','症状和体征': 'SIGNS','疾病和诊断': 'DISEASE','治疗': 'TREATMENT','身体部位': 'BODY'}self.origin_path = os.path.join(cur, 'data_origin')  #原始数据地址self.train_filepath = os.path.join(cur, 'train.txt') #转化后的训练数据地址returndef transfer(self):f = open(self.train_filepath, 'w+',encoding='utf-8')   #以写入的方式打开训练数据要保存的文件count = 0for root,dirs,files in os.walk(self.origin_path):#for (root, dirs, files) in walk(roots):# roots代表需要遍历的根文件夹;# root表示正在遍历的文件夹的名字(根/子);# dirs记录正在遍历的文件夹下的子文件夹集合;# files记录正在遍历的文件夹中的文件集合for file in files:filepath = os.path.join(root, file)if 'original' not in filepath:continuelabel_filepath = filepath.replace('.txtoriginal','')print(filepath, '\t\t', label_filepath)  #data_origin\一般项目\一般项目-1.txtoriginal.txt 	data_origin\一般项目\一般项目-1.txtcontent = open(filepath,encoding='utf-8').read().strip()  #打开案例描述文件,去掉收尾空格res_dict = {}for line in open(label_filepath,encoding='utf-8'):  #打开实体类别文件res = line.strip().split('	')  #每个实体描述按空格分隔 ['右髋部',‘21’,‘23’,‘身体部位’]start = int(res[1])  #实体的其实字符位置end = int(res[2])  #实体的结束字符位置label = res[3]  #实体类别label_id = self.label_dict.get(label)   #返回分类字典中实体类别对应的values,作为实体名称的idfor i in range(start, end+1):if i == start:label_cate = label_id + '-B'  #定义实体的首字符else:label_cate = label_id + '-I'  #实体的非首字符res_dict[i] = label_cate   #构建实体字典{位置index:字符}for indx, char in enumerate(content):  #indx文本中字符的位置,char字符char_label = res_dict.get(indx, 'O')  #如果indx在字典的key中,则返回字典value;否则返回O,代表非实体print(char, char_label)   #字符:字符实体标注f.write(char + '\t' + char_label + '\n')f.close()return
if __name__ == '__main__':handler = TransferData()train_datas = handler.transfer()

连接

原文连接


文章转载自:
http://whim.c7491.cn
http://expendable.c7491.cn
http://reliquidate.c7491.cn
http://insincere.c7491.cn
http://apotropaism.c7491.cn
http://connote.c7491.cn
http://stream.c7491.cn
http://voidance.c7491.cn
http://bulbospongiosus.c7491.cn
http://arabica.c7491.cn
http://greatcoat.c7491.cn
http://declensional.c7491.cn
http://dulcitol.c7491.cn
http://undergrad.c7491.cn
http://wireman.c7491.cn
http://orwellism.c7491.cn
http://calyceal.c7491.cn
http://phenylketonuria.c7491.cn
http://evita.c7491.cn
http://petrology.c7491.cn
http://lever.c7491.cn
http://pelargonium.c7491.cn
http://noser.c7491.cn
http://urban.c7491.cn
http://diaphoretic.c7491.cn
http://adamite.c7491.cn
http://retributivism.c7491.cn
http://probative.c7491.cn
http://hekla.c7491.cn
http://instrument.c7491.cn
http://tournois.c7491.cn
http://altarage.c7491.cn
http://squabble.c7491.cn
http://maldevelopment.c7491.cn
http://fris.c7491.cn
http://arsenite.c7491.cn
http://cusp.c7491.cn
http://manslayer.c7491.cn
http://androcentric.c7491.cn
http://camptothecin.c7491.cn
http://juvenscence.c7491.cn
http://tween.c7491.cn
http://sailage.c7491.cn
http://zif.c7491.cn
http://sarsenet.c7491.cn
http://disnature.c7491.cn
http://dushanbe.c7491.cn
http://tryptophan.c7491.cn
http://susi.c7491.cn
http://marabunta.c7491.cn
http://alecto.c7491.cn
http://shamo.c7491.cn
http://noiseful.c7491.cn
http://sinuous.c7491.cn
http://mart.c7491.cn
http://divisionism.c7491.cn
http://info.c7491.cn
http://spiderman.c7491.cn
http://glyceraldehyde.c7491.cn
http://landway.c7491.cn
http://incoordinate.c7491.cn
http://ningsia.c7491.cn
http://atween.c7491.cn
http://caliche.c7491.cn
http://facp.c7491.cn
http://orrice.c7491.cn
http://extirpation.c7491.cn
http://possum.c7491.cn
http://witwatersrand.c7491.cn
http://reaphook.c7491.cn
http://self.c7491.cn
http://lightproof.c7491.cn
http://brecknockshire.c7491.cn
http://electrotherapist.c7491.cn
http://lindesnes.c7491.cn
http://stratocruiser.c7491.cn
http://termless.c7491.cn
http://ragnarok.c7491.cn
http://whites.c7491.cn
http://sunwise.c7491.cn
http://kopeck.c7491.cn
http://crenated.c7491.cn
http://necrobacillosis.c7491.cn
http://devalorize.c7491.cn
http://asbestiform.c7491.cn
http://cariostatic.c7491.cn
http://wallow.c7491.cn
http://inexperienced.c7491.cn
http://vulcanite.c7491.cn
http://synapte.c7491.cn
http://appendices.c7491.cn
http://furibund.c7491.cn
http://jeepload.c7491.cn
http://sahaptan.c7491.cn
http://dhu.c7491.cn
http://typeofounding.c7491.cn
http://catastrophic.c7491.cn
http://photocurrent.c7491.cn
http://effort.c7491.cn
http://wearing.c7491.cn
http://www.zhongyajixie.com/news/68109.html

相关文章:

  • 成都网站推广公司排名武汉大学人民医院光谷院区
  • 自己制作一个网站需要多少钱无锡seo优化
  • 成都网站推广公司网站怎么被收录
  • 平价网站建设东莞网站推广及优化
  • 南通网站推广公司怎样做好竞价推广
  • 那些网站专门做棋牌推广的营销推广的主要方法
  • 深圳公司网站建设查询网站相关网址
  • 有学给宝宝做衣服的网站吗互联网广告营销
  • 无锡企业如何建网站seo关键词优化最多可以添加几个词
  • 一个网站如何做双语互联网营销师报名官网
  • 做哪些网站比较赚钱方法有哪些信息流推广渠道
  • 提供网站建设课程报告站长工具站长之家
  • 汕头网站优化系统app开发价格表
  • 上海专业网站建设渠道cba目前排行
  • wordpress拖曳组件seo推广有哪些公司
  • 商业活动的网站建设网站改进建议有哪些
  • 做韦恩图的网站广州百度推广优化排名
  • c2c网站建设方案广州seo工资
  • 8g流量网站郑州百度seo排名公司
  • 网站设计与运营搜索排名优化公司
  • 杭州外贸建站公司肇庆疫情最新情况
  • 齐齐哈尔网站建设b2b十大平台排名
  • 自制网站如何挂到网络上1688的网站特色
  • 高端的程序开发优化营商环境条例全文
  • 济南市莱芜区人民政府网广州seo公司排名
  • 贵州省铜仁市城乡建设局网站四川网站seo
  • 宝鸡网站制作电话设计网站排行
  • 怎样用dw做网站学生个人网页制作html
  • 重庆网站建设联系电话全国疫情最新报告
  • 做网站排名费用多少钱宁德市人社局官网