자체는 중요하지 않다. 다만 문서 벡터를 사용해 소셜 게시물이 스팸인지 아닌지 분류하고 좋
아요를 받을 가능성이 얼마나 되는지 예측하는 목표가 중요할 뿐이다.
7.7.3
정보 검색
다시 말하지만 문서를 표현하는 수치 벡터를 어떻게 생성하든 우린 또 이를 정보 검색 작업에
활용할 수 있다. 여기서 검색은 인덱스 기반 또는 의미 기반일 수 있다.
전체 텍스트 검색
문서에 포함된 단어 또는 단어의 일부를 기반으로 문서를 검색할 때 검색 엔진은 문서를 인덱
싱할 수 있는 단어들로 분해한다. 이는 교과서나 책의 마지막 부분에 있는 색인(찾아보기) 섹
션과 유사하다. 물론 오탈자에는 많은 추적과 추측이 필요하겠지만 인덱스를 사용할 수 있는
경우에는 꽤나 잘 작동한다.
의미 검색
semantic
search
여기서 문서 검색은 검색어와 검색 중인 문서에 포함된 단어의 의미 모두를 고려한다.
다음은 정보 검색을 위한 일반적인 접근법들이다.
문서의
TF
-
IDF
간 코사인 유사도 기반 검색
이는 수십억 개의 문서가 포함된 말뭉치에 적합하다. 검색 응답 시간이 밀리초 이내인 모든 검
색 엔진은 기본적으로
TF
-
IDF
행렬을 사용한다.
의미 기반 검색
잠재 의미 분석(수백만 개의 문서가 포함된 말뭉치의 경우) 또는 잠재 디리클레 할당(훨씬 더
작은 말뭉치의 경우 ...
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.