Once your AI model is trained and deployed, you can simply call your API from your applications to perform segmentation, verification, classification, or extraction to customize your business workflows.
from provenceAI import Model
my_model = Model(
api_key="my_key",
model="my_model")
results = my_model.process(
"my_document.pdf")
print(results)
{
"pages": [
{
"page": 0,
"class": {
"value": "Contract",
"confidence": 0.99 },
"extractions": [
"date": {
"value": date,
"confidence": 0.90 },
"signed: {
"value": true,
"confidence": 0.95 }]
}
]
}