question

JonathanMaas-1841 avatar image
0 Votes"
JonathanMaas-1841 asked romungi-MSFT commented

Question regarding training and proper use of composed models

Dear Forum,

I've been steadily reading myself through the documentation for the form recognizer for the past weeks and I think I'm ready to ask questions.

I am currently working with a type of document that consists of a document header, a main part containing a table and a footer. In the table there are 2 possible variations which shift the layout a little. As far as I understand it, this means I am having a usecase for a composed custom template model. One model each for the different table variations with about 5-15 (minimum) training docs each, composed together. Did I get that right so far?

My real question would be: How to go about training those 2 models within one project? As far as I know I can only provide a connection to one storage container, so I can only have the training data for one of the table variations in my blob storage and need to clean it out whenever I switch between variation submodels for retraining. This sounds quite tedious and I was wondering if there are other options like keeping the variation submodels in different projects for training and exporting them into a third one where they will be composed and used?
Is it even possible to use models saved in different projects using the form recognizer studio?

Or am I thinking completely wrong? How would one go about handling a composed model whose sub-models require semi regular retraining?


Apologies in advance for any ignorance on my part as I've just started learning to work with azure.
Thanks a lot for any and all help!

azure-form-recognizer
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@JonathanMaas-1841 Did the below clarification help to answer your question?

0 Votes 0 ·

1 Answer

romungi-MSFT avatar image
0 Votes"
romungi-MSFT answered

@JonathanMaas-1841 For the first question, Yes, you need to create a custom template type model by training two different custom models and composing them under a single compose model id.

For the second question, Yes, you need to use two different projects if you are planning to use custom template model for training since you need support for table extraction. Each project can be used with different containers or a single container with different folder paths when you configure your project. You need to just upload the different training documents in different folders under your container and train the projects. As long as you use the same form recognizer resource in different projects the models tab should list all the models available under the resource from different projects and you can select and hit compose button to create a single compose model id.

I hope this helps!!


If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.