Skip to content

Commit 78d540d

Browse files
authored
Merge pull request #106 from bab2min/dev_joinerror
Dev 0.13.1
2 parents 4c820d5 + 6ee176a commit 78d540d

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.12)
22

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")
44

55
set ( CMAKE_CXX_STANDARD 11 )
66
set ( CMAKE_VERBOSE_MAKEFILE true )

include/kiwi/FrozenTrie.h

+2
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ namespace kiwi
115115
const Node* root() const { return nodes.get(); }
116116

117117
const Value& value(size_t idx) const { return values[idx]; };
118+
119+
bool hasMatch(_Value v) const { return !this->isNull(v) && !this->hasSubmatch(v); }
118120
};
119121
}
120122
}

include/kiwi/Macro.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
#define KIWI_VERSION_MAJOR 0
77
#define KIWI_VERSION_MINOR 13
8-
#define KIWI_VERSION_PATCH 0
8+
#define KIWI_VERSION_PATCH 1
99

1010
#define KIWI_VERSION_STRING KIWI_STR(KIWI_VERSION_MAJOR) "." KIWI_STR(KIWI_VERSION_MINOR) "." KIWI_STR(KIWI_VERSION_PATCH)

src/Joiner.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ namespace kiwi
186186
if (!node) break;
187187
}
188188

189-
if (node && (formHead = node->val(kiwi->formTrie)) != nullptr)
189+
if (node && kiwi->formTrie.hasMatch(formHead = node->val(kiwi->formTrie)))
190190
{
191191
Vector<const Morpheme*> cands;
192192
do

0 commit comments

Comments
 (0)