Yahoo Keyphrase Api Client
This is Yahoo Keyphrase Api Client for ruby.
API documentation
Yahoo Keyphrase API documentation
Installation
Add this line to your application's Gemfile:
gem 'yahoo_keyphrase_api'
and bundle install
or
$ gem install yahoo_keyphrase_api
Configuration
require 'yahoo_keyphrase_api'
# and setup
YahooKeyphraseApi::Config.app_id = [application_ID]
Usage
ykp = YahooKeyphraseApi::KeyPhrase.new
# extract key phrase
ykp.extract '東京ミッドタウンから国立新美術館まで歩いて5分で着きます。のリクエストに対するレスポンスです。'
#=> <Hashie::Mash 5分=10 リクエスト=55 国立新美術館=100 東京ミッドタウン=69>
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request