GetCategories
Definition
Returns the category identified for the text based on the 9 top level categories the API uses: Health, Politics, Sports, Entertainment, Technology, Business, Crime & Law Enforcement, Science, and General.
Request Parameters
POST https://nlp.klangoo.com/Service.svc/GetCategories
Parameter |
Description |
calk |
A string containing the api key |
text |
A string representing the text to process |
lang optional |
A string representing the text language (ISO 639-1 language codes). If not specified, the system will detect the language. (see supported languages document) |
format optional |
The format of the response. The supported formats are “xml” and “json”. Default: “xml” |
timestamp generated |
A datetime added automatically by the API client helper. This parameter is added automatically by the API client helper. |
signature generated |
The request signed using the secret key. This parameter is added automatically by the API client helper. |
Response
Attribute |
Description |
method |
Indicates the method name |
status |
Indicates the status of the response. Possible values “OK” and “ERROR” |
error |
Indicates an error if one occurred |
errorNo |
Indicates the error number if error occurred |
errorMessage |
Indicates the error message if error occurred |
quota |
Indicates the number of remaining calls for this CALK for Today |
lang |
Indicates the language of the text (ISO 639-1 language codes) |
categories |
Categories of the document as identified by Magnet |
name |
Magnet category text: General, Business, Law Enforcement, Entertainment, Health, Politics, Science, Sports, Technology |
Comments
0 comments
Article is closed for comments.