Skip to main content

Request

Request for NLP API version 3.

The API is intended for analysis of small and medium sized documents: reviews, newspapers articles, etc., not books. Large documents must be split into smaller units. The API will reject any request larger than 500 KB. However, even analysis of smaller documents might time-out if they contain many entities.

Fields

PropertyRequiredTypeDescription
idFalsestringUnique identifier of the document
titleFalsestringThe title or subject of the document, when available; mutually exclusive with the paraSpecs parameter. Typically just one paragraph, but may still be split into paragraphs as specified in here.
textFalsestringThe main text of the document; mutually exclusive with the paraSpecs parameter. It is split into paragraphs, see here.
paraSpecsFalseList[ParaSpec]The document paragraphs; mutually exclusive with title and text parameters
analysesFalseList[string][option] What analysis to return. Default: all. The options are: all, entities, tags, relations, sentiment, language.
htmlExtractorFalsestring[option] Text extractor to be used when analyzing HTML document
languageFalsestring[option] The language of the document as ISO 639-1; auto-detection will be used if omitted. The options are: en, cs, de, es, fr, nl, pl, sk.
langDetectPriorFalsestring[option] The language detection prior; e.g. de,en. Supported priors here.
domainFalsestring[option] The source domain from which the document originates. Supported domains here.
textTypeFalsestring[option] The type or genre of text; e.g. article,casual,customer-feedback,email,social
referenceDateFalsestring[option] Date to be used for the analysis as a reference; values: "NOW" or in format YYYY-MM-DD
diacritizationFalsestring[option] Determines whether to perform text diacritization
returnMentionsFalseboolean[option] Should entity/tag/relation mentions be returned? Default: false
returnItemSentimentFalseboolean[option] Should entity/mention/tag/relation etc. sentiment be returned? Default: false