Extracts text from the provided PDF and returns a list of recognized labels and their scores.
REQUIRED | KEY | TYPE | DESCRIPTION |
---|---|---|---|
Yes | deploymentToken | str | The deployment token to authenticate access to created deployments. This token is only authorized to predict on deployments in this project, so it is safe to embed this model inside of an application or website. |
Yes | deploymentId | str | The unique identifier to a deployment created under the project. |
No | bytes | (Optional) The pdf to predict on. One of pdf or docId must be specified. | |
No | docId | str | (Optional) The pdf to predict on. One of pdf or docId must be specified. |
No | returnExtractedFeatures | bool | (Optional) If True, will return all extracted features (e.g. all tokens in a page) from the PDF. Default is False. |
No | verbose | bool | (Optional) If True, will return all the extracted tokens probabilities for all the trained labels. Default is False. |
No | saveExtractedFeatures | bool | (Optional) If True, will save extracted features (i.e. page tokens) so that they can be fetched using the prediction docId. Default is False. |
KEY | TYPE | DESCRIPTION |
---|---|---|
success | Boolean | true if the call succeeded, false if there was an error |
List[EntityRecognitionPrediction] |
TYPE | WHEN |
---|---|
DataNotFoundError |
|
DataNotFoundError |
|