From eaad1f26eec7d32929aa43deecb0450c31a439e2 Mon Sep 17 00:00:00 2001 From: Shuhei Iitsuka Date: Tue, 19 Dec 2017 14:21:10 +0900 Subject: [PATCH] Add has_cjk property in serialized Chunk. --- budou/budou.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/budou/budou.py b/budou/budou.py index 1e5ef47..2b84bf8 100644 --- a/budou/budou.py +++ b/budou/budou.py @@ -88,7 +88,8 @@ def serialize(self): 'word': self.word, 'pos': self.pos, 'label': self.label, - 'dependency': self.dependency + 'dependency': self.dependency, + 'has_cjk': self.has_cjk(), } def maybe_add_dependency(self, default_dependency_direction):