Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

alexlag/ispapi.ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby wrapper for ISPRAS API

Installation

It's simple gem, so gem install ispras-api and adding gem 'ipras-api' should work.

Usage

Currently wraps texterra and twitter-nlp services, so apikey for any of those is needed

Code should look similar to this:

require 'ispras-api'

texterra = TexterraAPI.new 'APIKEY'
text = 'Apple today updated iMac to bring numerous high-performance enhancements to the leading all-in-one desktop.'

key_concepts = texterra.key_concepts text
puts key_concepts[0]
# > {:id=>"21492980", :kbname=>"enwiki", :title=>"IMac", :weight=>"0.35956284403800964"}

wiki_url = texterra.get_attributes('21492980:enwiki', 'url(en)')[:elements][:object][:attributes][:i_attribute][:url]
# > "http://en.m.wikipedia.org/wiki/IMac" 

Don't forget to check REST documentation

About

Ruby wrapper for ISPRAS API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages