I found the problem. I trained the model in studio using api 2023-10-31, but python sdk only use 2023-07-31 by default. There should be an error message, api version doesn't match instead of return random result. disappointed.
azure document intelligence custom text classification classify tiff files returns random result using python sdk
I have manually built a custom document classifier ‘6typesnew’ using document intelligence studio for six types of document of tiff files. I am trying to classify a document 1.tif.
When I classify it manually in document intelligence studio, the result is a col with confidence of 93%, which is correct.
But when I tried to use python sdk to classify this document programmatically, the result is random and is wrong. Can you please help to investigate? I run 3 times with 3 different results.
here is my code:
I also tried this
why is this file classified correctly in studio, but not by python sdk?
can you please help me?