From 22282e8cc5df2a4e03682b5ad62aa1feb37af19a Mon Sep 17 00:00:00 2001 From: hyunwoongko Date: Wed, 21 Dec 2022 12:52:20 +0900 Subject: [PATCH] 4.1.1 --- kss/__init__.py | 2 +- kss/_modules/sentences/sentence_splitter.py | 4 ++-- kss/_utils/const.py | 9 +++------ 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/kss/__init__.py b/kss/__init__.py index 9ba13d1..24eda69 100644 --- a/kss/__init__.py +++ b/kss/__init__.py @@ -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" diff --git a/kss/_modules/sentences/sentence_splitter.py b/kss/_modules/sentences/sentence_splitter.py index aad31dd..34cc2eb 100644 --- a/kss/_modules/sentences/sentence_splitter.py +++ b/kss/_modules/sentences/sentence_splitter.py @@ -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 diff --git a/kss/_utils/const.py b/kss/_utils/const.py index 33686dc..d0e3017 100644 --- a/kss/_utils/const.py +++ b/kss/_utils/const.py @@ -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}쪽"]