// WatsonFilter's builder public WatsonAnalizer() { IBM.WatsonDeveloperCloud.Util.TokenOptions options = new IBM.WatsonDeveloperCloud.Util.TokenOptions(); options.IamApiKey = APIKEY; _visualRecognition = new IBM.WatsonDeveloperCloud.VisualRecognition.v3.VisualRecognitionService(options, VERSION_DATE); _visualRecognition.SetEndpoint(ENDPOINT); this.scissors = new Scissors(); }
public NaturalLanguageUnderstanding(string apiKey) { //create token with api IBM.WatsonDeveloperCloud.Util.TokenOptions token = new IBM.WatsonDeveloperCloud.Util.TokenOptions() { IamApiKey = apiKey }; //using token create IBM Wastone service accessor _nluService = new NaturalLanguageUnderstandingService(token, "2018-12-19"); //_naturalLanguageUnderstandingService.SetEndpoint(url); }