suika 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/LICENSE.txt +1 -1
- data/README.md +0 -1
- data/lib/suika/tagger.rb +2 -2
- data/lib/suika/version.rb +1 -1
- metadata +31 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d6745438c0a8281903fe9cd22adb6db0b4226b3b8b0677e90ecba65fc287b8c
|
4
|
+
data.tar.gz: 4c512813f3c9b14083fa53c91dc8c95e570344c836c1303147f25c3e3eab35f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b0f9ce528cb4751399e5976fb744c4eee8300044ca8dbe10f26b90e25ef9e63764ee7b2319ae0ab7dff63ad03449d88f0ccd7df89765db19cbcce7479480a7d
|
7
|
+
data.tar.gz: 828cdce758ac69c326a2d88dd8a72744434e2ac7eca70aa773b37f06a9f92fd3199963cb2b153ec8bfe4edecbfb0478676036a236514c69c6b1f799848a6fdbd
|
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# Suika
|
2
2
|
|
3
3
|
[![Build Status](https://github.com/yoshoku/suika/workflows/build/badge.svg)](https://github.com/yoshoku/suika/actions?query=workflow%3Abuild)
|
4
|
-
[![Coverage Status](https://coveralls.io/repos/github/yoshoku/suika/badge.svg?branch=main)](https://coveralls.io/github/yoshoku/suika?branch=main)
|
5
4
|
[![Gem Version](https://badge.fury.io/rb/suika.svg)](https://badge.fury.io/rb/suika)
|
6
5
|
[![BSD 3-Clause License](https://img.shields.io/badge/License-BSD%203--Clause-orange.svg)](https://github.com/yoshoku/suika/blob/main/LICENSE.txt)
|
7
6
|
[![Documentation](https://img.shields.io/badge/api-reference-blue.svg)](https://rubydoc.info/gems/suika)
|
data/lib/suika/tagger.rb
CHANGED
@@ -24,7 +24,7 @@ module Suika
|
|
24
24
|
class Tagger
|
25
25
|
# Create a new tagger by loading the built-in binary dictionary.
|
26
26
|
def initialize
|
27
|
-
raise IOError, 'SHA1 digest of dictionary file does not match.' unless
|
27
|
+
raise IOError, 'SHA1 digest of dictionary file does not match.' unless Digest::SHA1.file(DICTIONARY_PATH).to_s == DICTIONARY_KEY
|
28
28
|
|
29
29
|
@sysdic = Marshal.load(Zlib::GzipReader.open(DICTIONARY_PATH, &:read))
|
30
30
|
@trie = DartsClone::DoubleArray.new
|
@@ -52,7 +52,7 @@ module Suika
|
|
52
52
|
features[indices[i]].each do |el|
|
53
53
|
lattice.insert(start, start + word.length, word, false, el[0].to_i, el[1].to_i, el[2].to_i, el[3..-1])
|
54
54
|
end
|
55
|
-
step = word.length if word.length < step
|
55
|
+
step = word.length if word.length < step
|
56
56
|
end
|
57
57
|
end
|
58
58
|
end
|
data/lib/suika/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,28 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: suika
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yoshoku
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2024-12-29 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
12
|
+
- !ruby/object:Gem::Dependency
|
13
|
+
name: csv
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: 3.1.9
|
19
|
+
type: :runtime
|
20
|
+
prerelease: false
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - ">="
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: 3.1.9
|
13
26
|
- !ruby/object:Gem::Dependency
|
14
27
|
name: dartsclone
|
15
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -24,6 +37,20 @@ dependencies:
|
|
24
37
|
- - ">="
|
25
38
|
- !ruby/object:Gem::Version
|
26
39
|
version: 0.2.0
|
40
|
+
- !ruby/object:Gem::Dependency
|
41
|
+
name: nkf
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.1.1
|
47
|
+
type: :runtime
|
48
|
+
prerelease: false
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 0.1.1
|
27
54
|
description: Suika is a Japanese morphological analyzer written in pure Ruby.
|
28
55
|
email:
|
29
56
|
- yoshoku@outlook.com
|
@@ -56,7 +83,6 @@ metadata:
|
|
56
83
|
changelog_uri: https://github.com/yoshoku/suika/blob/main/CHANGELOG.md
|
57
84
|
documentation_uri: https://rubydoc.info/gems/suika
|
58
85
|
rubygems_mfa_required: 'true'
|
59
|
-
post_install_message:
|
60
86
|
rdoc_options: []
|
61
87
|
require_paths:
|
62
88
|
- lib
|
@@ -71,8 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
97
|
- !ruby/object:Gem::Version
|
72
98
|
version: '0'
|
73
99
|
requirements: []
|
74
|
-
rubygems_version: 3.2
|
75
|
-
signing_key:
|
100
|
+
rubygems_version: 3.6.2
|
76
101
|
specification_version: 4
|
77
102
|
summary: Suika is a Japanese morphological analyzer written in pure Ruby.
|
78
103
|
test_files: []
|