NLC
CURL
curl -u "{username}":"{password}" "https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers"
nl-classifier - API Reference | IBM Watson Developer Cloud
https://www.ibm.com/watson/developercloud/natural-language-classifier/api/v1/#get_classifiers
API Reference
http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/natural-language-classifier/api/v1/
NLC Toolkit
https://hub.jazz.net/project/wdctools/ibmwatson-nlc-groundtruth/overview
NLC Demo
http://natural-language-classifier-demo.mybluemix.net/
NLC Demo Training Data
NLC GA
https://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/nl-classifier/data_format.shtml
CSV training data file format
Make sure that your CSV training data adheres to the following format requirements:
The data must be UTF-8 encoded.
Text values and each class value must be separated by a comma delimiter.
Each record is terminated by an end-of-line character, which is a special character or sequence of characters that indicate the end of a line.
Each record must have one text value and at least one class value.
If a text value contains one of the following characters, the entire value must be enclosed in double quotation marks:
Commas ("Example input, with comma",class)
Tab or new line characters: \t, \n, \r, or \r ("Example input\n with new line",class)
Double quotation marks. In addition, quotation marks must be escaped with double quotation marks.("Example input with ""quotation""",class)
Class values can include only alphanumeric characters (A-Z, a-z, 0-9), underscores, and dashes
Size limitations
There are size limitations to the training data:
The training data must have at least five records
The CSV training data must be no larger than 10,000 records (rows).
The maximum total length of the text value is 1024 characters.
アップロードできるファイルの最大サイズは50MB (2016年1月現在)
仕様
クラス名に使えない文字
スペース
カンマ
二重引用符
改行記号 (\n, \r)
タブ (\t)
Document
http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/nl-classifier.html
API Document
http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/apis/#!/natural-language-classifier
Natural Language Classifier service documentation | Watson Developer Cloud
https://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/nl-classifier/data_format.shtml
$ curl -u "<user>":"<password>" --dump-header - https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers
HTTP/1.1 200 OK
X-Backside-Transport: OK OK
Connection: Keep-Alive
Transfer-Encoding: chunked
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, DELETE
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept,X-Watson-UserInfo
Content-Type: application/json
Date: Thu, 10 Dec 2015 10:48:56 GMT
Server: -
Set-Cookie: Watson-DPAT=<cookie>; path=/natural-language-classifier/api; secure; HttpOnly
X-Client-IP: 126.19.89.xxx
X-Global-Transaction-ID: 104045437
X-DP-Watson-Tran-ID: csf_platform_prod_dp01-xxx
{
"classifiers" : [ {
"classifier_id" : "<id>",
"url" : "https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers/<id>",
"name" : "<name>",
"language" : "ja",
"created" : "2015-11-30T14:25:17.025Z"
} ]
}