okt사용자 사전 관련해서 문의드려요

851 views
Skip to first unread message

Hee Eun Yang

unread,
Sep 2, 2020, 12:11:36 AM9/2/20
to open-korean-text
안녕하세요 현재
구글 colab에서 okt에 사용자 사전을 추가해서 돌려보려고 하는데요, 

/usr/local/lib/python3.6/dist-packages/konlpy/java/org/openkoreantext/processor/util/noun/names.txt

위와 같은 주소에서 파일에 신규 단어를 추가하고
다시 파일을 jar로 만들어서 (!jar cvf open-korean-text-2.1.0.jar * )

사용하고자 합니다.

근데 okt객체를 생성해서 테스트 해보면, 신규 단어가 반영이 되지 않네요..

혹시 다른 추가 작업이 필요한걸까요?
아니면 다른 경로의 okt를 쓰고 있는건지...(물론 다른 폴더에는 okt 가 없는걸 확인하였습니다. ㅠㅠ)

Hohyon Ryu

unread,
Sep 3, 2020, 12:53:50 PM9/3/20
to open-korean-text
안녕하세요?

음 그 부분은 konlpy에서 어떻게 컴파일을 하는지에 따라 다를 것 같아요. konlpy 팀에 물어보시면 될 것 같습니다. 


addNounsToDictionary를 사용하시면 소스 파일을 안 고쳐도 객체에 추가하실 수 있습니다.

Will Hohyon Ryu
유호현
Founder and CEO, OXOpolitics


--
You received this message because you are subscribed to the Google Groups "open-korean-text" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-korean-te...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/open-korean-text/4610b9cc-1a91-48fe-b222-e937d424c354n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages