首先清理数据:>>> text = """obin Cardozo\r\n\r\nEd Greenspon\r\n\r\nFarouk Jiwa\r\n\r\nDavid Pecaut\r\n\r\nMartha Piper\r\n\r\nThe award was presented during the closing dinner of the Social Entrepreneurship\r\nSummit held at MaRS Centre for Social Innovation in Toronto. The event gathered\r\nover 250 business, academic and social thought leaders from the social\r\nentrepreneurship sector in Canada who had convened for a full day of inspiration\r\nand engagement on ways to address some of the most pressing issues of our times.\r\n\r\nAn often under-recognized community, social entrepreneurs create and lead an\r\norganization that are aimed at catalyzing systemic social change through new\r\nideas, products, services, methodologies and changes in attitude.\r\n\r\nHosted in partnership by MaRS Centre, The Boston Consulting Group (BCG), the\r\nCentre for Social Innovation and the Toronto City Summit Alliance, the Social\r\nEntrep
python从文本中提取人名_使用python从文本中获取人员和组织名称的方法
最新推荐文章于 2024-07-10 03:01:55 发布
本文介绍如何使用Python对文本进行预处理,去除换行符,并通过简单的姓名实体识别(NER)方法,如NLTK的ne_chunk,提取人名。文章以Social Entrepreneurship Summit为例,展示了如何识别并提取出席者名单,同时也提到社会企业家的角色及其对社会变革的贡献。后续部分将探讨更复杂的NER技术来进一步提升效率。
摘要由CSDN通过智能技术生成