Predict
Predict on a single piece of text using the specified model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model_id
|
str
|
The ID of the model to use for prediction. |
required |
text
|
str
|
The text to predict on. |
required |
model_type
|
ModelType
|
The model type to use for prediction. |
None
|
document_files
|
list[str] | None
|
List of paths to document files, if any. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Dict[str, Any]
|
The prediction result. |