From 27400f0c5fe72d5788c8abcdc3a1c9d2c2f1f3cf Mon Sep 17 00:00:00 2001 From: bab2min Date: Thu, 21 Nov 2024 00:04:53 +0900 Subject: [PATCH 1/2] Add test cases for #189 --- test/test_kiwipiepy.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_kiwipiepy.py b/test/test_kiwipiepy.py index 96d1691..6d75a77 100644 --- a/test/test_kiwipiepy.py +++ b/test/test_kiwipiepy.py @@ -707,6 +707,12 @@ def test_space_issue_187(): assert kiwi.space('잡는게 아님') == '잡는 게 아님' assert kiwi.space('때문일겁니다') == '때문일 겁니다' +def test_space_issue_189(): + kiwi = Kiwi() + kiwi.add_user_word('팩', 'NNB') + assert kiwi.space('담아 1팩 무료') == '담아 1팩 무료' + assert kiwi.space('골라 2팩 무료') == '골라 2팩 무료' + def test_glue(): chunks = """KorQuAD 2.0은 총 100,000+ 쌍으로 구성된 한국어 질의응답 데이터셋이다. 기존 질의응답 표준 데이 터인 KorQuAD 1.0과의 차이점은 크게 세가지가 있는데 첫 번째는 주어지는 지문이 한두 문단이 아닌 위 From bfd01419425debf05b212194a95878b5bec9f82a Mon Sep 17 00:00:00 2001 From: bab2min Date: Thu, 21 Nov 2024 00:05:18 +0900 Subject: [PATCH 2/2] Update Kiwi submodule to latest commit --- Kiwi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kiwi b/Kiwi index 979432f..89f4015 160000 --- a/Kiwi +++ b/Kiwi @@ -1 +1 @@ -Subproject commit 979432f23dfbdbcebed72dbab6529d35e1e66e12 +Subproject commit 89f4015554dc221fd77dd8b23b510f9c662d3510