A3rtClient

https://a3rt.recruit-tech.co.jp/ A3RT (art) is an abbreviation of "ANALYTICS & ARTIFICIAL INTELLIGENCE API VIA RECRUIT TECHNOLOGIES". A3RT is a general term for a project-oriented solution for unifying and maintaining logic in a field called artificial intelligence in a single brand, represented by Deep Learning among machine learning.

Installation

gem 'a3rt_client'

And then execute:

$ bundle

Or install it yourself as:

$ gem install a3rt_client

Usage

Talk API

https://a3rt.recruit-tech.co.jp/product/talkAPI/

require "a3rt_client"
# option requrest_parameter: callback
response = A3rt::Client.talk_api(apikey: apikey, query: "おはようございます")
p resonse
# => {"status"=>0, "message"=>"ok", "results"=>[{"perplexity"=>1.189832892522537, "reply"=>"今日も暑いですね"}]}

Text Suggest

https://a3rt.recruit-tech.co.jp/product/textSuggestAPI/

require "a3rt_client"
# option requrest_parameter: callback, style, separation
response = A3rt::Client.text_suggest(apikey: apikey, previous_description: "")
p resonse
# => {"status"=>0, "message"=>"ok", "suggestion"=>["を飲んでいます。", "の下にいる象たちの顔が見えています。", "の中に入れられています。"]}

Text Summarization

require "a3rt_client"
p A3rt::Client.text_summarization(apikey: apiKey, sentences: "センテンス1。センテンス2。センテンス3。")
# => {"message"=>"Summarization is completed", "status"=>0, "summary"=>["センテンス1"]}

Proofreading API

require "a3rt_client"
p A3rt::Client.proofreading(apikey: apikey, sentence: "システムの企画から開発・運用まで幅広く関われます。")
# => {"resultID"=>"4e9ae6450fe2", "status"=>0, "message"=>"ok", "inputSentence"=>"システムの企画から開発・運用まで幅広く関われます。", "normalizedSentence"=>"システムの企画から開発・運用まで幅広く関われます。", "checkedSentence"=>"システムの企画から開発・運用まで幅広く関われます。"}
require "a3rt_client"
p A3rt::Client.image_search(apikey: apikey, query: "馬に乗った男性")

Development

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.

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.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/yk0817/a3rt_client. This project is intended to be a safe, welcoming space for

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the A3rtClient project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.