Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore empty sentence #201

Merged
merged 1 commit into from Aug 13, 2018
Merged

Ignore empty sentence #201

merged 1 commit into from Aug 13, 2018

Conversation

lovit
Copy link
Contributor

@lovit lovit commented Aug 8, 2018

phrase 를 sentence 로 나눌 때 split('\n') 을 이용한 결과, 다음과 같이 마지막에 line separator 가 포함된 문장에서 empty sentence 가 만들어집니다.

'예문 입니다\n'.split('\n') --> ['예문 입니다', '']

Komoran 에서 empty str 이 input 으로 들어가면 null point exception 이 발생하기 때문에 문장이 비어있으면 이를 무시하는 부분을 추가했습니다.

@coveralls
Copy link

Coverage Status

Coverage decreased (-6.08%) to 51.038% when pulling 7f80130 on lovit:master into 8e91042 on konlpy:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants