Skip to main content

Analysis

The response of Media API NLP analysis. The object returned by Media API NLP analysis is identical to the response of General API. See the G3 Response API reference and the guide for more details.

Fields

PropertyRequiredTypeDescription
idFalsestringIdentifier of the analyzed document, as submitted in the request
languageTrueLanguageDocument and analysis language
paragraphsFalseList[Paragraph]The paragraphs this document consists of. Returned when NlpRequest specifies returnMentions = true
entitiesFalseList[Entity]Found named and unnamed entities in the document. Returned when analyses contains entities, relations or all
tagsFalseList[Tag]Semantic content tags relevant for the document. Returned when tags or all are among the requested analyses.
relationsFalseList[Relation]Relations in the document. Returned when relations or all are among the requested analyses.
docSentimentFalseSentimentSentiment of the whole 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 whole document. Talk to us to have this information returned.
itemVectorsFalseMap[string, List[Vector]]Vectors for entities, tags, relations, mentions, sentences, etc. by their ID. Talk to us to have this information returned.
usedCharsTrueintegerThe number of characters charged for the request