Staple AI also supports the ability for users to create their document types and train the AI to capture data points of their choosing. This is done using models. Models are like custom-made templates for extracting data from documents.
Creating a custom model is simple. First, navigate to the “Models” section on the leftmost section of the page. From here the user selects the “New Model” button. This leads to a popup asking for details to create a new model.
The options for the model are:
The fields of model name, image type and language are compulsory as they help in processing the entered documents.
Once a model is initialized, creating its template is the next task. Doing so marks all the fields a user wants to extract from the document.
Add a document that contains all the desired fields. The document will look like as shown below:
Figure 24: Creating a model
Notice the fields list is empty. This is for the user to enter their desired fields for scanning.
This is done by clicking on the “New field” button. This will list 4 mandatory sections to be filled.
Adding tables to be scanned is just as easy. Hover over to the “Smart Tables” section to the right of the “Fields” section. Following it, add a new table using the button “New Smart table”. This creates a table on the document and two categories that will identify the table. The user can adjust the table to align with the one on the document. Then, the categories on the left need to be filled up:
While processing the table, a header of a particular column can only be updated if it is mentioned in the category list of the header. The “New Category” button adds a new category to the existing list of headers.
Users can add multiple fields or tables. An example is shown below.
Once a model is created, it may be used in exactly the same way as a default model in the scanning section. While creating or updating a queue, the user must select the custom model option under the “Model type”. See Creating a Queue for more information. After that, select the model to be used under the “Document type”. This will apply the model to the documents in the queue.
If there are changes to be made in the model, a user
can do so by clicking on the three dots alongside the model name in the list of models. Choosing the “Edit model” option will lead the user to a popup where the changes can be made.
To delete a model select the option “Remove model” that appears after clicking the same three dots mentioned above.