Skip to content

Commit bcb6096

Browse files
committed
fixed the typo error for issue GoogleCloudPlatform#11203,then found more error appears
1 parent 49a7ce7 commit bcb6096

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

documentai/snippets/handle_response_sample_v1beta3.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def process_document_summarizer_sample(
5151
documentai.DocumentSchema.EntityType.Property(
5252
name="summary",
5353
value_type="string",
54-
OccurenceType=documentai.DocumentSchema.EntityType.Property.OccurenceType.REQUIRED_ONCE,
54+
occurrence_type=documentai.DocumentSchema.EntityType.Property.OccurrenceType.REQUIRED_ONCE,
5555
property_metadata=documentai.PropertyMetadata(
5656
field_extraction_metadata=documentai.FieldExtractionMetadata(
5757
summary_options=summary_options
@@ -110,17 +110,17 @@ def process_document_custom_extractor_sample(
110110
documentai.DocumentSchema.EntityType.Property(
111111
name="invoice_id",
112112
value_type="string",
113-
OccurenceType=documentai.DocumentSchema.EntityType.Property.OccurenceType.REQUIRED_ONCE,
113+
occurrence_type=documentai.DocumentSchema.EntityType.Property.OccurrenceType.REQUIRED_ONCE,
114114
),
115115
documentai.DocumentSchema.EntityType.Property(
116116
name="notes",
117117
value_type="string",
118-
OccurenceType=documentai.DocumentSchema.EntityType.Property.OccurenceType.REQUIRED_ONCE,
118+
occurrence_type=documentai.DocumentSchema.EntityType.Property.OccurrenceType.REQUIRED_ONCE,
119119
),
120120
documentai.DocumentSchema.EntityType.Property(
121121
name="terms",
122122
value_type="string",
123-
OccurenceType=documentai.DocumentSchema.EntityType.Property.OccurenceType.REQUIRED_ONCE,
123+
occurrence_type=documentai.DocumentSchema.EntityType.Property.OccurrenceType.REQUIRED_ONCE,
124124
),
125125
]
126126
# Optional: For Generative AI processors, request different fields than the

0 commit comments

Comments
 (0)