Skip to content

Mario245/relationship-extraction-ruby

Repository files navigation

Relationship Extraction Ruby Sinatra Starter Application

The IBM Watson Relationship Extraction service parses sentences into their various components and detects relationships between the components. It can process new terms (like people's names in a news feed) it has never analyzed before through contextual analysis. Sentence components include parts of speech (noun, verb, adjective, conjunction, etc.) and functions (subjects, objects, predicates, etc.). The service maps the relationships between the components so that users or analytics engines can more easily understand the meaning of individual sentences and documents.

Give it a try! Click the button below to fork into IBM DevOps Services and deploy your own copy of this application on Bluemix.

Deploy to Bluemix

Getting Started

  1. Create a Bluemix Account

Sign up in Bluemix, or use an existing account. Watson Services in Beta are free to use.

  1. Download and install the Cloud-foundry CLI tool

  2. Edit the manifest.yml file and change the <application-name> to something unique.

applications:
- services:
  - re-service
  name: <application-name>
  path: .
  memory: 256M

The name you use will determinate your application url initially, e.g. <application-name>.mybluemix.net.

  1. Connect to Bluemix in the command line tool
$ cf api https://api.ng.bluemix.net
$ cf login -u <your user ID>
  1. Create the Relationship Extraction service in Bluemix
$ cf create-service relationship_extraction relationship_extraction_free_plan re-service
  1. Push it live!
$ cf push <application-name>

See the full Getting Started documentation for more details, including code snippets and references.

License

This sample code is licensed under Apache 2.0. Full license text is available in LICENSE.

Contributing

See CONTRIBUTING.

Open Source @ IBM

Find more open source projects on the IBM Github Page

About

Sample Ruby Sinatra Application for the IBM Watson Relationship Extraction Service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published