여기서는 표제어 추출의 성능이 조금 더 높습니다. 다른 특성 추출 기법들과 마찬가지로 데이
터셋에 따라 결과에 차이가 있습니다. 표제어 추출과 어간 추출은 모델을 더 낫게 (또는 적어
도 더 간단하게) 만들어주기 때문에, 어떤 작업에서 마지막 성능까지 쥐어 짜내야 할 때 시도
해보면 좋습니다.
7.8.1
(한국어판 부록)
KoNLPy
를 사용한 영화 리뷰 분석
이 책의 감성 분석 예제는 영어로 쓰인 영화 리뷰 데이터를 사용합니다. 한글의 경우
KoNLPy
코엔엘파이
와
CountVectorizer
를 함께 사용하여 감성 분석을 할 수 있습니다. 여기서 사용할 데
이터셋은 한글로 된 영화 리뷰를 모은 <
Naver
sentiment
movie
corpus
v1
.
0
>(
https
://
github
.
com
/
e9t
/
nsmc
/)을 사용합니다. 이 말뭉치는 네이버 영화 사이트의 리뷰
20
만 개를
묶은 데이터입니다.
KoNLPy
는 여러 언어로 만들어진 형태소 분석기를 파이썬에서 손쉽게 사용할 수 있도록 도와
주는 도구입니다.
KoNLPy
를 설치하려면 파이썬 패키지
konlpy
와
JPype1
, 파이썬
3
일 경우
에는
JPype1 ...
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.