A Ruby API wrapper for Meaning Cloud API's
gem "meaning-cloud", "~> 1.0.0"
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!
You need a valid key to use the Gem, you can get it by signing up here
Raises Exception on missing key
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
result = MeaningCloud::Topics.extract_topics(txt: 'The most amazing text in the world') # Returns a hash of the parsed JSON result.
Source source
This is completely unofficial and is not related to Meaning Cloud in any way.
- 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