Skip to content

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
document_files list

List of paths to document files, if any.

None

Returns:

Name Type Description
str

The prediction result.

Sample Usage

text = "Sample text for prediction"
prediction = anote.predict(model_id=model_id, text=text)
print(f"Prediction: {prediction}")