Send the document to an asynchronous endpoint and return its ID in the queue.
product class to use for calling the API and parsing the response.
file to parse.
parameters relating to prediction options.
a Promise
containing the job (queue) corresponding to a document.
Polls a queue and returns its status as well as the prediction results if the parsing is done.
an extension of an Inference
. Can be omitted as it will be inferred from the productClass
.
product class to use for calling the API and parsing the response.
id of the queue to poll.
parameters relating to prediction options.
a Promise
containing a Job
, which also contains a Document
if the
parsing is complete.
Protected
apiKey of the API.
Creates a custom endpoint with the given values. Raises an error if the endpoint is invalid.
Name of the custom Endpoint.
Name of the account tied to the Endpoint.
Optional
endpointVersion: stringVersion of the custom Endpoint.
Endpoint a new product endpoint
Load an input document from a base64 encoded string.
input content, as a string.
file name.
Load an input document from a Buffer.
input content, as a buffer.
file name.
Load an input document from bytes.
input content, as a Uint8Array or Buffer.
file name.
Load an input document from a stream.Readable
object.
input content, as a readable stream.
file name.
Protected
getSend a document to an asynchronous endpoint and poll the server until the result is sent or until the maximum amount of tries is reached.
an extension of an Inference
. Can be omitted as it will be inferred from the productClass
.
product class to use for calling the API and parsing the response.
document to parse.
parameters relating to prediction options.
a Promise
containing parsing results.
Fetch prediction results from a document already processed.
an extension of an Inference
. Can be omitted as it will be inferred from the productClass
.
product class to use for calling the API and parsing the response.
id of the document to fetch.
optional parameters.
Optional
endpoint?: EndpointEndpoint, only specify if using a custom product.
a Promise
containing parsing results.
Send a document to a synchronous endpoint and parse the predictions.
an extension of an Inference
. Can be omitted as it will be inferred from the productClass
.
product class to use for calling the API and parsing the response.
file to parse.
parameters relating to prediction options.
a Promise
containing parsing results.
Send a feedback for a document.
an extension of an Inference
. Can be omitted as it will be inferred from the productClass
.
product class to use for calling the API and parsing the response.
id of the document to send feedback for.
the feedback to send.
optional parameters.
Optional
endpoint?: EndpointEndpoint, only specify if using a custom product.
a Promise
containing feedback results.
Send the document to an asynchronous endpoint and return its ID in the queue.
file to send to the API.
ID of the workflow.
parameters relating to prediction options.
a Promise
containing the job (queue) corresponding to a document.
Mindee Client class that centralizes most basic operations.