added kiwi::POSTag::xsm tag for 부사파생접사

This commit is contained in:
bab2min 2023-02-06 02:25:15 +09:00
commit 2c3029124e
6 changed files with 43 additions and 17 deletions

View file

@ -91,17 +91,32 @@ TEST(KiwiCpp, SingleResult)
TEST(KiwiCpp, SplitComplex)
{
Kiwi& kiwi = reuseKiwiInstance();
auto testCases = {
//u"고맙습니다",
u"고마워합니다",
u"고마움",
};
for (auto s : testCases)
{
auto res1 = kiwi.analyze(s, Match::allWithNormalizing);
auto res2 = kiwi.analyze(s, Match::allWithNormalizing | Match::splitComplex);
EXPECT_NE(res1.first[0].str, u"고맙");
EXPECT_EQ(res2.first[0].str, u"고맙");
auto testCases = {
//u"고맙습니다",
u"고마워합니다",
u"고마움",
};
for (auto s : testCases)
{
auto res1 = kiwi.analyze(s, Match::allWithNormalizing);
auto res2 = kiwi.analyze(s, Match::allWithNormalizing | Match::splitComplex);
EXPECT_NE(res1.first[0].str, u"고맙");
EXPECT_EQ(res2.first[0].str, u"고맙");
}
}
{
auto testCases = {
u"감사히",
};
for (auto s : testCases)
{
auto res1 = kiwi.analyze(s, Match::allWithNormalizing);
auto res2 = kiwi.analyze(s, Match::allWithNormalizing | Match::splitComplex);
EXPECT_NE(res1.first[0].str, u"감사");
EXPECT_EQ(res2.first[0].str, u"감사");
}
}
}