Skip to content

Commit 252ea07

Browse files
📝 update documentation & description on some products (#305)
1 parent 6d96faa commit 252ea07

15 files changed

+146
-147
lines changed

docs/extras/guide/expense_receipts_v5.md

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ The `Taxes` field represents a list-like collection of `TaxField` objects. As it
200200
Fields which are specific to this product; they are not used in any other product.
201201

202202
### Line Items Field
203-
List of line item details.
203+
List of all line items on the receipt.
204204

205205
A `ReceiptV5LineItem` implements the following attributes:
206206

@@ -213,17 +213,17 @@ A `ReceiptV5LineItem` implements the following attributes:
213213
The following fields are extracted for Receipt V5:
214214

215215
## Purchase Category
216-
**category** ([ClassificationField](#classificationfield)): The purchase category among predefined classes.
216+
**category** ([ClassificationField](#classificationfield)): The purchase category of the receipt.
217217

218218
#### Possible values include:
219-
- toll
220-
- food
221-
- parking
222-
- transport
223-
- accommodation
224-
- gasoline
225-
- telecom
226-
- miscellaneous
219+
- 'toll'
220+
- 'food'
221+
- 'parking'
222+
- 'transport'
223+
- 'accommodation'
224+
- 'gasoline'
225+
- 'telecom'
226+
- 'miscellaneous'
227227

228228
```py
229229
print(result.document.inference.prediction.category.value)
@@ -237,26 +237,26 @@ print(result.document.inference.prediction.date.value)
237237
```
238238

239239
## Document Type
240-
**document_type** ([ClassificationField](#classificationfield)): One of: 'CREDIT CARD RECEIPT', 'EXPENSE RECEIPT'.
240+
**document_type** ([ClassificationField](#classificationfield)): The type of receipt: EXPENSE RECEIPT or CREDIT CARD RECEIPT.
241241

242242
#### Possible values include:
243-
- expense_receipt
244-
- credit_card_receipt
243+
- 'EXPENSE RECEIPT'
244+
- 'CREDIT CARD RECEIPT'
245245

246246
```py
247247
print(result.document.inference.prediction.document_type.value)
248248
```
249249

250250
## Line Items
251-
**line_items** (List[[ReceiptV5LineItem](#line-items-field)]): List of line item details.
251+
**line_items** (List[[ReceiptV5LineItem](#line-items-field)]): List of all line items on the receipt.
252252

253253
```py
254254
for line_items_elem in result.document.inference.prediction.line_items:
255255
print(line_items_elem)
256256
```
257257

258258
## Expense Locale
259-
**locale** ([LocaleField](#localefield)): The locale detected on the document.
259+
**locale** ([LocaleField](#localefield)): The locale of the document.
260260

261261
```py
262262
print(result.document.inference.prediction.locale.value)
@@ -270,14 +270,15 @@ print(result.document.inference.prediction.receipt_number.value)
270270
```
271271

272272
## Purchase Subcategory
273-
**subcategory** ([ClassificationField](#classificationfield)): The purchase subcategory among predefined classes for transport and food.
273+
**subcategory** ([ClassificationField](#classificationfield)): The purchase subcategory of the receipt for transport and food.
274274

275275
#### Possible values include:
276-
- plane
277-
- taxi
278-
- train
279-
- restaurant
280-
- shopping
276+
- 'plane'
277+
- 'taxi'
278+
- 'train'
279+
- 'restaurant'
280+
- 'shopping'
281+
- None
281282

282283
```py
283284
print(result.document.inference.prediction.subcategory.value)
@@ -291,7 +292,7 @@ print(result.document.inference.prediction.supplier_address.value)
291292
```
292293

293294
## Supplier Company Registrations
294-
**supplier_company_registrations** (List[[CompanyRegistrationField](#companyregistrationfield)]): List of company registrations associated to the supplier.
295+
**supplier_company_registrations** (List[[CompanyRegistrationField](#companyregistrationfield)]): List of company registration numbers associated to the supplier.
295296

296297
```py
297298
for supplier_company_registrations_elem in result.document.inference.prediction.supplier_company_registrations:
@@ -313,7 +314,7 @@ print(result.document.inference.prediction.supplier_phone_number.value)
313314
```
314315

315316
## Taxes
316-
**taxes** (List[[TaxField](#taxes)]): List of tax lines information.
317+
**taxes** (List[[TaxField](#taxes)]): The list of taxes present on the receipt.
317318

318319
```py
319320
for taxes_elem in result.document.inference.prediction.taxes:
@@ -349,7 +350,7 @@ print(result.document.inference.prediction.total_net.value)
349350
```
350351

351352
## Total Tax
352-
**total_tax** ([AmountField](#amountfield)): The total amount of taxes.
353+
**total_tax** ([AmountField](#amountfield)): The sum of all taxes.
353354

354355
```py
355356
print(result.document.inference.prediction.total_tax.value)

docs/extras/guide/financial_document_v1.md

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ The `Taxes` field represents a list-like collection of `TaxField` objects. As it
244244
Fields which are specific to this product; they are not used in any other product.
245245

246246
### Line Items Field
247-
List of line item details.
247+
List of line item present on the document.
248248

249249
A `FinancialDocumentV1LineItem` implements the following attributes:
250250

@@ -268,17 +268,17 @@ print(result.document.inference.prediction.billing_address.value)
268268
```
269269

270270
## Purchase Category
271-
**category** ([ClassificationField](#classificationfield)): The purchase category among predefined classes.
271+
**category** ([ClassificationField](#classificationfield)): The purchase category, only for receipts.
272272

273273
#### Possible values include:
274-
- toll
275-
- food
276-
- parking
277-
- transport
278-
- accommodation
279-
- gasoline
280-
- telecom
281-
- miscellaneous
274+
- 'toll'
275+
- 'food'
276+
- 'parking'
277+
- 'transport'
278+
- 'accommodation'
279+
- 'gasoline'
280+
- 'telecom'
281+
- 'miscellaneous'
282282

283283
```py
284284
print(result.document.inference.prediction.category.value)
@@ -292,7 +292,7 @@ print(result.document.inference.prediction.customer_address.value)
292292
```
293293

294294
## Customer Company Registrations
295-
**customer_company_registrations** (List[[CompanyRegistrationField](#companyregistrationfield)]): List of company registrations associated to the customer.
295+
**customer_company_registrations** (List[[CompanyRegistrationField](#companyregistrationfield)]): List of company registration numbers associated to the customer.
296296

297297
```py
298298
for customer_company_registrations_elem in result.document.inference.prediction.customer_company_registrations:
@@ -321,20 +321,20 @@ print(result.document.inference.prediction.date.value)
321321
```
322322

323323
## Document Number
324-
**document_number** ([StringField](#stringfield)): The document number or identifier.
324+
**document_number** ([StringField](#stringfield)): The document number or identifier (invoice number or receipt number).
325325

326326
```py
327327
print(result.document.inference.prediction.document_number.value)
328328
```
329329

330330
## Document Type
331-
**document_type** ([ClassificationField](#classificationfield)): One of: 'INVOICE', 'CREDIT NOTE', 'CREDIT CARD RECEIPT', 'EXPENSE RECEIPT'.
331+
**document_type** ([ClassificationField](#classificationfield)): The type of the document: INVOICE or CREDIT NOTE if it is an invoice, CREDIT CARD RECEIPT or EXPENSE RECEIPT if it is a receipt.
332332

333333
#### Possible values include:
334-
- INVOICE
335-
- CREDIT NOTE
336-
- CREDIT CARD RECEIPT
337-
- EXPENSE RECEIPT
334+
- 'INVOICE'
335+
- 'CREDIT NOTE'
336+
- 'CREDIT CARD RECEIPT'
337+
- 'EXPENSE RECEIPT'
338338

339339
```py
340340
print(result.document.inference.prediction.document_type.value)
@@ -355,15 +355,15 @@ print(result.document.inference.prediction.invoice_number.value)
355355
```
356356

357357
## Line Items
358-
**line_items** (List[[FinancialDocumentV1LineItem](#line-items-field)]): List of line item details.
358+
**line_items** (List[[FinancialDocumentV1LineItem](#line-items-field)]): List of line item present on the document.
359359

360360
```py
361361
for line_items_elem in result.document.inference.prediction.line_items:
362362
print(line_items_elem)
363363
```
364364

365365
## Locale
366-
**locale** ([LocaleField](#localefield)): The locale detected on the document.
366+
**locale** ([LocaleField](#localefield)): The locale of the document.
367367

368368
```py
369369
print(result.document.inference.prediction.locale.value)
@@ -377,7 +377,7 @@ print(result.document.inference.prediction.payment_date.value)
377377
```
378378

379379
## Purchase Order Number
380-
**po_number** ([StringField](#stringfield)): The purchase order number.
380+
**po_number** ([StringField](#stringfield)): The purchase order number, only if the document is an invoice.
381381

382382
```py
383383
print(result.document.inference.prediction.po_number.value)
@@ -391,7 +391,7 @@ print(result.document.inference.prediction.receipt_number.value)
391391
```
392392

393393
## Reference Numbers
394-
**reference_numbers** (List[[StringField](#stringfield)]): List of Reference numbers, including PO number.
394+
**reference_numbers** (List[[StringField](#stringfield)]): List of Reference numbers, including PO number, only if the document is an invoice.
395395

396396
```py
397397
for reference_numbers_elem in result.document.inference.prediction.reference_numbers:
@@ -406,14 +406,15 @@ print(result.document.inference.prediction.shipping_address.value)
406406
```
407407

408408
## Purchase Subcategory
409-
**subcategory** ([ClassificationField](#classificationfield)): The purchase subcategory among predefined classes for transport and food.
409+
**subcategory** ([ClassificationField](#classificationfield)): The purchase subcategory for transport and food, only for receipts.
410410

411411
#### Possible values include:
412-
- plane
413-
- taxi
414-
- train
415-
- restaurant
416-
- shopping
412+
- 'plane'
413+
- 'taxi'
414+
- 'train'
415+
- 'restaurant'
416+
- 'shopping'
417+
- None
417418

418419
```py
419420
print(result.document.inference.prediction.subcategory.value)
@@ -427,7 +428,7 @@ print(result.document.inference.prediction.supplier_address.value)
427428
```
428429

429430
## Supplier Company Registrations
430-
**supplier_company_registrations** (List[[CompanyRegistrationField](#companyregistrationfield)]): List of company registrations associated to the supplier.
431+
**supplier_company_registrations** (List[[CompanyRegistrationField](#companyregistrationfield)]): List of company registration numbers associated to the supplier.
431432

432433
```py
433434
for supplier_company_registrations_elem in result.document.inference.prediction.supplier_company_registrations:
@@ -449,7 +450,7 @@ print(result.document.inference.prediction.supplier_name.value)
449450
```
450451

451452
## Supplier Payment Details
452-
**supplier_payment_details** (List[[PaymentDetailsField](#paymentdetailsfield)]): List of payment details associated to the supplier.
453+
**supplier_payment_details** (List[[PaymentDetailsField](#paymentdetailsfield)]): List of payment details associated to the supplier (only for invoices).
453454

454455
```py
455456
for supplier_payment_details_elem in result.document.inference.prediction.supplier_payment_details:
@@ -471,15 +472,15 @@ print(result.document.inference.prediction.supplier_website.value)
471472
```
472473

473474
## Taxes
474-
**taxes** (List[[TaxField](#taxes)]): List of tax lines information.
475+
**taxes** (List[[TaxField](#taxes)]): List of all taxes on the document.
475476

476477
```py
477478
for taxes_elem in result.document.inference.prediction.taxes:
478479
print(taxes_elem.polygon)
479480
```
480481

481482
## Purchase Time
482-
**time** ([StringField](#stringfield)): The time the purchase was made.
483+
**time** ([StringField](#stringfield)): The time the purchase was made (only for receipts).
483484

484485
```py
485486
print(result.document.inference.prediction.time.value)
@@ -507,7 +508,7 @@ print(result.document.inference.prediction.total_net.value)
507508
```
508509

509510
## Total Tax
510-
**total_tax** ([AmountField](#amountfield)): The total amount of taxes.
511+
**total_tax** ([AmountField](#amountfield)): The sum of all taxes present on the document.
511512

512513
```py
513514
print(result.document.inference.prediction.total_tax.value)

docs/extras/guide/idcard_fr_v2.md

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

176176
#### Possible values include:
177-
- RECTO
178-
- VERSO
179-
- RECTO & VERSO
177+
- 'RECTO'
178+
- 'VERSO'
179+
- 'RECTO & VERSO'
180180

181181
```py
182182
for document_side_elem in result.document.document_side:
@@ -187,8 +187,8 @@ for document_side_elem in result.document.document_side:
187187
[📄](#page-level-fields "This field is only present on individual pages.")**document_type** ([ClassificationField](#classificationfield)): The document type or format.
188188

189189
#### Possible values include:
190-
- NEW
191-
- OLD
190+
- 'NEW'
191+
- 'OLD'
192192

193193
```py
194194
for document_type_elem in result.document.document_type:

docs/extras/guide/ind_passport_v1.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ print(result.document.inference.prediction.file_number.value)
167167
**gender** ([ClassificationField](#classificationfield)): The gender of the passport holder.
168168

169169
#### Possible values include:
170-
- M
171-
- F
170+
- 'M'
171+
- 'F'
172172

173173
```py
174174
print(result.document.inference.prediction.gender.value)
@@ -262,8 +262,8 @@ print(result.document.inference.prediction.old_passport_place_of_issue.value)
262262
**page_number** ([ClassificationField](#classificationfield)): The page number of the passport document.
263263

264264
#### Possible values include:
265-
- 1
266-
- 2
265+
- '1'
266+
- '2'
267267

268268
```py
269269
print(result.document.inference.prediction.page_number.value)

docs/extras/guide/international_id_v2.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@ print(result.document.inference.prediction.document_number.value)
141141
**document_type** ([ClassificationField](#classificationfield)): The type of personal identification document.
142142

143143
#### Possible values include:
144-
- IDENTIFICATION_CARD
145-
- PASSPORT
146-
- DRIVER_LICENSE
147-
- VISA
148-
- RESIDENCY_CARD
149-
- VOTER_REGISTRATION
144+
- 'IDENTIFICATION_CARD'
145+
- 'PASSPORT'
146+
- 'DRIVER_LICENSE'
147+
- 'VISA'
148+
- 'RESIDENCY_CARD'
149+
- 'VOTER_REGISTRATION'
150150

151151
```py
152152
print(result.document.inference.prediction.document_type.value)

docs/extras/guide/invoice_splitter_v1.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,19 @@ Document
4040
4141
Inference
4242
#########
43-
:Product: mindee/invoice_splitter v1.1
43+
:Product: mindee/invoice_splitter v1.2
4444
:Rotation applied: No
4545
4646
Prediction
4747
==========
4848
:Invoice Page Groups:
49-
:Page indexes: 0
50-
:Page indexes: 1
51-
52-
Page Predictions
53-
================
54-
55-
Page 0
56-
------
57-
:Invoice Page Groups:
58-
59-
Page 1
60-
------
61-
:Invoice Page Groups:
49+
+--------------------------------------------------------------------------+
50+
| Page Indexes |
51+
+==========================================================================+
52+
| 0 |
53+
+--------------------------------------------------------------------------+
54+
| 1 |
55+
+--------------------------------------------------------------------------+
6256
```
6357

6458
# Field Types

0 commit comments

Comments
 (0)