nameko 0.5.0 → 0.5.1
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 +4 -4
- data/README.md +3 -4
- data/lib/nameko/node.rb +3 -3
- data/lib/nameko/version.rb +1 -1
- data/nameko.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 85f60aba825c055f09cd4874d8a0fff81dfec7ad38e4840d773aa0f36a9928f5
|
|
4
|
+
data.tar.gz: a33ee8881b468e599575393b3af1e4341c944806445def235f176fc4fe17d626
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bec081b0485dfeb7ccc48eac9b8b08172c74cdbfbae4c614a4b3e80923c55c514bb7b65dc17ff7cdebf591c64eff25615e4ff87dc3bf58fbc85dc6ca4832fac3
|
|
7
|
+
data.tar.gz: aaf6d6035df7442e3985613ca53b293332d1ccb36e1b0cd55651705214880f65ced15822183d4e6c0e651cdf295fdb6f850d76b51c47790063c4751f70db98b1
|
data/README.md
CHANGED
|
@@ -44,11 +44,10 @@ node.posid #=> 59
|
|
|
44
44
|
node.id #=> 1
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
Nameko::Mecab#parse returns
|
|
47
|
+
Nameko::Mecab#parse returns an array of `MecabNode`.
|
|
48
48
|
|
|
49
|
-
The MecabNode has `feature` method.
|
|
50
|
-
|
|
51
|
-
The hash keys meaning is as follows(The key is symbol):
|
|
49
|
+
The MecabNode has `feature` method that return hash.
|
|
50
|
+
The hash's keys meaning is as follows(The key is symbol):
|
|
52
51
|
|
|
53
52
|
+ `pos`: 品詞(Part of speech)
|
|
54
53
|
+ `pos1`: 品詞細分類1(Part of speech subcategory1)
|
data/lib/nameko/node.rb
CHANGED
|
@@ -58,9 +58,9 @@ class MecabNode < FFI::Struct
|
|
|
58
58
|
private
|
|
59
59
|
|
|
60
60
|
def fill_up(analysis)
|
|
61
|
-
if !analysis[:yomi] &&
|
|
62
|
-
analysis[:yomi] =
|
|
63
|
-
analysis[:pronunciation] =
|
|
61
|
+
if !analysis[:yomi] && surface.match(/\p{katakana}+/)
|
|
62
|
+
analysis[:yomi] = surface
|
|
63
|
+
analysis[:pronunciation] = surface
|
|
64
64
|
end
|
|
65
65
|
analysis
|
|
66
66
|
end
|
data/lib/nameko/version.rb
CHANGED
data/nameko.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.email = ["sa2taka@gmail.com"]
|
|
11
11
|
|
|
12
12
|
spec.summary = %q{Ruby binding for Mecab.}
|
|
13
|
-
spec.description = %q{Ruby binding for Mecab, Part-of-Speech and Morphological Analyzer.
|
|
13
|
+
spec.description = %q{Ruby binding for Mecab, Part-of-Speech and Morphological Analyzer.}
|
|
14
14
|
spec.homepage = "https://github.com/sa2taka/nameko"
|
|
15
15
|
spec.license = "MIT"
|
|
16
16
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nameko
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sa2taka
|
|
@@ -66,7 +66,7 @@ dependencies:
|
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '1.9'
|
|
69
|
-
description: Ruby binding for Mecab, Part-of-Speech and Morphological Analyzer.
|
|
69
|
+
description: Ruby binding for Mecab, Part-of-Speech and Morphological Analyzer.
|
|
70
70
|
email:
|
|
71
71
|
- sa2taka@gmail.com
|
|
72
72
|
executables: []
|