The Meaning Cloud Ruby API Wrapper
A Ruby API wrapper for Meaning Cloud API's
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request