Skip to content

Commit b290728

Browse files
author
Bob Strahan
committed
Remove confidence field from AppSync page and section data structures
1 parent c3bd013 commit b290728

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/idp_common_pkg/idp_common/appsync/service.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,6 @@ def _document_to_update_input(self, document: Document) -> Dict[str, Any]:
118118
"ImageUri": page.image_uri or "",
119119
"TextUri": page.parsed_text_uri or page.raw_text_uri or "",
120120
"TextConfidenceUri": page.text_confidence_uri or "",
121-
# Convert confidence to float if it's a Decimal
122-
"Confidence": float(page.confidence)
123-
if page.confidence is not None
124-
else 0.0,
125121
}
126122
pages_data.append(page_data)
127123

@@ -147,10 +143,6 @@ def _document_to_update_input(self, document: Document) -> Dict[str, Any]:
147143
"PageIds": page_ids,
148144
"Class": section.classification,
149145
"OutputJSONUri": section.extraction_result_uri or "",
150-
# Convert confidence to float if it's a Decimal
151-
"Confidence": float(section.confidence)
152-
if section.confidence is not None
153-
else 1.0,
154146
}
155147

156148
# Convert confidence threshold alerts

0 commit comments

Comments
 (0)