Skip to main content

Response

Represents the output of a Media API NLP analysis. The structure is identical to the General API response. See the G3 Response API reference and the guide for details.

Fields​

PropertyRequiredTypeDescription
idFalsestringIdentifier of the analyzed document, as submitted in the request
languageTrueLanguageDocument and analysis language
paragraphsFalseList[Paragraph]Paragraphs the document consists of; returned when NlpRequest specifies returnMentions = true
entitiesFalseList[Entity]Named and unnamed entities found in the document; returned when analyses contains entities, relations or all
tagsFalseList[Tag]Semantic content tags relevant to the document; returned when tags or all are among the requested analyses
relationsFalseList[Relation]Relations found in the document; returned when relations or all are among the requested analyses
docSentimentFalseSentimentSentiment of the entire document; returned when sentiment or all are among the requested analyses
itemSentimentsFalseMap[string, Sentiment]Sentiment of entities, tags, relations, mentions, sentences, etc., by their ID; returned when sentiment or all are among the requested analyses and returnItemSentiment = true in NlpRequest
docVectorsFalseList[Vector]Vectors for the entire document; contact us to have this information returned
itemVectorsFalseMap[string, List[Vector]]Vectors for entities, tags, relations, mentions, sentences, etc., by their ID; contact us to have this information returned
usedCharsTrueintegerNumber of characters charged for the request