Yahoo Parse Api Client
This is Yahoo Parse Api Client for ruby.
API documentation
日本語形態素解析API
(yahoo developers network)
Installation
Add this line to your application's Gemfile:
gem 'yahoo_parse_api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install yahoo_parse_api
Configuration
require 'yahoo_parse_api'
YahooParseApi::Config.app_id = [your applicationID]
Usage
yp = YahooParseApi::Parse.new
result = yp.parse('庭には二羽ニワトリがいる。', {
results: 'ma,uniq',
uniq_filter: '9|10'
})
result = yp.parse('庭には二羽ニワトリがいる。', { results: 'ma,uniq', uniq_filter: '9|10' }, :POST)
result = yp.parse('庭には二羽ニワトリがいる。', {
results: 'ma',
ma_response: 'surface',
ma_response: '2|5'
})
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
for Japanese
Yahoo!の日本語形態素解析APIのgemを作ってみた