RubyGems Navigation menu

calais 0.0.6

Features * Accepts documents in text/plain, text/xml and text/html format. * Basic access to the Open Calais API’s Enlighten action. * Output is RDF representation of input document. * Single function ability to extract names, entities and geographies from given text. == Synopsis This is a very basic wrapper to the Open Calais API. It uses the POST endpoint and currently supports the Enlighten action. Here’s a simple call: Calais.enlighten(:content => "The government of the United Kingdom has given corporations like fast food chain McDonald’s the right to award high school qualifications to employees who complete a company training program.", :content_type => :text, :license_id => LICENSE_ID) This is the easiest way to get the RDF-formated response from the OpenCalais service. If you want to do something more fun like getting all sorts of fun information about a document, you can try this: Calais.process_document(:content => "The government of the United Kingdom has given corporations like fast food chain McDonald’s the right to award high school qualifications to employees who complete a company training program.", :content_type => :text, :license_id => LICENSE_ID) This will return an object containing information extracted from the RDF response. == Requirements * Ruby 1.8.5 or better * Uses the following standard libraries: digest/sha1, net/http, yaml, cgi * libxml2 / libxml-ruby * curb, libcurl

Gemfile:
= 复制到剪贴板 已复制!

安装:
=

版本列表:

  1. 0.0.13 - April 20, 2012 (22.5 KB)
  2. 0.0.12 - April 20, 2012 (22.5 KB)
  3. 0.0.11 - August 03, 2010 (12.5 KB)
  4. 0.0.10 - July 21, 2010 (12.0 KB)
  5. 0.0.9 - April 14, 2010 (12.0 KB)
  6. 0.0.6 - December 18, 2008* (22.5 KB)
显示所有版本 (共 12 个)

Development 依赖 (1):

hoe >= 1.8.2

业主:

作者:

  • Abhay Kumar

SHA 256 校验和:

bad3a7e847d065fbdbd8d0301bce41663f9c31e9b65689215a1f191dd48db7e5

下载总量 68,726

这个版本 4,680

许可:

需要的 Ruby 版本:

链接: