README.md

KoNLPQ

Coverage via Codecov NLPs

준비사항

Java Ver 7 이상 install.packages("rJava", type="source")

Windows

MAC

'sudo ln -f -s $(/usr/libexec/java_home)/jre/lib/server/libjvm.dylib /usr/lib'

공통

library(devtools) install_github('soeque1/KoNLPQ') library(KoNLPQ)

실행법

일반 문장에서 명사 추출

strings = '오늘도 술로 밤을 채우고' KoNLP::extractNoun(strings) kkma.extractPOS(strings, "N") twi.extractPOS(strings, "N")

띄어쓰기가 되지 않은 문장에서 명사 추출

strings = '오늘도술로밤을채우고' KoNLP::extractNoun(strings) kkma.extractPOS(strings, "N") twi.extractPOS(strings, "N")

동사 추출

kkma.extractPOS(strings, "V") twi.extractPOS(strings, "V")

명사 또는 동사 추출

kkma.extractPOS(strings, "NV") twi.extractPOS(strings, "NV")

참고

GIST



soeque1/KoNLPQ documentation built on May 30, 2019, 6:08 a.m.