Sign Up

Log In

IBMWatsonNLC

FREE
By dimashirokov
Updated 2 months ago
Text Analysis
-/10
Popularity Score
-
Latency
-
Success Rate

IBMWatsonNLC API Overview

Connect to the IBM Watson Natural Language Classifier API to translate natural speech into what a computer can understand. Test an API call and export the code. Use cases include understanding and answering FAQs, triggering actions based on user input, or categorizing a group of tweets. This API works best with short text (<1000 characters).

The IBM Watson Natural Language Processing API pricing has a free and paid tier: https://www.ibm.com/watson/developercloud/nl-classifier.html (as of 02/27/2017)

IBMWatsonNLC

IBMWatsonNaturalLanguageClassifier Package

Interpret natural language with custom classifiers.

  • Domain: ibm.com
  • Credentials: username, password

How to get credentials:

  1. Register to IBM Bluemix Console
  2. After log in choose Natural Language Classifier from services
  3. Connect Natural Language Classifier to your application at the left side, choose pricing plan and click on 'Create' button at the bottom of the page.
  4. Click on 'Service Credentials' tab to see your username and password.

IBMWatsonNLC.createClassifier

Sends data to create and train a classifier and returns information about the new classifier.

Field Type Description
username credentials Required: username obtained from IBM Bluemix.
password credentials Required: password obtained from IBM Bluemix.
trainingData File Required: Training data In the CSV format. Each text value must have at least one class. The data can include up to 15,000 records.
language String Required: The language of the data. Specify the language with the 2-letter primary language code as assigned in ISO standard 639. Supported languages are English (en), Arabic (ar), French (fr), German, (de), Italian (it), Japanese (ja),Korean (ko),Portuguese (pt), and Spanish (es).
name String Optional: The name of the data to identify the classifier.

trainingData structure

Text before comma is a test to classify, text after comma is class that apply to the text. Each record has two or more columns.

How hot is it today?,temperature
Is it hot outside?,temperature
Is it windy?,conditions

IBMWatsonNLC.listClassifiers

Retrieves the list of classifiers for the service instance. Returns an empty array if no classifiers are available.

Field Type Description
username credentials Required: username obtained from IBM Bluemix.
password credentials Required: password obtained from IBM Bluemix.

IBMWatsonNLC.getClassifierInformation

Returns status and other information about a classifier.

Field Type Description
username credentials Required: username obtained from IBM Bluemix.
password credentials Required: password obtained from IBM Bluemix.
classifierId String Required: Classifier ID to query.

IBMWatsonNLC.classify

Returns label information for the input.

Field Type Description
username credentials Required: username obtained from IBM Bluemix.
password credentials Required: password obtained from IBM Bluemix.
classifierId String Required: Classifier ID to query.
text String Required: Phrase to classify.

IBMWatsonNLC.deleteClassifier

Deletes a classifier.

Field Type Description
username credentials Required: username obtained from IBM Bluemix.
password credentials Required: password obtained from IBM Bluemix.
classifierId String Required: Classifier ID to delete.
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://IBMWatsonNLCdimashirokovV1.p.rapidapi.com/classify")
.header("X-RapidAPI-Host", "undefined")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication

Sign up for free

to test this endpoint

Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard