kampyo 0.1.0 → 0.2.0

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: b829ea3056d65633cdf1aad8c16d6e4e264f8d65cd4189dfea536cf3832d865d
4
- data.tar.gz: 056461105f347a5561f5fece1417dbb4f74fe4a8f9dc353218f1615c4b0fb204
3
+ metadata.gz: 0d96499aeb214750eddaa4eecdede3a629b05dcd05755c9a3ca798be84f400e3
4
+ data.tar.gz: '094e4f87fe8c86726c46deb081c4d2fd4f7e356c62d1dfbd15384c9bb3eca6f0'
5
5
  SHA512:
6
- metadata.gz: 1708723267aebe5a8dff6894ca8890476210d535da9afcae3373ba6395b7ed1b4b1f95a8f11714f9e224352e2ad32b6773bf20d1aa72e430eb8f9214cc67cc10
7
- data.tar.gz: 1d6ae9002cf28401085617897bf8359a9bd512211ad62258335091e38da94cd0ed3039690178132ae8c32545d2bca7b9ac00fe502fe1335a6718520c72d839d5
6
+ metadata.gz: cd8aab55671360c9acb592050383f717fe1a93c4efd3233943b2bd3b7ffb7585c90090561b11c0dde13010c44743ab2e89842b4f317d1428d37b58a1438a0a3a
7
+ data.tar.gz: 3d85e4fed2888ab5c3322da3685bdedafbfc8fb8c79c6b9f17eb578c4fe1ec793b9c85a34b803b3f1d58e722be3c109a935bf1a5b4f7078bbb005e341ae285cb
data/README.base.md CHANGED
@@ -7,6 +7,8 @@
7
7
 
8
8
  # kampyo
9
9
 
