YandexPredictor
Library for Yandex Predictor API | Библиотека для API Яндекс.Предиктора
Installation
Add this line to your application's Gemfile:
gem 'yandex_predictor'
And then execute:
$ bundle
Or install it yourself as:
$ gem install yandex_predictor
Usage
First, create predictor using your access token:
predictor = Yandex::Client.new('your.token')
To get list of possible languages use #langs method:
predictor.langs
To get prediction text use #complete method:
translator.complete('your.word', 'your.lang')
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
License
The gem is available as open source under the terms of the MIT License.