DevoxxFR 2024 Reproducible Builds with Apache Maven
AI Builder - Form Processing
1. Form processing
Form processingidentifiesthe structure of yourdocumentsbasedonexamplesyouprovidetoextract
textfromany matchingform. Examplesmightincludetax formsorinvoices.
In thislabwe will buildandtraina model forrecognizing invoices. Thenwe will buildatabletappto
showthe detectioninaction anddigitize the content.
Note: If you are buildingthe firstmodel inanenvironment,clickonExplore Templatestogetstarted.
Exercise 1
1. From the leftnavigationexpandAI BuilderandselectBuild. SelectFormProcessing.
2. Name yourmodel. Because youare workingina sharedenvironmentmake sure toinclude your
name as part of the model name. Thiswill make iteasiertofindlater. Clickcreate.
2. 3. Your screenshouldlooklike the followingimage.SelectAdddocuments.
4. Add the documentsfromthe Trainfolder. Youmust have at leastfive documentstotrainthe
model.
5. Confirmthe selectionandclickUpload.
11. 8. You can see the mappedfieldsare recognized.
9. Close the appplayer.
12. 10. Let’stake some of the data fieldsandplace themonthe screenforthe user to review. Add
three labelstothe screen. Drag themto the rightside of the screenandline themuplike inthe
image below. Editthe textto“Invoice Number”,“Due Date” , and “Total”.
11. AddTextinputfieldsforeachrow and place themas below.
13. 12. Nowwe will mapdata fromthe analyzeddocument.Editthe defaultvaluesforeachfieldas
follows:
Invoice Number FormProcessor1.FormContent.Fields.INVOICE
Due Date FormProcessor1.FormContent.Fields.'DueDate'
Total FormProcessor1.FormContent.Fields.Total
13. Play the app and addan invoice tobe analyzed.