10
+ [![Gem Version](https://badge.fury.io/rb/kampyo.svg)](https://badge.fury.io/rb/kampyo)
11
+
10
12
  kampyo is a library for conveniently manipulating Cabocha and Mecab.
11
13
 
12
14
  kampyo has its own analysis function.
@@ -15,16 +17,35 @@ Unique features already implemented are subject and predicate, and stylistic inf
15
17
 
16
18
  # Guide
17
19
 
18
- Using Cabocha.
20
+ Basic usage with Cabocha.
19
21
 
20
22
  ```
21
23
  text = Kampyo::Text.new
22
24
  text.cabocha_parser("今日は雨です")
23
25
  ```
24
26
 
27
+ You will get the following result.
28
+
29
+ ```
30
+ {:chunks=>[{:id=>1, :link=>2, :score=>0.0}, {:id=>2, :link=>-1, :score=>0.0}],
31
+ :tokens=>
32
+ [{:id=>1, :chunk=>1, :surface=>"今日", :feature1=>"名詞", :feature2=>"副詞可能", :baseform=>"今日", :reading=>"キョウ", :ext_reading=>nil},
33
+ {:id=>2, :chunk=>1, :surface=>"は", :feature1=>"助詞", :feature2=>"係助詞", :baseform=>"は", :reading=>"ハ", :ext_reading=>nil},
34
+ {:id=>3, :chunk=>2, :surface=>"雨", :feature1=>"名詞", :feature2=>"一般", :baseform=>"雨", :reading=>"アメ", :ext_reading=>nil},
35
+ {:id=>4, :chunk=>2, :surface=>"です", :feature1=>"助動詞", :feature2=>"*", :baseform=>"です", :reading=>"デス", :ext_reading=>nil}]}
36
+ ```
37
+
25
38
  Guess the subject, predicate and sentence system.
26
39
 
27
40
  ```
28
41
  text = Kampyo::Text.new
29
42
  text.analysis(text.cabocha_parser("今日は雨です"))
43
+ ```
44
+
45
+ You will get the following result.
46
+
47
+ ```
48
+ {:subject=>{:id=>1, :chunk=>1, :surface=>"今日", :feature1=>"名詞", :feature2=>"副詞可能", :baseform=>"今日", :reading=>"キョウ", :ext_reading=>nil},
49
+ :predicate=>{:id=>3, :chunk=>2, :surface=>"雨", :feature1=>"名詞", :feature2=>"一般", :baseform=>"雨", :reading=>"アメ", :ext_reading=>nil},
50
+ :tod=>"断定"}
30
51
  ```
data/README.ja.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  # kampyo
4
4
 
5
+ [![Gem Version](https://badge.fury.io/rb/kampyo.svg)](https://badge.fury.io/rb/kampyo)
6
+
5
7
  kampyo is a library for conveniently manipulating Cabocha and Mecab.
6
8
 
7
9
  kampyo has its own analysis function.
@@ -10,16 +12,35 @@ Unique features already implemented are subject and predicate, and stylistic inf
10
12
 
11
13
  # Guide
12
14
 
13
- Using Cabocha.
15
+ Basic usage with Cabocha.
14
16
 
15
17
  ```
16
18
  text = Kampyo::Text.new
17
19
  text.cabocha_parser("今日は雨です")
18
20
  ```
19
21
 
22
+ You will get the following result.
23
+
24
+ ```
25
+ {:chunks=>[{:id=>1, :link=>2, :score=>0.0}, {:id=>2, :link=>-1, :score=>0.0}],
26
+ :tokens=>
27
+ [{:id=>1, :chunk=>1, :surface=>"今日", :feature1=>"名詞", :feature2=>"副詞可能", :baseform=>"今日", :reading=>"キョウ", :ext_reading=>nil},
28
+ {:id=>2, :chunk=>1, :surface=>"は", :feature1=>"助詞", :feature2=>"係助詞", :baseform=>"は", :reading=>"ハ", :ext_reading=>nil},
29
+ {:id=>3, :chunk=>2, :surface=>"雨", :feature1=>"名詞", :feature2=>"一般", :baseform=>"雨", :reading=>"アメ", :ext_reading=>nil},
30
+ {:id=>4, :chunk=>2, :surface=>"です", :feature1=>"助動詞", :feature2=>"*", :baseform=>"です", :reading=>"デス", :ext_reading=>nil}]}
31
+ ```
32
+
20
33
  Guess the subject, predicate and sentence system.
21
34
 
22
35
  ```
23
36
  text = Kampyo::Text.new
24
37
  text.analysis(text.cabocha_parser("今日は雨です"))
38
+ ```
39
+
40
+ You will get the following result.
41
+
42
+ ```
43
+ {:subject=>{:id=>1, :chunk=>1, :surface=>"今日", :feature1=>"名詞", :feature2=>"副詞可能", :baseform=>"今日", :reading=>"キョウ", :ext_reading=>nil},
44
+ :predicate=>{:id=>3, :chunk=>2, :surface=>"雨", :feature1=>"名詞", :feature2=>"一般", :baseform=>"雨", :reading=>"アメ", :ext_reading=>nil},
45
+ :tod=>"断定"}
25
46
  ```
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  # kampyo
4
4
 
5
+ [![Gem Version](https://badge.fury.io/rb/kampyo.svg)](https://badge.fury.io/rb/kampyo)
6
+
5
7
  kampyo is a library for conveniently manipulating Cabocha and Mecab.
6
8
 
7
9
  kampyo has its own analysis function.
@@ -10,16 +12,35 @@ Unique features already implemented are subject and predicate, and stylistic inf
10
12
 
11
13
  # Guide
12
14
 
13
- Using Cabocha.
15
+ Basic usage with Cabocha.
14
16
 
15
17
  ```
16
18
  text = Kampyo::Text.new
17
19
  text.cabocha_parser("今日は雨です")
18
20
  ```
19
21
 
22
+ You will get the following result.
23
+
24
+ ```
25
+ {:chunks=>[{:id=>1, :link=>2, :score=>0.0}, {:id=>2, :link=>-1, :score=>0.0}],
26
+ :tokens=>
27
+ [{:id=>1, :chunk=>1, :surface=>"今日", :feature1=>"名詞", :feature2=>"副詞可能", :baseform=>"今日", :reading=>"キョウ", :ext_reading=>nil},
28
+ {:id=>2, :chunk=>1, :surface=>"は", :feature1=>"助詞", :feature2=>"係助詞", :baseform=>"は", :reading=>"ハ", :ext_reading=>nil},
29
+ {:id=>3, :chunk=>2, :surface=>"雨", :feature1=>"名詞", :feature2=>"一般", :baseform=>"雨", :reading=>"アメ", :ext_reading=>nil},
30
+ {:id=>4, :chunk=>2, :surface=>"です", :feature1=>"助動詞", :feature2=>"*", :baseform=>"です", :reading=>"デス", :ext_reading=>nil}]}
31
+ ```
32
+
20
33
  Guess the subject, predicate and sentence system.
21
34
 
22
35
  ```
23
36
  text = Kampyo::Text.new
24
37
  text.analysis(text.cabocha_parser("今日は雨です"))
38
+ ```
39
+
40
+ You will get the following result.
41
+
42
+ ```
43
+ {:subject=>{:id=>1, :chunk=>1, :surface=>"今日", :feature1=>"名詞", :feature2=>"副詞可能", :baseform=>"今日", :reading=>"キョウ", :ext_reading=>nil},
44
+ :predicate=>{:id=>3, :chunk=>2, :surface=>"雨", :feature1=>"名詞", :feature2=>"一般", :baseform=>"雨", :reading=>"アメ", :ext_reading=>nil},
45
+ :tod=>"断定"}
25
46
  ```
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kampyo
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kampyo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - arthur87
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-03-09 00:00:00.000000000 Z
11
+ date: 2025-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -71,7 +71,8 @@ files:
71
71
  - lib/kampyo/version.rb
72
72
  - sig/kampyo.rbs
73
73
  homepage: https://github.com/arthur87/kampyo
74
- licenses: []
74
+ licenses:
75
+ - MIT
75
76
  metadata:
76
77
  homepage_uri: https://github.com/arthur87/kampyo
77
78
  source_code_uri: https://github.com/arthur87/kampyo