suika 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24d1a6401851f6ca9fa7b4ea11d1966110b33c736499e5ad4facffda746d135d
4
- data.tar.gz: 46763eabe75de50858ecfd98e92adee305d837033c996c8da2faeac5d56c694f
3
+ metadata.gz: 1fb292a3b36ec1dde8f93da624092876220ec33fa49ff635cbaff93fa9337137
4
+ data.tar.gz: 0e2c0cc53c6f25099dfa455f85d618491819dd98cc33047a6aebd4fb5858d13a
5
5
  SHA512:
6
- metadata.gz: '01690ace19b17fb68a368fc1d7a572a079c1d19876204ed85a239efbf6a5a2f4adcd5bab5f9d4f6c7c83dc54ff63e0c5a3c99819f88fed81065a96925bc27c5f'
7
- data.tar.gz: 35b773639f6379a788f9dd3178e857752090420e406783e1abc27b276aa0c89f17b393a9c5ff60dc273f762b26c55f5155f5baa2a3723faaa1d8026d27b71c64
6
+ metadata.gz: 1f54af2d9955f7c562df25d0d724c0b8f1460959b4d35d835c9412a7897e329a95016a7bc151c7125a8b4be9788a18dc7265cc4b4355ad7c1a5b1c828af0f622
7
+ data.tar.gz: a7b1a9a484b51d03ec92a09a2e4ee1a24e1cfcbaafe27f8cd7cbc0b7b02989c0960ebc1799974816adf6399e2e21fa02e06cad1fb8a584db4238e08f93baf93b
@@ -1,3 +1,6 @@
1
+ # 0.1.2
2
+ - Fix local variable typo in Tagger.parse.
3
+
1
4
  # 0.1.1
2
5
  - Fix specification of class in CharDef.char_type.
3
6
 
@@ -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
 
@@ -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(text[t])
70
- word << text[t]
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
@@ -3,5 +3,5 @@
3
3
  # Suika is a Japanese morphological analyzer written in pure Ruby.
4
4
  module Suika
5
5
  # The version of Suika you are using.
6
- VERSION = '0.1.1'
6
+ VERSION = '0.1.2'
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suika
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku