Example of using the /relatedness endpoint to compute the semantic similarity score between 'dog' and 'cat' using ConceptNet Numberbatch word vectors. Returns a float between 0 and 1.
Knowledge GraphNatural Language ProcessingSemantic WebCommon SenseMultilingualWord EmbeddingsLinked DataOpen Data
Get Relatedness is an example object payload from ConceptNet, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.