Date Extraction 日本語
■日本語ページのURL「http://www-03.ibm.com/press/jp/ja/index.wss」を送信してみる.
$ curl -X POST -d "apikey=xxx" -d "outputMode=json" --data-urlencode "url=http://www-03.ibm.com/press/jp/ja/index.wss" "https://gateway-a.watsonplatform.net/calls/url/URLExtractDates"
{
"status": "ERROR",
"statusInfo": "unsupported-text-language",
"usage": "By accessing AlchemyAPI or using information generated by AlchemyAPI, you are agreeing to be bound by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html",
"url": "http://www-03.ibm.com/press/jp/ja/index.wss",
"totalTransactions": "1",
"language": "japanese"
}
→日本語と判定されてエラーになる.