Skip to content

fix include confidence being ignored for empty string - #95

Open
MauroCE wants to merge 1 commit into
fastino-ai:mainfrom
MauroCE:fix-include-confidence-empty-text
Open

fix include confidence being ignored for empty string#95
MauroCE wants to merge 1 commit into
fastino-ai:mainfrom
MauroCE:fix-include-confidence-empty-text

Conversation

@MauroCE

@MauroCE MauroCE commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

When include_confidence=True but the extracted text was an empty string, the and text condition caused the confidence dict to be silently dropped, returning just the empty string instead. Removed and text check in both _format_entity_dict and _format_struct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant