Get Semantic Similarities
post
/omlmod/v1/cognitive-text/similarity
A cognitive-text endpoint that returns the semantic similarity between a probe text and a list of text strings. Callers can pass sort direction and a language parameter.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
language: string
Allowed Values:
[ "AMERICAN", "SPANISH", "FRENCH", "ITALIAN" ]
-
probe(required): string
-
sortDirection: string
Allowed Values:
[ "ASC", "DESC" ]
-
textList(required): array
textList
Response
Supported Media Types
- application/json
200 Response
List of similarity scores and the associated text strings.
400 Response
Bad request.
401 Response
Unauthorized.
404 Response
Resource not found.
500 Response
Unexpected error.