Get Most Relevant Keywords
post
/omlmod/v1/cognitive-text/keywords
A cognitive text endpoint that returns the most relevant keywords for the provided list of text strings. A parameter of topN can be passed as part of the input to determine how many keywords to return per document. By default, 5 keywords will be returned. Callers can also pass a language parameter. The keywords will be sorted by weight.
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" ] -
textList(required): array
textList
-
topN: integer
Minimum Value:
1Default Value:5
Response
Supported Media Types
- application/json
200 Response
A list of keywords with weights and the associated text strings.
400 Response
Bad request.
401 Response
Unauthorized.
404 Response
Resource not found.
500 Response
Unexpected error.