Skip to content

Commit ea1af30

Browse files
♻️ typos & fixes (#205)
1 parent 4ae4f77 commit ea1af30

File tree

14 files changed

+36
-30
lines changed

14 files changed

+36
-30
lines changed

docs/extras/guide/bank_check_v1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ print(result.document.inference.prediction.check_number.value)
137137
[📄](#page-level-fields "This field is only present on individual pages.")**check_position** ([PositionField](#positionfield)): The position of the check on the document.
138138

139139
```py
140-
for check_position_elem of result.document.check_position:
140+
for check_position_elem in result.document.check_position:
141141
print(check_position_elem.polygon)
142142
```
143143

@@ -168,7 +168,7 @@ print(result.document.inference.prediction.routing_number.value)
168168

169169
```py
170170
for page in result.document.inference.pages:
171-
for signatures_positions_elem of page.prediction.signatures_positions):
171+
for signatures_positions_elem in page.prediction.signatures_positions):
172172
print(signatures_positions_elem.polygon)
173173
```
174174

docs/extras/guide/cropper_v1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ The following fields are extracted for Cropper V1:
9191

9292
```py
9393
for page in result.document.inference.pages:
94-
for cropping_elem of page.prediction.cropping):
94+
for cropping_elem in page.prediction.cropping):
9595
print(cropping_elem.polygon)
9696
```
9797

docs/extras/guide/idcard_fr_v2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,15 @@ print(result.document.inference.prediction.document_number.value)
171171
[📄](#page-level-fields "This field is only present on individual pages.")**document_side** ([ClassificationField](#classificationfield)): The sides of the document which are visible.
172172

173173
```py
174-
for document_side_elem of result.document.document_side:
174+
for document_side_elem in result.document.document_side:
175175
print(document_side_elem.value)
176176
```
177177

178178
## Document Type
179179
[📄](#page-level-fields "This field is only present on individual pages.")**document_type** ([ClassificationField](#classificationfield)): The document type or format.
180180

181181
```py
182-
for document_type_elem of result.document.document_type:
182+
for document_type_elem in result.document.document_type:
183183
print(document_type_elem.value)
184184
```
185185

docs/extras/guide/invoice_splitter_v1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ The following fields are extracted for Invoice Splitter V1:
8484
**invoice_page_groups** ([InvoiceSplitterV1PageGroup](#invoice-splitter-v1-page-group)\[]): List of page indexes that belong to the same invoice in the PDF.
8585

8686
```py
87-
for invoice_page_groups_elem of page.prediction.invoice_page_groups):
87+
for invoice_page_groups_elem in page.prediction.invoice_page_groups):
8888
print(invoice_page_groups_elem.polygon)
8989
```
9090

docs/extras/guide/us_driver_license_v1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ print(result.document.inference.prediction.last_name.value)
223223
[📄](#page-level-fields "This field is only present on individual pages.")**photo** ([PositionField](#positionfield)): Has a photo of the US driver license holder
224224

225225
```py
226-
for photo_elem of result.document.photo:
226+
for photo_elem in result.document.photo:
227227
print(photo_elem.polygon)
228228
```
229229

@@ -245,7 +245,7 @@ print(result.document.inference.prediction.sex.value)
245245
[📄](#page-level-fields "This field is only present on individual pages.")**signature** ([PositionField](#positionfield)): Has a signature of the US driver license holder
246246

247247
```py
248-
for signature_elem of result.document.signature:
248+
for signature_elem in result.document.signature:
249249
print(signature_elem.polygon)
250250
```
251251

docs/extras/guide/us_w9_v1.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -103,95 +103,95 @@ The following fields are extracted for W9 V1:
103103
[📄](#page-level-fields "This field is only present on individual pages.")**address** ([StringField](#stringfield)): The street address (number, street, and apt. or suite no.) of the applicant.
104104

105105
```py
106-
for address_elem of result.document.address:
106+
for address_elem in result.document.address:
107107
print(address_elem.value)
108108
```
109109

110110
## Business Name
111111
[📄](#page-level-fields "This field is only present on individual pages.")**business_name** ([StringField](#stringfield)): The business name or disregarded entity name, if different from Name.
112112

113113
```py
114-
for business_name_elem of result.document.business_name:
114+
for business_name_elem in result.document.business_name:
115115
print(business_name_elem.value)
116116
```
117117

118118
## City State Zip
119119
[📄](#page-level-fields "This field is only present on individual pages.")**city_state_zip** ([StringField](#stringfield)): The city, state, and ZIP code of the applicant.
120120

121121
```py
122-
for city_state_zip_elem of result.document.city_state_zip:
122+
for city_state_zip_elem in result.document.city_state_zip:
123123
print(city_state_zip_elem.value)
124124
```
125125

126126
## EIN
127127
[📄](#page-level-fields "This field is only present on individual pages.")**ein** ([StringField](#stringfield)): The employer identification number.
128128

129129
```py
130-
for ein_elem of result.document.ein:
130+
for ein_elem in result.document.ein:
131131
print(ein_elem.value)
132132
```
133133

134134
## Name
135135
[📄](#page-level-fields "This field is only present on individual pages.")**name** ([StringField](#stringfield)): Name as shown on the applicant's income tax return.
136136

137137
```py
138-
for name_elem of result.document.name:
138+
for name_elem in result.document.name:
139139
print(name_elem.value)
140140
```
141141

142142
## Signature Date Position
143143
[📄](#page-level-fields "This field is only present on individual pages.")**signature_date_position** ([PositionField](#positionfield)): Position of the signature date on the document.
144144

145145
```py
146-
for signature_date_position_elem of result.document.signature_date_position:
146+
for signature_date_position_elem in result.document.signature_date_position:
147147
print(signature_date_position_elem.polygon)
148148
```
149149

150150
## Signature Position
151151
[📄](#page-level-fields "This field is only present on individual pages.")**signature_position** ([PositionField](#positionfield)): Position of the signature on the document.
152152

153153
```py
154-
for signature_position_elem of result.document.signature_position:
154+
for signature_position_elem in result.document.signature_position:
155155
print(signature_position_elem.polygon)
156156
```
157157

158158
## SSN
159159
[📄](#page-level-fields "This field is only present on individual pages.")**ssn** ([StringField](#stringfield)): The applicant's social security number.
160160

161161
```py
162-
for ssn_elem of result.document.ssn:
162+
for ssn_elem in result.document.ssn:
163163
print(ssn_elem.value)
164164
```
165165

166166
## Tax Classification
167167
[📄](#page-level-fields "This field is only present on individual pages.")**tax_classification** ([StringField](#stringfield)): The federal tax classification, which can vary depending on the revision date.
168168

169169
```py
170-
for tax_classification_elem of result.document.tax_classification:
170+
for tax_classification_elem in result.document.tax_classification:
171171
print(tax_classification_elem.value)
172172
```
173173

174174
## Tax Classification LLC
175175
[📄](#page-level-fields "This field is only present on individual pages.")**tax_classification_llc** ([StringField](#stringfield)): Depending on revision year, among S, C, P or D for Limited Liability Company Classification.
176176

177177
```py
178-
for tax_classification_llc_elem of result.document.tax_classification_llc:
178+
for tax_classification_llc_elem in result.document.tax_classification_llc:
179179
print(tax_classification_llc_elem.value)
180180
```
181181

182182
## Tax Classification Other Details
183183
[📄](#page-level-fields "This field is only present on individual pages.")**tax_classification_other_details** ([StringField](#stringfield)): Tax Classification Other Details.
184184

185185
```py
186-
for tax_classification_other_details_elem of result.document.tax_classification_other_details:
186+
for tax_classification_other_details_elem in result.document.tax_classification_other_details:
187187
print(tax_classification_other_details_elem.value)
188188
```
189189

190190
## W9 Revision Date
191191
[📄](#page-level-fields "This field is only present on individual pages.")**w9_revision_date** ([StringField](#stringfield)): The Revision month and year of the W9 form.
192192

193193
```py
194-
for w9_revision_date_elem of result.document.w9_revision_date:
194+
for w9_revision_date_elem in result.document.w9_revision_date:
195195
print(w9_revision_date_elem.value)
196196
```
197197

mindee/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def enqueue(
127127
endpoint: Optional[Endpoint] = None,
128128
) -> AsyncPredictResponse:
129129
"""
130-
Enqueueing to an async endpoint.
130+
Enqueues a document to an asynchronous endpoint.
131131
132132
:param product_class: The document class to use.
133133
The response object will be instantiated based on this parameter.
@@ -216,7 +216,7 @@ def enqueue_and_parse(
216216
max_retries: int = 10,
217217
) -> AsyncPredictResponse:
218218
"""
219-
Enqueueing to an async endpoint.
219+
Enqueues to an asynchronous endpoint and automatically polls for a response.
220220
221221
:param product_class: The document class to use.
222222
The response object will be instantiated based on this parameter.

mindee/parsing/common/extras/cropper_extra.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77
class CropperExtra:
88
"""Contains information on the cropping of a prediction."""
99

10+
croppings: List[PositionField]
11+
"""List of all cropping coordinates."""
12+
1013
def __init__(
1114
self, raw_prediction: StringDict, page_id: Optional[int] = None
1215
) -> None:
13-
super().__init__()
1416
croppings: List[PositionField] = []
1517
if "cropping" in raw_prediction and raw_prediction["cropping"]:
1618
for cropping in raw_prediction["cropping"]:

mindee/parsing/custom/line_items.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,5 +172,4 @@ def get_line_items(
172172
<= height_line_tolerance
173173
):
174174
current_line.update_field(field_name, list_field_value)
175-
176175
return lines_prepared

mindee/product/invoice/invoice_v4_line_item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def to_table_line(self) -> str:
7474
out_str += f"{printable['tax_amount']:<10} | "
7575
out_str += f"{printable['tax_rate']:<12} | "
7676
out_str += f"{printable['total_amount']:<12} | "
77-
out_str += f"{printable['unit_price']:<10} | "
77+
out_str += f"{printable['unit_price']:<10} |"
7878
return clean_out_string(out_str)
7979

8080
def __str__(self) -> str:

0 commit comments

Comments
 (0)