From 2204b4e238e89fdd9cc95484d0707666804bf614 Mon Sep 17 00:00:00 2001 From: bab2min Date: Mon, 12 Feb 2024 20:43:21 +0900 Subject: [PATCH] updated Evaluator.cpp for multi-word morpheme --- tools/Evaluator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/Evaluator.cpp b/tools/Evaluator.cpp index d50cd513..07c18d71 100644 --- a/tools/Evaluator.cpp +++ b/tools/Evaluator.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include @@ -13,7 +13,7 @@ TokenInfo parseWordPOS(const u16string& str) { auto p = str.rfind('/'); if (p == str.npos) return {}; - u16string form{ str.begin(), str.begin() + p }; + u16string form = replace(nonstd::u16string_view(str.data(), p), u"_", u" "); if (str[p + 1] == 'E') { if (form[0] == u'아' || form[0] == u'여') form[0] = u'어';