Get Most Relevant Topics

post

/omlmod/v1/cognitive-text/topics

A cognitive text endpoint that returns the most relevant topics for the provided list of text strings. A parameter of topN can be passed as part of input to determine how many topics to return. By default, 2 topics will be returned. Callers can also pass a language parameter. The topics will be sorted by weight.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : textList
Type: array
Show Source
Back to Top

Response

Supported Media Types

200 Response

A list of topics with weights and the associated text strings.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : TopicResponse
Type: object
Show Source
Nested Schema : topicResults
Type: array
Show Source
Nested Schema : TopicResult
Type: object
Show Source

400 Response

Bad request.
Body ()
Root Schema : Error
Type: object
Show Source

401 Response

Unauthorized.
Body ()
Root Schema : Error
Type: object
Show Source

404 Response

Resource not found.
Body ()
Root Schema : Error
Type: object
Show Source

500 Response

Unexpected error.
Body ()
Root Schema : Error
Type: object
Show Source
Back to Top