Skip to content

Commit

Permalink
4.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunwoongko committed Dec 21, 2022
1 parent 5a46e56 commit 22282e8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion kss/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
from kss._modules.morphemes.split_morphemes import split_morphemes

__ALL__ = [split_sentences, split_morphemes]
__version__ = "4.1.0"
__version__ = "4.1.1"
4 changes: 2 additions & 2 deletions kss/_modules/sentences/sentence_splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ def check_split_end(self) -> Tuple[bool, bool]:
end_split_exception = True

# 예외 2
elif self._check_text(("-", "-", "–")) and not self._check_next_skip_sp_pos(
"SF"
elif self._check_text(("-", "-", "–")) and not (
self._check_next_skip_sp_pos("SF") or self._check_text(("-", "-", "–"))
):
end_split = True
end_split_exception = True
Expand Down
9 changes: 3 additions & 6 deletions kss/_utils/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,7 @@
" Para",
" comp",
" Comp",
" 항",
" 조",
" 호",
" 절",
" 권",
" 쪽",
]

for i in range(0, 10):
papers += [f"{i}항", f"{i}조", f"{i}호", f"{i}절", f"{i}목", f"{i}권", f"{i}쪽"]

0 comments on commit 22282e8

Please sign in to comment.