지금까지 우리는 좁은 범주의 언어로 구성된 문서를 어떻게 처리할 수 있는지 살펴보았다. 하
지만 이러한 가정을 트윗이나 특허, 영화 대본 등에 적용하려 하면 작동하지 않는다. 이와 같은
애플리케이션을 구축할 때는 데이터를 검토하고 모델을 학습하며 제품을 살펴보는 과정을 반
복해야 한다.
이번 주제는 언어학에서 무거운 주제였다. 언어로 인코딩된 정보를 추출하려는 것인 만큼 이는
당연하다. 언어학은 언어에 관한 연구이므로 그 지식을 활용하면 많은 이점을 얻을 수 있다. 하
지만 인간의 소비를 위한 것이 아닌, 모델링에 필요한 정보를 추출하려 한다면 어떻게 해야 할
까? 우리에게는
TF
.
IDF
보다 더 나은 것이 필요하다.
다음 두 개 장에서는
분포 의미론
distributional
semantics
을 설명한다.
10
장은 문서를 서로 다른
주
제
topic
의 조합으로 다루는 주제 모델링에 관해 설명하며,
11
장은 단어를 벡터로 표현하는 단어
임베딩에 관해 살펴본다.
9.6
연습 문제
이번 연습 문제에서는
SVO
(주어
S
+ 동사
V
+ 목적어
O
)를 찾는 구문 분석 트리를 순회해
본다.
from nltk.tree import Tree
def get_svo(sentence):
parse = next(parser.raw_parse(sentence)) ...
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.
O’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
I 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
I’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
I'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.