https://github.com/wowinter13/yandex_predictor
Ruby gem for Yandex Predictor API
https://github.com/wowinter13/yandex_predictor
Last synced: 2 months ago
JSON representation
Ruby gem for Yandex Predictor API
- Host: GitHub
- URL: https://github.com/wowinter13/yandex_predictor
- Owner: wowinter13
- License: mit
- Created: 2017-03-06T13:05:47.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-12T08:46:21.000Z (about 8 years ago)
- Last Synced: 2025-01-23T19:51:49.577Z (4 months ago)
- Language: Ruby
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# YandexPredictor
Library for Yandex Predictor API | Библиотека для API Яндекс.Предиктора
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'yandex_predictor'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install yandex_predictor
## Usage
First, create predictor using your access token:
```ruby
predictor = Yandex::Client.new('your.token')
```To get list of possible languages use #langs method:
```ruby
predictor.langs
```To get prediction text use #complete method:
```ruby
translator.complete('your.word', 'your.lang')
```## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).