Merge branch 'dev/oov-chr-model' of https://github.com/bab2min/Kiwi into dev/oov-chr-model

This commit is contained in:
bab2min 2026-02-22 01:22:03 +09:00
commit d7ab4334ec
6 changed files with 35 additions and 1 deletions

View file

@ -1584,6 +1584,19 @@ TEST(KiwiCpp, JoinAffix)
EXPECT_EQ(res5.first[5].str, u"배송되");
}
TEST(KiwiCpp, JoinParticleYo)
{
Kiwi& kiwi = reuseKiwiInstance();
auto sample1 = u"밥을 먹는다던가요";
auto res_without = kiwi.analyze(sample1, Match::none).first;
auto res_with = kiwi.analyze(sample1, Match::joinParticleYo).first;
EXPECT_EQ(res_without[res_without.size() - 2].str, u"는다던가");
EXPECT_EQ(res_without[res_without.size() - 1].str, u"");
EXPECT_EQ(res_with[res_with.size() - 1].str, u"는다던가요");
}
TEST(KiwiCpp, CompatibleJamo)
{
Kiwi& kiwi = reuseKiwiInstance();