from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.documents.classify(
document={
"id": "id",
"file_name": "fileName",
},
label_schemas=[{
"label": "label"
}],
)
print(response.async_result_id)
{
"asyncResultId": "<string>"
}
Initiates an asynchronous document classification process based on provided schemas. Returns an ID to track the async result.
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.documents.classify(
document={
"id": "id",
"file_name": "fileName",
},
label_schemas=[{
"label": "label"
}],
)
print(response.async_result_id)
{
"asyncResultId": "<string>"
}
Accepted. Document classification process initiated.