Skip to content

Commit 2204b4e

Browse files
committed
updated Evaluator.cpp for multi-word morpheme
1 parent e55fc04 commit 2204b4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/Evaluator.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <fstream>
1+
#include <fstream>
22
#include <iostream>
33

44
#include <kiwi/Utils.h>
@@ -13,7 +13,7 @@ TokenInfo parseWordPOS(const u16string& str)
1313
{
1414
auto p = str.rfind('/');
1515
if (p == str.npos) return {};
16-
u16string form{ str.begin(), str.begin() + p };
16+
u16string form = replace(nonstd::u16string_view(str.data(), p), u"_", u" ");
1717
if (str[p + 1] == 'E')
1818
{
1919
if (form[0] == u'' || form[0] == u'') form[0] = u'';

0 commit comments

Comments
 (0)