Code language

Annotate

Uniquely identify people, locations, organizations and things mentioned in the user-provided document.

POSThttp://analytics.eventregistry.org/api/v1/annotate

BodyJSON, with Content-Type: application/json. GET with query parameters also works.

Examples

Annotate a text with concepts
REST request

How it works

The API call can be used to semantically annotate the provided document. The semantic annotation includes identification of people, locations, organizations and things mentioned in the document. All annotations will have a unique URI that will correspond to the URL of the Wikipedia page that will match the concept.

The annotations can be generated for over 100 different languages. Each returned annotation will contain a property url that will point to the concept in the Wikipedia for that language. The secUrl parameter will point to the concept in the English Wikipedia, if the page for it exists.

Parameters

Send them in the JSON body; the same names work as GET query parameters.

Core

2
apiKeyRequired
string
Your API key
textRequired
string
Define a text that you'll like to see annotated.

Additional parameters

6
minLinkFrequency
integer
The minimum number of times the phrase should appear in the link in order for use to use it as a candidate for the annotation.

Default: 3

minLinkRelFrequency
double
Consider the candidate only if the given text points to the candidate with probability above this value. Value between 0 and 1.

Default: 0.01

nWordsToIgnoreFromList
integer
Use this setting to ignore common phrases. If a phrase consists entirely of very frequent words, it will be ignore. A word is considered frequent if it is one of the most frequent words (in terms of document frequency) in the Wikipedia of the corresponding language. If 0 it will disable this heuristic.

Default: 200

minPMentionGivenPhrase
double
Probability that the given phrase, if found on Wikipedia, is annotated with the concept. If non-zero, it can help to remove the common words.

Default: 0.03

pageRankSqThreshold
double
Probability that the given phrase, if found on Wikipedia, is annotated with the concept. If non-zero, it can help to remove the common words.

Default: 0.95

applyPageRankSqThreshold
boolean
Apply pageRankSqThreshold to the requested response.

Response

Example output is a real response; Output schema lists the fields the endpoint can return.

200 · application/json