Annotate
Uniquely identify people, locations, organizations and things mentioned in the user-provided document.
BodyJSON, with Content-Type: application/json. GET with query parameters also works.
Examples
Annotate a text with concepts
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
Additional parameters
6
Default: 3
Default: 0.01
Default: 200
Default: 0.03
Default: 0.95
Response
Example output is a real response; Output schema lists the fields the endpoint can return.
annotationsobject[]
- urlstring
- titlestring
- langstring
- secUrlstring
- secTitlestring
- secLangstring
- dbPediaIristring
- dbPediaTypesstring[]
- typestring
- wgtdouble
- pageRankdouble
- wikiDataItemIdstring
- wikiDataClassIdsstring[]
supportobject[]
- chFrominteger
- chTointeger
- pMentionGivenSurfacedouble
- textstring
- wFrominteger
- wTointeger
- wikiLangstring
- spacesstring[]
- wordsstring[]
- normWordsstring[]
- rangesinteger[]
- minPageRankinteger
- maxDfThresholdinteger
- altLabelSetsUsedstring[]
- linkSourcesAvailableboolean
verbsobject[]
- iFrominteger
- iTointeger
- normFormstring
- synsetIdsinteger[]
nounsobject[]
- iFrominteger
- iTointeger
- normFormstring
- synsetIdsinteger[]
adjectivesobject[]
- iFrominteger
- iTointeger
- normFormstring
- synsetIdsinteger[]
adverbsobject[]
- iFrominteger
- iTointeger
- normFormstring
- synsetIdsinteger[]
- timeTotalMsinteger
- timeAnnotationMsinteger
- timeBuildJsonMsinteger
- incIdxTimestampUtcstring
- fnRegIdxstring
- fnWikiDatastring
settingsobject
- pageRankSqThresholdinteger
- applyPageRankSqThresholdboolean
- minPMentionGivenPhraseinteger
- maxMentionEntropyinteger
- maxTargetsPerMentioninteger
- useLogLinkCountsboolean
- candSelectionUseLinearizedPageRankboolean
- candSelectionPageRankThresholdinteger
- candSelectionCosineWeightinteger
- candSelectionLinkCtxCosineWeightinteger
- candSelectionUseLinkProbstring
- semanticSimilaritystring
- secondaryAnnotLanguagestring
- minLinkFrequencyinteger
- minLinkRelFrequencyinteger
- nWordsToIgnoreFromListinteger
- extraVocabsToIncludeobject[]
- altLabelSetsToUsestring[]
- languagestring
- languageAutodetectInfostring
languageAutodetectDetailsobject
- topLangNointeger
- topLangCodestring
candidatesobject[]
- langNointeger
- langCodestring
- percentinteger
- normScoreinteger
- textBytesinteger
- validPrefBytesinteger
- isReliableboolean
- chunksstring[]
On this page
Build this request with a form and run it with your API key.
OpenAPI specification