Skip to main content

Task type: Text processing

The text-processing task type is used to indicate services that perform any text-related work. Takes text as input and returns JSON. Supports stream generation mode.

System name: text-processing

You can find the list of services here.

Data types

Predict request

  • Specification.
  • Python type: mlp_sdk.types.Text (the mlp-python-sdk module).
  • Java type: com.mlp.api.datatypes.nlp.Text (the mlp-datatypes module).

Request example:

{
"text": "Text to be processed"
}

Predict response

  • Specification.
  • Java type: com.fasterxml.jackson.databind.node.ObjectNode.

The response can contain an arbitrary JSON object.