This API is a semantic sentence similarity API optimized on short sentences. With this API you will be able to compare two sentences and get a score of their semantic similarity. It works even if the two sentences don't have any word in common.
We support both GET and POST methods to query the API.
Remember to authenticate yourself specifying the token parameter (or the legacy $app_id and $app_key pair). See the API doc about authentication for any questions.
Type | string |
Type | string |
Type | string |
Default value | auto |
Accepted values | de | en | es | fr | it | pt | ru | auto |
Type | string |
Default value | never |
Accepted values | always | one_empty | both_empty | never |
The response is structured in JSON as follow:
{
"timestamp": "Date and time of the response generation process",
"time": "Time elapsed for generating the response (milliseconds)",
"lang": "The language used to compare the given texts",
"langConfidence": "Accuracy of the language detection, from 0.0 to 1.0. Present only if auto-detection is on",
"similarity": "Similarity of the two given texts, from 0.0 to 1.0. Higher is better"
}
For more information about status codes and error handling please refer to the dandelion generic API documentations. The cost of each request can be found in the response headers as described here.
Connection: keep-alive
Content-Length: 2748
Content-Type: application/json;charset=UTF-8
Date: Wed, 21 Oct 2015 16:29:37 GMT
Server: Apache-Coyote/1.1
X-DL-units: 3
X-DL-units-left: 997
X-DL-units-reset: 2015-10-22 00:00:00 +0000
{
"timestamp": "2015-10-21T16:29:37",
"time": 3,
"lang": "en",
"langConfidence": 1,
"text1": "The annotated text. Present only if the 'html1' parameter has been used",
"text2": "The annotated text. Present only if the 'html2' parameter has been used",
"similarity": 0.6355
}
Dandelion API
built with ❤ by SpazioDati S.r.l.
Company subject to management and coordination of Cerved Group S.p.A.
site privacy | api privacy | tos | cookies | consent preferences
We're a startup based in Italy, specialized in Semantics & Big Data.
Find out more about us at spaziodati.eu