엔엘티케이라는 자연어 처리 라이브러리를 불러와보자.!

nltk의 버전을 확인하고 실습에 필요한 Data를 대비하여 모두 다운로드 받아보자.

 

KoNLPy 설치

 

코엔엘파이(KoNLPy)는 한국어 자연어 처리를 위한 형태소 분석기 패키지이다.

 

pip install은 설치가 되지만, import 하였을 때 불러오지 못한다.

이는 JDK오류 혹은 JPype 오류 때문이다. (koNLPy가 JAVA로 구성되어 있기 때문에 그렇다고한다.)

 

이를 해결하기 위해 먼저 JDK (버전 1.7이상)를 설치 하고, 경로를 윈도우 환경변수에 추가해야 한다.

(설치 주소 : https://www.oracle.com/technetwork/java/javase/downloads/index.html)

 

Download the Latest Java LTS Free

Subscribe to Java SE and get the most comprehensive Java support available, with 24/7 global access to the experts.

www.oracle.com

 

이후, JAVA와 Python을 연결해주는 역할을 하는 JPype를 설치해야 한다.

설치 주소 : https://github.com/jpype-project/jpype/releases

 

Releases · jpype-project/jpype

JPype is cross language bridge to allow Python programs full access to Java class libraries. - jpype-project/jpype

github.com

 

 

+ Recent posts