File tree 4 files changed +5
-3
lines changed
4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.12)
2
2
3
- project (kiwi VERSION 0.13.0 DESCRIPTION "Kiwi, Korean Intelligent Word Identifier" )
3
+ project (kiwi VERSION 0.13.1 DESCRIPTION "Kiwi, Korean Intelligent Word Identifier" )
4
4
5
5
set ( CMAKE_CXX_STANDARD 11 )
6
6
set ( CMAKE_VERBOSE_MAKEFILE true )
Original file line number Diff line number Diff line change @@ -115,6 +115,8 @@ namespace kiwi
115
115
const Node* root () const { return nodes.get (); }
116
116
117
117
const Value& value (size_t idx) const { return values[idx]; };
118
+
119
+ bool hasMatch (_Value v) const { return !this ->isNull (v) && !this ->hasSubmatch (v); }
118
120
};
119
121
}
120
122
}
Original file line number Diff line number Diff line change 5
5
6
6
#define KIWI_VERSION_MAJOR 0
7
7
#define KIWI_VERSION_MINOR 13
8
- #define KIWI_VERSION_PATCH 0
8
+ #define KIWI_VERSION_PATCH 1
9
9
10
10
#define KIWI_VERSION_STRING KIWI_STR(KIWI_VERSION_MAJOR) "." KIWI_STR(KIWI_VERSION_MINOR) "." KIWI_STR(KIWI_VERSION_PATCH)
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ namespace kiwi
186
186
if (!node) break ;
187
187
}
188
188
189
- if (node && (formHead = node->val (kiwi->formTrie )) != nullptr )
189
+ if (node && kiwi-> formTrie . hasMatch (formHead = node->val (kiwi->formTrie )))
190
190
{
191
191
Vector<const Morpheme*> cands;
192
192
do
You can’t perform that action at this time.
0 commit comments