Skip to content

jackross/alchemy-api-rb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AlchemyAPI

This is a ruby client library that provides access to the Alechemy text mining API. The initial version targets the keyword extraction api specificaly, with other implementations to follow.

Installation

Add this line to your application's Gemfile:

gem 'alchemy-api-rb'

And then execute:

$ bundle

Or install it yourself as:

$ gem install alchemy-api-rb

Usage

Create a client instances with your API Key:

@client = AlchemyAPI::KeywordExtraction.new("xxxxxxxxxxxxxxxxxx")

Request keyword extraction for a string of text:

results = @client.text_search("lorem ipsum")

Results are returned as a array of keywords extracted:

[
  {
         "text" => "lorem ipsum",
    "relevance" => "0.993164"
  }
]

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Provides access to the Alchemy text mining API - http://www.alchemyapi.com/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%