question

VittorioTison-1960 avatar image
0 Votes"
VittorioTison-1960 asked VittorioTison-1960 answered

Labels file is invalid for the following reason(s): .... has labels with undefined subfields

Hi all, I am updating my custom form recognizer model to take advantage of the table labels.
It's a tax form, that has some sections that can be either filled or not, and some columns may be filled and others not.
I am getting the following error on basically all the training files:

Labels file is invalid for the following reason(s): .... has labels with undefined subfields

Do you have any hint?

Thank you and best regards,

Vittorio

azure-form-recognizer
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.

GiftA-MSFT avatar image
0 Votes"
GiftA-MSFT answered GiftA-MSFT converted comment to answer

Hi, thanks for reaching out. Can you confirm if you're using Form Recognizer v2.1? In addition to training fixed or dynamic tables, this version supports empty-value labeling. If some documents in your training set do not have values for certain fields, you can label empty values and regions so that your model knows to extract values properly from analyzed documents. Hope this helps!


· 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.

Hello @GiftA-MSFT
thank you for your feedback.

Maybe indeed it's because i am using 2.1-preview3. I will migrate it and have a look!

Thank you!

Vittorio

0 Votes 0 ·
VittorioTison-1960 avatar image
1 Vote"
VittorioTison-1960 answered

Hello again @GiftA-MSFT ,
it gave me again the same error.
Moved from -preview to -2.1.

At the moment i have resolved the issue simply removing the column from my table.

Best regards,

Vittorio

· 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.

Glad you were able to resolve the issue and thanks for sharing the solution :).

0 Votes 0 ·