cotoha 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/rspec.yml +20 -0
- data/.gitignore +14 -0
- data/.rspec +3 -0
- data/.travis.yml +6 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +9 -0
- data/LICENSE.txt +21 -0
- data/README.md +88 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/cotoha.gemspec +29 -0
- data/lib/cotoha.rb +5 -0
- data/lib/cotoha/client.rb +17 -0
- data/lib/cotoha/connection.rb +45 -0
- data/lib/cotoha/endpoint.rb +29 -0
- data/lib/cotoha/endpoint/access_token.rb +13 -0
- data/lib/cotoha/endpoint/coreference.rb +9 -0
- data/lib/cotoha/endpoint/keyword.rb +16 -0
- data/lib/cotoha/endpoint/misrecognition.rb +9 -0
- data/lib/cotoha/endpoint/named_entity.rb +9 -0
- data/lib/cotoha/endpoint/parse.rb +9 -0
- data/lib/cotoha/endpoint/remove_filler.rb +9 -0
- data/lib/cotoha/endpoint/sentence_type.rb +9 -0
- data/lib/cotoha/endpoint/sentiment.rb +9 -0
- data/lib/cotoha/endpoint/similarity.rb +9 -0
- data/lib/cotoha/endpoint/summary.rb +9 -0
- data/lib/cotoha/endpoint/user_attribute.rb +9 -0
- data/lib/cotoha/error.rb +45 -0
- data/lib/cotoha/version.rb +3 -0
- metadata +103 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7d75565f18d6d0e4add6af4cee5d4888abd1800d53d88f825e0588f66658b9b3
|
4
|
+
data.tar.gz: af67aa75718d6f410ab55b4278ceafac6b9eb72e47220261547d328b61bdbe30
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5c5969e24220a18f1505ff382d34dae419b3265cc09973cba630bc67124cf5172eec021f060c6be5abcd64a1eff3409d731d7e49d7aa2ff590edadce9d888d14
|
7
|
+
data.tar.gz: f057e2b4a3f69f5b367f7f3ad8875493c519b23c48aca7bf9170c4eca2a38241789dd19f8d5083d3c18fa0957b95ef2792416c291d63b6ebf94e6aad4281df0b
|
@@ -0,0 +1,20 @@
|
|
1
|
+
name: RSpec
|
2
|
+
|
3
|
+
on: [push]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
|
10
|
+
steps:
|
11
|
+
- uses: actions/checkout@v2
|
12
|
+
- name: Set up Ruby 2.6
|
13
|
+
uses: actions/setup-ruby@v1
|
14
|
+
with:
|
15
|
+
ruby-version: 2.6.x
|
16
|
+
- name: Build and test with RSpec
|
17
|
+
run: |
|
18
|
+
gem install bundler
|
19
|
+
bundle install --jobs 4 --retry 3
|
20
|
+
bundle exec rspec
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at tanaka.kentaro.kk1222@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [https://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: https://contributor-covenant.org
|
74
|
+
[version]: https://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 tanaken0515
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
# Cotoha
|
2
|
+
|
3
|
+
[COTOHA API](https://api.ce-cotoha.com/contents/index.html) client for Ruby (unofficial)
|
4
|
+
|
5
|
+
![RSpec](https://github.com/tanaken0515/cotoha-ruby/workflows/RSpec/badge.svg?branch=master)
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'cotoha'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle install
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install cotoha
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
### Authentication
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
# https://api.ce-cotoha.com/home
|
29
|
+
client_id = 'xxxxx'
|
30
|
+
client_secret = 'xxxxx'
|
31
|
+
|
32
|
+
client = Cotoha::Client.new(client_id: client_id, client_secret: client_secret)
|
33
|
+
client.create_access_token
|
34
|
+
# => {"access_token"=>"xxxxx", "token_type"=>"bearer", "expires_in"=>"86399", "scope"=>"", "issued_at"=>"1582159764808"}
|
35
|
+
```
|
36
|
+
|
37
|
+
Or, if you have identified the token in advance,
|
38
|
+
|
39
|
+
```ruby
|
40
|
+
client = Cotoha::Client.new(token: 'xxxxx')
|
41
|
+
```
|
42
|
+
|
43
|
+
### Supported API Endpoints
|
44
|
+
`cotoha` gem provides APIs as instance method.
|
45
|
+
|
46
|
+
Example:
|
47
|
+
```ruby
|
48
|
+
client.user_attribute(document: '渋谷でエンジニアとして働いています。')
|
49
|
+
# {"result"=>
|
50
|
+
# {"civilstatus"=>"既婚",
|
51
|
+
# "hobby"=>["COOKING", "INTERNET", "MOVIE", "SHOPPING"],
|
52
|
+
# "location"=>"関東",
|
53
|
+
# "moving"=>["RAILWAY"],
|
54
|
+
# "occupation"=>"会社員"},
|
55
|
+
# "status"=>0,
|
56
|
+
# "message"=>"OK"}
|
57
|
+
|
58
|
+
client.sentiment(sentence: 'ゲームをするのが好きです。')
|
59
|
+
# {"result"=>
|
60
|
+
# {"sentiment"=>"Positive",
|
61
|
+
# "score"=>0.4714220003626205,
|
62
|
+
# "emotional_phrase"=>[{"form"=>"好きです", "emotion"=>"P"}]},
|
63
|
+
# "status"=>0,
|
64
|
+
# "message"=>"OK"}
|
65
|
+
```
|
66
|
+
|
67
|
+
Refer to the [lib/cotoha/endpoint](https://github.com/tanaken0515/cotoha-ruby/tree/master/lib/cotoha/endpoint) for the list of all available endpoints.
|
68
|
+
|
69
|
+
Also check out the official [API reference \| COTOHA API](https://api.ce-cotoha.com/contents/reference/apireference.html).
|
70
|
+
|
71
|
+
## Development
|
72
|
+
|
73
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
74
|
+
|
75
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
76
|
+
|
77
|
+
## Contributing
|
78
|
+
|
79
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/tanaken0515/cotoha-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/cotoha/blob/master/CODE_OF_CONDUCT.md).
|
80
|
+
|
81
|
+
|
82
|
+
## License
|
83
|
+
|
84
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
85
|
+
|
86
|
+
## Code of Conduct
|
87
|
+
|
88
|
+
Everyone interacting in the Cotoha project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/cotoha/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "cotoha"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/cotoha.gemspec
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
require_relative 'lib/cotoha/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "cotoha"
|
5
|
+
spec.version = Cotoha::VERSION
|
6
|
+
spec.authors = ["tanaken0515"]
|
7
|
+
spec.email = ["tanaka.kentaro.kk1222@gmail.com"]
|
8
|
+
|
9
|
+
spec.summary = %q{COTOHA API client for Ruby}
|
10
|
+
spec.description = %q{COTOHA API client for Ruby}
|
11
|
+
spec.homepage = "https://github.com/tanaken0515/cotoha-ruby"
|
12
|
+
spec.license = "MIT"
|
13
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
14
|
+
|
15
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
16
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
17
|
+
|
18
|
+
# Specify which files should be added to the gem when it is released.
|
19
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
20
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
21
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
+
end
|
23
|
+
spec.bindir = "exe"
|
24
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
|
+
spec.require_paths = ["lib"]
|
26
|
+
|
27
|
+
spec.add_dependency 'faraday', '~> 0.17'
|
28
|
+
spec.add_dependency 'faraday_middleware'
|
29
|
+
end
|
data/lib/cotoha.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'cotoha/connection'
|
2
|
+
require 'cotoha/endpoint'
|
3
|
+
|
4
|
+
module Cotoha
|
5
|
+
class Client
|
6
|
+
include Connection
|
7
|
+
include Endpoint
|
8
|
+
BASE_URL = 'https://api.ce-cotoha.com'
|
9
|
+
|
10
|
+
def initialize(url: nil, client_id: nil, client_secret: nil, token: nil)
|
11
|
+
@url = url || BASE_URL
|
12
|
+
@client_id = client_id
|
13
|
+
@client_secret = client_secret
|
14
|
+
@token = token
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require 'faraday'
|
2
|
+
require 'faraday_middleware'
|
3
|
+
require 'cotoha/error'
|
4
|
+
|
5
|
+
module Cotoha
|
6
|
+
module Connection
|
7
|
+
def get(path, **params)
|
8
|
+
request(:get, path, params)
|
9
|
+
end
|
10
|
+
|
11
|
+
def post(path, **params)
|
12
|
+
request(:post, path, params)
|
13
|
+
end
|
14
|
+
|
15
|
+
def put(path, **params)
|
16
|
+
request(:put, path, params)
|
17
|
+
end
|
18
|
+
|
19
|
+
def delete(path, **params)
|
20
|
+
request(:delete, path, params)
|
21
|
+
end
|
22
|
+
|
23
|
+
private
|
24
|
+
|
25
|
+
def request(method, path, params)
|
26
|
+
response = connection.public_send(method, path, params) do |request|
|
27
|
+
request.headers['Authorization'] = "Bearer #{@token}" if @token
|
28
|
+
end
|
29
|
+
|
30
|
+
error = Error.from_response(response)
|
31
|
+
raise error if error
|
32
|
+
|
33
|
+
response.body
|
34
|
+
end
|
35
|
+
|
36
|
+
def connection
|
37
|
+
@connection ||= Faraday.new(url: @url) do |c|
|
38
|
+
c.request :json
|
39
|
+
c.response :json, content_type: /\bjson$/
|
40
|
+
c.adapter Faraday.default_adapter
|
41
|
+
c.headers['User-Agent'] = "Cotoha Ruby Gem #{VERSION} (#{RUBY_ENGINE}#{RUBY_VERSION})"
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'cotoha/endpoint/access_token'
|
2
|
+
require 'cotoha/endpoint/parse'
|
3
|
+
require 'cotoha/endpoint/named_entity'
|
4
|
+
require 'cotoha/endpoint/coreference'
|
5
|
+
require 'cotoha/endpoint/keyword'
|
6
|
+
require 'cotoha/endpoint/similarity'
|
7
|
+
require 'cotoha/endpoint/sentence_type'
|
8
|
+
require 'cotoha/endpoint/user_attribute'
|
9
|
+
require 'cotoha/endpoint/remove_filler'
|
10
|
+
require 'cotoha/endpoint/misrecognition'
|
11
|
+
require 'cotoha/endpoint/sentiment'
|
12
|
+
require 'cotoha/endpoint/summary'
|
13
|
+
|
14
|
+
module Cotoha
|
15
|
+
module Endpoint
|
16
|
+
include AccessToken
|
17
|
+
include Parse
|
18
|
+
include NamedEntity
|
19
|
+
include Coreference
|
20
|
+
include Keyword
|
21
|
+
include Similarity
|
22
|
+
include SentenceType
|
23
|
+
include UserAttribute
|
24
|
+
include RemoveFiller
|
25
|
+
include Misrecognition
|
26
|
+
include Sentiment
|
27
|
+
include Summary
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Cotoha
|
2
|
+
module Endpoint
|
3
|
+
module AccessToken
|
4
|
+
def create_access_token(**params)
|
5
|
+
params = {grantType: 'client_credentials', clientId: @client_id, clientSecret: @client_secret}.merge(params)
|
6
|
+
response = post('/v1/oauth/accesstokens', **params)
|
7
|
+
response.tap do |res|
|
8
|
+
@token = res['access_token']
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Cotoha
|
2
|
+
module Endpoint
|
3
|
+
module Keyword
|
4
|
+
def keywords(document:, type: nil, do_segment: false, max_keyword_num: nil, dic_type: nil)
|
5
|
+
params = {
|
6
|
+
document: document,
|
7
|
+
type: type,
|
8
|
+
do_segment: do_segment,
|
9
|
+
max_keyword_num: max_keyword_num,
|
10
|
+
dic_type: dic_type
|
11
|
+
}
|
12
|
+
post('/api/dev/nlp/v1/keyword', **params)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/cotoha/error.rb
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
module Cotoha
|
2
|
+
class Error < StandardError
|
3
|
+
def self.from_response(response)
|
4
|
+
klass =
|
5
|
+
case response.status
|
6
|
+
when 400 then BadRequest
|
7
|
+
when 401 then Unauthorized
|
8
|
+
when 403 then Forbidden
|
9
|
+
when 404 then NotFound
|
10
|
+
when 400..499 then ClientError
|
11
|
+
when 500 then InternalServerError
|
12
|
+
when 502 then BadGateway
|
13
|
+
when 503 then ServiceUnavailable
|
14
|
+
when 500..599 then ServerError
|
15
|
+
else nil
|
16
|
+
end
|
17
|
+
klass.new(response) if klass
|
18
|
+
end
|
19
|
+
|
20
|
+
def initialize(response = nil)
|
21
|
+
@response = response
|
22
|
+
super(build_error_message)
|
23
|
+
end
|
24
|
+
|
25
|
+
private
|
26
|
+
|
27
|
+
def build_error_message
|
28
|
+
return nil if @response.nil?
|
29
|
+
|
30
|
+
"#{@response.env.method.upcase} #{@response.env.url}: " \
|
31
|
+
"#{@response.status} - #{@response.body}"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
class ClientError < Error; end
|
36
|
+
class BadRequest < Error; end
|
37
|
+
class Unauthorized < Error; end
|
38
|
+
class Forbidden < Error; end
|
39
|
+
class NotFound < Error; end
|
40
|
+
|
41
|
+
class ServerError < Error; end
|
42
|
+
class InternalServerError < Error; end
|
43
|
+
class BadGateway < Error; end
|
44
|
+
class ServiceUnavailable < Error; end
|
45
|
+
end
|
metadata
ADDED
@@ -0,0 +1,103 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cotoha
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- tanaken0515
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-02-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: faraday
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.17'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.17'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: faraday_middleware
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: COTOHA API client for Ruby
|
42
|
+
email:
|
43
|
+
- tanaka.kentaro.kk1222@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- ".github/workflows/rspec.yml"
|
49
|
+
- ".gitignore"
|
50
|
+
- ".rspec"
|
51
|
+
- ".travis.yml"
|
52
|
+
- CODE_OF_CONDUCT.md
|
53
|
+
- Gemfile
|
54
|
+
- LICENSE.txt
|
55
|
+
- README.md
|
56
|
+
- Rakefile
|
57
|
+
- bin/console
|
58
|
+
- bin/setup
|
59
|
+
- cotoha.gemspec
|
60
|
+
- lib/cotoha.rb
|
61
|
+
- lib/cotoha/client.rb
|
62
|
+
- lib/cotoha/connection.rb
|
63
|
+
- lib/cotoha/endpoint.rb
|
64
|
+
- lib/cotoha/endpoint/access_token.rb
|
65
|
+
- lib/cotoha/endpoint/coreference.rb
|
66
|
+
- lib/cotoha/endpoint/keyword.rb
|
67
|
+
- lib/cotoha/endpoint/misrecognition.rb
|
68
|
+
- lib/cotoha/endpoint/named_entity.rb
|
69
|
+
- lib/cotoha/endpoint/parse.rb
|
70
|
+
- lib/cotoha/endpoint/remove_filler.rb
|
71
|
+
- lib/cotoha/endpoint/sentence_type.rb
|
72
|
+
- lib/cotoha/endpoint/sentiment.rb
|
73
|
+
- lib/cotoha/endpoint/similarity.rb
|
74
|
+
- lib/cotoha/endpoint/summary.rb
|
75
|
+
- lib/cotoha/endpoint/user_attribute.rb
|
76
|
+
- lib/cotoha/error.rb
|
77
|
+
- lib/cotoha/version.rb
|
78
|
+
homepage: https://github.com/tanaken0515/cotoha-ruby
|
79
|
+
licenses:
|
80
|
+
- MIT
|
81
|
+
metadata:
|
82
|
+
homepage_uri: https://github.com/tanaken0515/cotoha-ruby
|
83
|
+
source_code_uri: https://github.com/tanaken0515/cotoha-ruby
|
84
|
+
post_install_message:
|
85
|
+
rdoc_options: []
|
86
|
+
require_paths:
|
87
|
+
- lib
|
88
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 2.3.0
|
93
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
requirements: []
|
99
|
+
rubygems_version: 3.1.2
|
100
|
+
signing_key:
|
101
|
+
specification_version: 4
|
102
|
+
summary: COTOHA API client for Ruby
|
103
|
+
test_files: []
|