Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bcb6096

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

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎documentai/snippets/handle_response_sample_v1beta3.py

Copy file name to clipboardExpand all lines: documentai/snippets/handle_response_sample_v1beta3.py
+4-4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.