Skip to content
A Ruby wrapper for the Meaning Cloud API's
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
spec
.gitignore
.hound.yml
.ruby-style.yml
.ruby-version
.semver
.travis.yml
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
meaning-cloud.gemspec

README.md

The Meaning Cloud Ruby API Wrapper

A Ruby API wrapper for Meaning Cloud API's

Gem VersionDependency Status Build Status Code Climate Test Coverage

gem "meaning-cloud", "~> 1.0.0"

Missing

Current version only wraps the Topics extraction API's and is focused on specific usage. Feel free to send a pull request with more API's wrapped!

Usage

You need a valid key to use the Gem, you can get it by signing up here

Raises Exception on missing key

Configuration

You can use an initializer for example if you're on Rails.

# initializers/meaning_cloud.rb
MeaningCloud.configure do |config|
  config.key = ENV['MEANING_CLOUD_KEY']
  # optional - these are the defaults
  config.language = :en
  config.topic_types = 'ec'
end

Extract by text

result = MeaningCloud::Topics.extract_topics(txt: 'The most amazing text in the world') # Returns a hash of the parsed JSON result.

Source source

Disclaimer

This is completely unofficial and is not related to Meaning Cloud in any way.

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 Tailor Brands

Check us out!

You can’t perform that action at this time.