I have the following workflow:
So I want to use the invoice ML for when the classification is invoice and when the classificiation is receipt I want to use the receipt package.
However, when I use a ML in the other else statement, the following error is shown:
“index is outside of bounds array”… I think because the document is unclassified…
What condition should I use to avoid this error and use a different ML method in the else statement?
How would you cope with this when trying to classify/extract EACH incoming document?