suika 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/suika/char_def.rb +0 -3
- data/lib/suika/tagger.rb +2 -2
- data/lib/suika/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fb292a3b36ec1dde8f93da624092876220ec33fa49ff635cbaff93fa9337137
|
4
|
+
data.tar.gz: 0e2c0cc53c6f25099dfa455f85d618491819dd98cc33047a6aebd4fb5858d13a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f54af2d9955f7c562df25d0d724c0b8f1460959b4d35d835c9412a7897e329a95016a7bc151c7125a8b4be9788a18dc7265cc4b4355ad7c1a5b1c828af0f622
|
7
|
+
data.tar.gz: a7b1a9a484b51d03ec92a09a2e4ee1a24e1cfcbaafe27f8cd7cbc0b7b02989c0960ebc1799974816adf6399e2e21fa02e06cad1fb8a584db4238e08f93baf93b
|
data/CHANGELOG.md
CHANGED
data/lib/suika/char_def.rb
CHANGED
@@ -171,8 +171,6 @@ module Suika
|
|
171
171
|
0xF900..0xFA2D,
|
172
172
|
0xFA30..0xFA6A
|
173
173
|
].freeze
|
174
|
-
|
175
|
-
# rubocop:disable Style/AsciiComments
|
176
174
|
# KANJI-NUMERIC (一 二 三 四 五 六 七 八 九 十 百 千 万 億 兆)
|
177
175
|
# 0x4E00 KANJINUMERIC KANJI
|
178
176
|
KANJINUMERIC = [
|
@@ -192,7 +190,6 @@ module Suika
|
|
192
190
|
0x5104..0x5104,
|
193
191
|
0x5146..0x5146
|
194
192
|
].freeze
|
195
|
-
# rubocop:enable Style/AsciiComments
|
196
193
|
|
197
194
|
private_constant :CHAR_CATEGORY, :CHAR_TYPES
|
198
195
|
|
data/lib/suika/tagger.rb
CHANGED
@@ -66,8 +66,8 @@ module Suika
|
|
66
66
|
if char_cate[:group] == 1
|
67
67
|
unk_terminal = char_cate[:length].zero? ? terminal : start + char_cate[:length]
|
68
68
|
pos = start + 1
|
69
|
-
while pos < unk_terminal && char_type == CharDef.char_type(
|
70
|
-
word <<
|
69
|
+
while pos < unk_terminal && char_type == CharDef.char_type(sentence[pos])
|
70
|
+
word << sentence[pos]
|
71
71
|
pos += 1
|
72
72
|
end
|
73
73
|
end
|
data/lib/suika/version.rb
CHANGED