Skip to content

Commit

Permalink
Add user dic format in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
lovit committed Jul 30, 2018
1 parent 941872e commit c20426a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions konlpy/tag/_komoran.py
Expand Up @@ -75,6 +75,16 @@ def add_userdic_file(self, dicpath):
---------
dicpath : str
dictionary file path
사용자 사전은 한 줄에 하나의 단어 (혹은 구)를 입력합니다.
구는 띄어쓰기를 포함하는 연속된 단어입니다.
단어 뒤에 tap 을 넣은 뒤 해당 단어의 품사를 지정할 수 있습니다.
품사를 지정하지 않으면 NNP 로 인식합니다.
바람과 함께 사라지다 NNG
바람과 함께 NNP
자연어 NNG
"""
self.jki.setUserDic(dicpath)

Expand Down

0 comments on commit c20426a

Please sign in to comment.