The output contains information about the status of the request and about the categories in which the text has been classified. The information provided is the same for the different output formats and the naming convention used for all fields is lowercase_separated_by_underscore.
These are the fields included in the response document.
Name | Description |
---|---|
status |
Contains information about the extraction process and whether it has finished successfully. It is formed by a status code ( You can find all the possible status codes returned by the API with an explanation and tips on how to manage them in our error codes catalog. A request is any HTTP request done to the API to analyze less than 500 words. If the text sent is longer than that, then it will be considered that more than a request is made, more specifically, as many requests as we would need if the text were divided in chunks of 500 words. For instance, an HTTP request with 1013 words, will count as three requests, so 3 Did you know...?Only the successful requests to the API will consume credits. In other words, the |
cluster_list |
list of cluster objects that have been detected for the set of documents sent. Each cluster,
|
The format in which this information will be shown will depend on the value of the of
parameter.
{ "status": { "code": "0", "msg": "OK", "credits": "0" }, "cluster_list": [ { "title": "Girl", "size": "2", "score": "0.16", "document_list": { "2": "the girl", "3": "the girl and the giraffes" } }, { "title": "Giraffe", "size": "2", "score": "0.13", "document_list": { "1": "the giraffe", "3": "the girl and the giraffes" } } ] }
<?xml version="1.0" encoding="utf-8"?> <response> <status code="0" credits="3">OK</status> <cluster_list> <cluster> <title>Girl</title> <size>2</size> <score>0.15</score> <document_list> <document id="1">the girl</document> <document id="3">the girl and the giraffes</document> </document_list> </cluster> <cluster> <title>Giraffe</title> <size>2</size> <score>0.15</score> <document_list> <document id="2">the giraffe</document> <document id="3">the girl and the giraffes</document> </document_list> </cluster> </cluster_list> </response>