Skip to Content
Python文本分析
book

Python文本分析

by Jens Albrecht, Sidharth Ramachandran, Christian Winkler
August 2022
Intermediate to advanced
441 pages
11h 26m
Chinese
China Electric Power Press Ltd.
Content preview from Python文本分析
378
|
第
12
章
12.7
关系提取
尽管共现图可以让我们对公司的网络关系有一些了解,但是我们并不知道这些
关系的类型。举个例子,在图
12-5
中,左上角的“
Schlumberger
”“
Fairchild
Semiconductor
”和“
Fujitsu
”等公司组成的子图。我们对这些公司之间的关系一无
所知,信息仍然隐藏在下面的句子中:
Fujitsu wants to expand. It plans to acquire 80% of Fairchild Corp, an industrial unit of
Schlumberger.
在本节中,我们将介绍两种基于模式的关系提取。第一种比较简单,即搜索
“
subject-predicate-object
”(主语
-
谓语
-
宾语)形式的短语。
第二种则使用句
子的句法结构(即依存树),获取更准确的结果,但使用的规则也更复杂。最
后,我们将生成基于四种关系的知识图:“
acquires
”“
sells
”“
subsidiary-of
”和
“
chairperson-of
”。老实说,为了便于识别,我们使用的“
acquires
”和“
sells
”
的定义比较宽泛。它们也可以匹配这样的句子:“
Fujitsu
plans to acquire 80%
of
Fairchild Corp
”,甚至是“
Fujitsu
withdraws the option to acquire
Fairchild Corp
”。
由于自然语言的歧义以及关系的诸多种类与变化,关系提取是一个复杂的问题 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

工程战略的制定

工程战略的制定

Will Larson
Python实用技能学习指南

Python实用技能学习指南

Posts & Telecom Press, Robert Smallshire, Austin Bingham
精益AI

精益AI

Lomit Patel
Excel金融建模

Excel金融建模

Posts & Telecom Press, Shmuel Oluwa

Publisher Resources

ISBN: 9787519864446