watson_developer_cloud.relationship_extraction_v1_beta module

The v1 beta Relationship Extraction service (https://www.ibm.com/watson/developercloud/relationship-extraction.html)

class RelationshipExtractionV1Beta(url='https://gateway.watsonplatform.net/relationship-extraction-beta/api', username=None, password=None, use_vcap_services=True)[source]

Bases: watson_developer_cloud.watson_developer_cloud_service.WatsonDeveloperCloudService

default_url = 'https://gateway.watsonplatform.net/relationship-extraction-beta/api'
extract(text, dataset='ie-en-news', return_type='xml')[source]

Extractions entities and relations from the source text. dataset can be either ‘ie-en-news’ or ‘ie-es-news’ returns an xml string