Open NielsRogge opened 2 years ago
I tried to add the Average Normalized Levenshtein Similarity (ANLS), but this is my first contribution to open source so please tell me if there is anything I can correct. Thanks!
I've corrected the Flake8 errors. Please let me know if I should look into anything else for this issue.
Cc @lvwerra would it be possible to review this?
Feel free to assign someone else in case you don't have the bandwidth
Document visual question answering (DocVQA) models, like LayoutLM and Donut, are evaluated using the Average Normalized Levenshtein Similarity metric (ANLS for short).
Would be very useful for the community to have this metric in the evaluate library.
The metric was introduced here for DocVQA: https://rrc.cvc.uab.es/?ch=17&com=tasks.