Watson Natural Language Classifier Api

Unofficial Content
This documentation is valid for:

Natural Language Classifier

 

Documentation: https://www.ibm.com/watson/developercloud/natural-language-classifier/api/v1/

Create Classifier

Invocation

&NLCClassifier = CreateClassifier(&text, NLCLanguage.English,&name)

Parameters

In: &text of type: Text, GenexusWatsonSDK

In: &language variable based on the domain: NLCLanguage

In: &name variable varchar(50) indicating the name of the classifier.

Out: &NLCClassifier variable based on the SDT: Classifier

List Classifiers

Invocation

&Classifiers = GetClassifiers()

Parameters

Out: &Classifiers variable based on the SDT: Classifiers

Classifier Info  (Get information about a classifier)

Invocation

&NLCClassifier = ClassifierInfo(&classifierId)

Parameters

In: &classifierId   ID corresponding to the classifier created.

Out: &NLCClassifier  variable based on the SDT: Classifier

Classify 

Invocation

&Classification = Classify(&classifierId,&text)

Parameters

In: &classifierId   ID corresponding to the classifier created.

In: &text of type: Text, GenexusWatsonSDK. Text to classify.

Out: &Classification variable based on the SDT: Classification

Delete Classifier

Invocation

&success = DeleteClassifier(&classifierId)

Parameters

In: &classifierId   ID corresponding to the classifier.

Out: &success  variable of Boolean type with the execution result.