Repository navigation
Conversation
Closes microsoft#1536 DocumentAnalysisFeature.FORMULAS is unconditionally included in the analysis features, which degrades recognition accuracy for documents without mathematical formulas. Users had no way to disable it. Remove FORMULAS from the default feature list. Users who need formula extraction can still enable it by passing features via kwargs.
Member
|
Thanks, hanhan761, for opening this PR and proposing a fix for the formula extraction behavior. #1913 has now merged and resolves the concern from #1536. The final implementation goes further by enabling no paid analysis add-ons by default; formula extraction and other add-ons now require explicit opt-in. Closing this PR as superseded by #1913. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes
DocumentAnalysisFeature.FORMULASfrom the default analysis features inDocumentIntelligenceConverter. Formula extraction degrades recognition accuracy for documents without mathematical formulas and was previously impossible to disable.Issue
Closes #1536
Change
Deleted one line in
_doc_intel_converter.py:232:return [ - DocumentAnalysisFeature.FORMULAS, DocumentAnalysisFeature.OCR_HIGH_RESOLUTION, DocumentAnalysisFeature.STYLE_FONT, ]Edge Cases Not Covered
featureslist via kwargs toconvert()— but that path is not currently exposed as a constructor parameter. This fix only changes the default behavior.Verification
Tested with mocked Azure dependencies (the converter requires
azure-ai-documentintelligence):