mirror of
https://github.com/bab2min/Kiwi.git
synced 2026-06-17 01:54:27 +00:00
Merge branch 'dev/oov-chr-model' of https://github.com/bab2min/Kiwi into dev/oov-chr-model
This commit is contained in:
commit
d7ab4334ec
6 changed files with 35 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue