The output contains information about the status of the request and it divides the text into fragments indicating the reputation associated to the different relevant entities (in this case, organizations and people) detected in each fragment. To do that, it will indicate in which category (or categories) or dimmension/s the fragment is classified according a reputation model for business — that is, which categories affect the reputation of the set of detected entities — and the sentiment associated to each entity in those categories. Information about irony and subjectivity is obtained too.
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 |
fragment_list |
List of fragments in which the text is divided. Each fragment is represented by an element fragment. |
category_list |
List of categories in which the input text is classified. Each category contains the a field |
entity_list |
List of entities of type organization or person, identified in the text. Each one will be represented by an element
|
These are the fields included in each fragment
element.
Name | Description |
---|---|
inip |
Initial position of the fragment, starting from 0. |
endp |
End position of the fragment. |
info_list |
Detailed information from the fragment listed by entity and category. Each piece of information contains the following fields:
|
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" }, "fragment_list":[ { "text": "Apple lanza el 'mayor adelanto' en la historia del iPhone: http://bit.ly/1tHYVgY", "inip": "0", "endp": "79", "info_list": [ { "entity": "Apple", "type": "Top>Organization>Company>TechnologyCompany", "category": "Innovación y flexibilidad - Innovación", "relevance": "100", "sentiment": "P+", "subjectivity": "OBJECTIVE", "irony": "NONIRONIC" } ] } ], "category_list":[ { "category": "Innovación y flexibilidad - Innovación" } ], "entity_list":[ { "entity": "Apple", "type": "Top>Organization>Company>TechnologyCompany" } ] }