Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sem_extractor

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sem_extractor

  • 0.0.4
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

== SemExtractor

SemExtractor is made to have in a single place, wrappers for most of the semantic librairies:

  • Zemanta
  • Semantic Hacker from Textwise
  • Yahoo Boss
  • OpenCalais

Please tell me if there are more API's to include!

After using Term Extraction gem, I happened to need the score of the different tags I got from the different APIS + I wanted to use Nokogiri for performance concerns. I thank alexrabarts, because his work gave me the idea to create my first gem

== Installation

gem install sem_extractor

== Examples For sure, you'll have to request your own API Key for each kind of API you want to use. Most of the methods below retrieve a hash with 'name' and 'score'

=== Initialize: yahoo = SemExtractor::Yahoo.new(:api_key => your_key, :context => your_text) zemanta = SemExtractor::Zemanta.new(:api_key => your_key, :context => your_text) sem = SemExtractor::Textwise.new(:api_key => your_key, :context => your_text_or_url) calais = SemExtractor::Calais.new(:api_key => your_key, :context => your_text)

===Get info: yahoo.terms zemanta.terms zemanta.categories sem.terms sem.categories sem.filter #filters the useful content of a web page, retrieves text calais.terms calais.categories calais.geos

== Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

== Todo I've to create the tests for this gem... :)

== Copyright

Copyright (c) 2010 apneadiving. See LICENSE for details.

FAQs

Package last updated on 10 Oct 2010

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc