nimono 0.1.5 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3cdab19e6fcea0cbe7e9138ffe590c349060643
4
- data.tar.gz: ebe278b4338fbfa396cbb985ba30528ca6822998
3
+ metadata.gz: 58d9d79c7656b5846c27046eddb5ba4c7e68712c
4
+ data.tar.gz: d043f1239881c0c687b749f795f49990dd6e2215
5
5
  SHA512:
6
- metadata.gz: ed4637885b7c69a7bec258019f2d414249b34a07332ed81226dbf0408b9c0272d84cca674e6995831addc3c7a286a6b6e2e4587fc8a9a6259189ee60d2a3fa13
7
- data.tar.gz: 1d41c5132aa08372c9389056191917c31a60d9b01c3ae56c0049f7cbe8f4c21a038a673cb3efe4b2d95e90823798c77a9f33cb02db9519ea5bcf87c042e78d3d
6
+ metadata.gz: e77c4822207063e4f9ae6f69df5588446e069b3ee72e31af3825a20ce79645614544fe30e775fe0f3f40b27954af3941d2d7ed086ba0042b32da754f0a395109
7
+ data.tar.gz: 28edbeb9938781c6ac5202010aff30c7cf6729fee65bdc473f633696742ce61aa614070ed94f6fc7af6dc334027fca04ebd4549231da19402087e83705c4747a
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # nimono
1
+ # nimono [![Gem Version](https://badge.fury.io/rb/nimono.svg)](https://badge.fury.io/rb/nimono)
2
2
 
3
3
  nimono is an interface of CaboCha for MRI Ruby and JRuby, and parsing Japanese
4
4
  sentences using the library.
@@ -37,7 +37,9 @@ puts nc.parse('太郎は花子が読んでいる本を次郎に渡した')
37
37
  渡した
38
38
  EOS
39
39
  ```
40
+
40
41
  Example of analyzing dependency:
42
+
41
43
  ```ruby
42
44
  require 'nimono'
43
45
 
@@ -74,6 +76,7 @@ end
74
76
  た 助動詞,*,*,*,特殊・タ,基本形,た,タ,タ O
75
77
 
76
78
  ```
79
+
77
80
  ## Contributing
78
81
 
79
82
  Bug reports and pull requests are welcome on GitHub at https://github.com/TakayoshiYamazaki/nimono. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
@@ -112,7 +112,7 @@ module Nimono
112
112
  # Nimono::CabochaLib.cabocha_tree_new
113
113
  # end
114
114
 
115
- # def cabocha_tree_destory(tptr)
115
+ # def cabocha_tree_destroy(tptr)
116
116
  # Nimono::CabochaLib.cabocha_tree_destroy(tptr)
117
117
  # end
118
118
 
@@ -243,6 +243,16 @@ module Nimono
243
243
  attr_reader :additional_info
244
244
  attr_reader :chunk
245
245
 
246
+ attr_reader :pos
247
+ attr_reader :pos1
248
+ attr_reader :pos2
249
+ attr_reader :pos3
250
+ attr_reader :c_form
251
+ attr_reader :c_type
252
+ attr_reader :o_form
253
+ attr_reader :reading
254
+ attr_reader :pronunciation
255
+
246
256
  layout :surface, :string,
247
257
  :normalized_surface, :string,
248
258
  :feature, :string,
@@ -287,6 +297,19 @@ module Nimono
287
297
  end
288
298
  end
289
299
 
300
+ @pos = @feature_list[0]
301
+ @pos1 = @feature_list[1]
302
+ @pos2 = @feature_list[2]
303
+ @pos3 = @feature_list[3]
304
+ @c_form = @feature_list[4]
305
+ @c_type = @feature_list[5]
306
+ @o_form = @feature_list[6]
307
+ @reading = @feature_list[7]
308
+ @pronunciation = @feature_list[8]
309
+ end
310
+
311
+ def to_s
312
+ @surface
290
313
  end
291
314
  end
292
315
 
@@ -1,4 +1,4 @@
1
1
  #-*- coding: utf-8 -*-
2
2
  module Nimono
3
- VERSION = "0.1.5"
3
+ VERSION = "0.2.0"
4
4
  end
metadata CHANGED
@@ -1,73 +1,73 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nimono
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takayoshi Yamazaki
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-14 00:00:00.000000000 Z
11
+ date: 2017-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: ffi
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
18
  version: 1.9.0
20
- type: :runtime
19
+ name: ffi
21
20
  prerelease: false
21
+ type: :runtime
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.9.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: bundler
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
30
  - - "~>"
32
31
  - !ruby/object:Gem::Version
33
32
  version: '1.13'
34
- type: :development
33
+ name: bundler
35
34
  prerelease: false
35
+ type: :development
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.13'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rake
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
44
  - - "~>"
46
45
  - !ruby/object:Gem::Version
47
46
  version: '10.0'
48
- type: :development
47
+ name: rake
49
48
  prerelease: false
49
+ type: :development
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rspec
57
56
  requirement: !ruby/object:Gem::Requirement
58
57
  requirements:
59
58
  - - "~>"
60
59
  - !ruby/object:Gem::Version
61
60
  version: '3.0'
62
- type: :development
61
+ name: rspec
63
62
  prerelease: false
63
+ type: :development
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
- description: "nimono is a interface to CaboCha for CRuby(mri/yarv)\n and JRuby(jvm).
70
- It depends on the CaboCha library so the library will have \n to install first."
69
+ description: "nimono is a interface to CaboCha for CRuby(mri/yarv)\n and JRuby(jvm).\
70
+ \ It depends on the CaboCha library so the library will have \n to install first."
71
71
  email:
72
72
  - opal.s2000@gmail.com
73
73
  executables: []
@@ -94,7 +94,7 @@ homepage: https://github.com/TakayoshiYamazaki/nimono
94
94
  licenses:
95
95
  - MIT
96
96
  metadata: {}
97
- post_install_message:
97
+ post_install_message:
98
98
  rdoc_options: []
99
99
  require_paths:
100
100
  - lib
@@ -110,9 +110,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  requirements:
112
112
  - CaboCha 0.69
113
- rubyforge_project:
114
- rubygems_version: 2.6.10
115
- signing_key:
113
+ rubyforge_project:
114
+ rubygems_version: 2.4.8
115
+ signing_key:
116
116
  specification_version: 4
117
117
  summary: nimono is a interface to CaboCha.
118
118
  test_files: []