Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Uploading documents with our API gives the option to add “hints”.

These hints are indications of what a field in the document may look like (whitelist) or what the field cannot look like (blacklist). Under the hood, the blacklist will prevent the algorithm from predicting a specific value (for example a VAT number of your company), while the whitelist will tell the algorithm to favour a prediction over others (and can therefore be used as training, as well).

Concretely, uploading some (positive) hints to tell the algorithms what to look for for some common invoice fields, could look like this:

{
'tax_amount': {'whitelist': ['2.23', '3.54']}, 
'gross_amount': {'whitelist': ['183.4']}, 
'invoice_number': {'whitelist': ['8568586']}, 
'invoice_date': {'whitelist': ['2020-01-23']}, 
'country': {'whitelist': ['FR']}, 
'sender_vat': {'whitelist': ['FR41448268276']}, 
'company_number': {'whitelist': ['FR41448268276']}
}

  • No labels