Custom API (Deprecated)
Quick Start
String path = "/path/to/the/file.ext";
LocalInputSource inputSource = new LocalInputSource(path);
CustomEndpoint myEndpoint = new CustomEndpoint(
"wnine",
"john",
// "1.1" // optional
);
MindeeClient mindeeClient = new MindeeClient(apiKey);
PredictResponse<CustomV1> response = mindeeClient
.parse(inputSource, myEndpoint);
// Print a summary of the response
System.out.println(response.toString());If the version argument is set, you'll be required to update it every time a new model is trained. This is probably not needed for development but essential for production use.
The CustomV1 Object
CustomV1 ObjectThe CustomV1 object contains the results of document-level and page-level predictions.
All the fields which are present in the API builder are available.
The fields are defined when creating your custom API.
Document-Level Predictions
The document-level predictions are ultimately contained in the CustomV1Document object.
The predictions are stored in two properties: classificationFields and fields.
Both are a Map where the key is a String of the name of the field.
For the values:
classificationFieldshave aClassificationFieldobject as value, each containing a singleStringvalue.fieldshave aListFieldobject as value, each containing a list of allStringvalues extracted for this field.
Here are some example usages:
Page-Level Predictions
The page-level predictions are ultimately contained in the CustomV1Page object.
In the response, there is a list of these objects, each one representing a single page.
The prediction results are stored as a key-value HashMap<String, ListField>.
Here are some example usages:
Last updated
Was this helpful?

