RPA.DocumentAI.Nanonets
module RPA.Nanonets
class RPA.DocumentAI.Nanonets.Nanonets
Library to support Nanonets service for intelligent document processing (IDP).
Library requires at the minimum rpaframework version 19.0.0.
Service supports identifying fields in the documents, which can be given to the service in multiple different file formats and via URL.
Robot Framework example usage
Python example usage
variable ROBOT_LIBRARY_DOC_FORMAT
variable ROBOT_LIBRARY_SCOPE
method get_all_models
Get all available models related to the API key.
- Returns: object containing available models
Robot Framework example:
Python example:
method get_fields_from_prediction_result
Helper keyword to get found fields from a prediction result.
For example. see Predict File
keyword
- Parameters: prediction โ prediction result dictionary
- Returns: list of found fields
method get_tables_from_prediction_result
Helper keyword to get found tables from a prediction result.
For another example. see Predict File
keyword
- Parameters: prediction โ prediction result dictionary
- Returns: list of found tables
Robot Framework example:
Python example:
method ocr_fulltext
OCR fulltext a given file. Returns words and full text.
Filename and filepath needs to be given separately.
Parameters
- filename โ name of the file
- filepath โ path of the file
- Returns: the result in a list format
Robot Framework example:
Python example:
method predict_file
Get prediction result for a file by a given model id.
Parameters
- filepath โ filepath to the file
- model_id โ id of the Nanonets model to categorize a file
- Returns: the result in a list format
Robot Framework example:
Python example:
method set_authorization
Set Nanonets request headers with key related to API.
- Parameters: apikey โ key related to the API
Robot Framework example:
Python example: