NlpRequest
NLP request for Media Assistant v2, based on General API's request.
See the semantic tagging guide for an example of using an NLP request to obtain tags.
The API is intended for analysis of typical newspapers articles, not books. The API will reject any request larger than 500 KB. However, even analysis of smaller documents might time-out if they contain many entities. Please, get in touch with us, if your use case requires analysis of large articles.
Fields
Property | Required | Type | Description |
---|---|---|---|
id | True | string | Unique identifier of the article |
title | False | string | The title or subject of the article, when available; mutually exclusive with the paraSpecs parameter |
lead | False | string | The lead or abstract of the article, when available; mutually exclusive with the paraSpecs parameter |
text | False | string | The main text or body of the article; mutually exclusive with the paraSpecs parameter |
paraSpecs | False | List[ParaSpec] | The paragraphs; mutually exclusive with title , lead and text parameters |
domicile | False | string | The location part of the dateline indicating the origin location of the article, e.g., Paris, France |
analyses | False | List[string] | [option] What analysis to return. Default: all |
language | False | string | [option] The language of the article as ISO 639-1; auto-detection will be used if omitted |
langDetectPrior | False | string | [option] The language detection prior; e.g. de,en |
presentationLanguage | False | string | [option] The presentation language of the results |
categories | False | List[Category] | [option] The categories (and entities) of the article |
referenceDate | False | string | [option] Date to be used for the analysis as a reference, optionally with time; values: "NOW" or in ISO format |
returnMentions | False | boolean | [option] Should entity/tag/relation mentions be returned? Default: false |
returnItemSentiment | False | boolean | [option] Should entity/mention/tag/relation etc. sentiment be returned? Default: false |
returnGkbProperties | False | boolean | [option] Should entity/tag GKB properties be returned? Default: false |
metadata | False | Map[string, string] | Any additional metadata for the article, e.g. domicile or URL |
recommendation | False | Recommendation | Recommendation info for the article |