Skip to content

Commit 0fbb7b2

Browse files
♻️ update CLI syntax & files layout (#224)
1 parent f96f5c9 commit 0fbb7b2

18 files changed

+586
-238
lines changed

docs/expense_receipts_v5.md

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ The `Taxes` field represents a List of `TaxField` objects. As it is the represen
255255
Fields which are specific to this product; they are not used in any other product.
256256

257257
### Line Items Field
258-
List of line item details.
258+
List of all line items on the receipt.
259259

260260
A `ReceiptV5LineItem` implements the following attributes:
261261

@@ -268,17 +268,17 @@ A `ReceiptV5LineItem` implements the following attributes:
268268
The following fields are extracted for Receipt V5:
269269

270270
## Purchase Category
271-
**category**: The purchase category among predefined classes.
271+
**category**: The purchase category of the receipt.
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
```java
284284
System.out.println(result.getDocument().getInference().getPrediction().getCategory().value);
@@ -292,18 +292,18 @@ System.out.println(result.getDocument().getInference().getPrediction().getDate()
292292
```
293293

294294
## Document Type
295-
**documentType**: One of: 'CREDIT CARD RECEIPT', 'EXPENSE RECEIPT'.
295+
**documentType**: The type of receipt: EXPENSE RECEIPT or CREDIT CARD RECEIPT.
296296

297297
#### Possible values include:
298-
- expense_receipt
299-
- credit_card_receipt
298+
- 'EXPENSE RECEIPT'
299+
- 'CREDIT CARD RECEIPT'
300300

301301
```java
302302
System.out.println(result.getDocument().getInference().getPrediction().getDocumentType().value);
303303
```
304304

305305
## Line Items
306-
**lineItems**(List<[ReceiptV5LineItem](#line-items-field)>): List of line item details.
306+
**lineItems**(List<[ReceiptV5LineItem](#line-items-field)>): List of all line items on the receipt.
307307

308308
```java
309309
for (lineItemsElem : result.getDocument().getInference().getPrediction().getLineItems())
@@ -313,7 +313,7 @@ for (lineItemsElem : result.getDocument().getInference().getPrediction().getLine
313313
```
314314

315315
## Expense Locale
316-
**locale**: The locale detected on the document.
316+
**locale**: The locale of the document.
317317

318318
```java
319319
System.out.println(result.getDocument().getInference().getPrediction().getLocale().value);
@@ -327,14 +327,15 @@ System.out.println(result.getDocument().getInference().getPrediction().getReceip
327327
```
328328

329329
## Purchase Subcategory
330-
**subcategory**: The purchase subcategory among predefined classes for transport and food.
330+
**subcategory**: The purchase subcategory of the receipt for transport and food.
331331

332332
#### Possible values include:
333-
- plane
334-
- taxi
335-
- train
336-
- restaurant
337-
- shopping
333+
- 'plane'
334+
- 'taxi'
335+
- 'train'
336+
- 'restaurant'
337+
- 'shopping'
338+
- null
338339

339340
```java
340341
System.out.println(result.getDocument().getInference().getPrediction().getSubcategory().value);
@@ -348,7 +349,7 @@ System.out.println(result.getDocument().getInference().getPrediction().getSuppli
348349
```
349350

350351
## Supplier Company Registrations
351-
**supplierCompanyRegistrations**: List of company registrations associated to the supplier.
352+
**supplierCompanyRegistrations**: List of company registration numbers associated to the supplier.
352353

353354
```java
354355
for (supplierCompanyRegistrationsElem : result.getDocument().getInference().getPrediction().getSupplierCompanyRegistrations())
@@ -372,7 +373,7 @@ System.out.println(result.getDocument().getInference().getPrediction().getSuppli
372373
```
373374

374375
## Taxes
375-
**taxes**: List of tax lines information.
376+
**taxes**: The list of taxes present on the receipt.
376377

377378
```java
378379
for (taxesElem : result.getDocument().getInference().getPrediction().getTaxes())
@@ -410,7 +411,7 @@ System.out.println(result.getDocument().getInference().getPrediction().getTotalN
410411
```
411412

412413
## Total Tax
413-
**totalTax**: The total amount of taxes.
414+
**totalTax**: The sum of all taxes.
414415

415416
```java
416417
System.out.println(result.getDocument().getInference().getPrediction().getTotalTax().value);

docs/financial_document_v1.md

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ The `Taxes` field represents a List of `TaxField` objects. As it is the represen
291291
Fields which are specific to this product; they are not used in any other product.
292292

293293
### Line Items Field
294-
List of line item details.
294+
List of line item present on the document.
295295

296296
A `FinancialDocumentV1LineItem` implements the following attributes:
297297

@@ -315,17 +315,17 @@ System.out.println(result.getDocument().getInference().getPrediction().getBillin
315315
```
316316

317317
## Purchase Category
318-
**category**: The purchase category among predefined classes.
318+
**category**: The purchase category, only for receipts.
319319

320320
#### Possible values include:
321-
- toll
322-
- food
323-
- parking
324-
- transport
325-
- accommodation
326-
- gasoline
327-
- telecom
328-
- miscellaneous
321+
- 'toll'
322+
- 'food'
323+
- 'parking'
324+
- 'transport'
325+
- 'accommodation'
326+
- 'gasoline'
327+
- 'telecom'
328+
- 'miscellaneous'
329329

330330
```java
331331
System.out.println(result.getDocument().getInference().getPrediction().getCategory().value);
@@ -339,7 +339,7 @@ System.out.println(result.getDocument().getInference().getPrediction().getCustom
339339
```
340340

341341
## Customer Company Registrations
342-
**customerCompanyRegistrations**: List of company registrations associated to the customer.
342+
**customerCompanyRegistrations**: List of company registration numbers associated to the customer.
343343

344344
```java
345345
for (customerCompanyRegistrationsElem : result.getDocument().getInference().getPrediction().getCustomerCompanyRegistrations())
@@ -370,20 +370,20 @@ System.out.println(result.getDocument().getInference().getPrediction().getDate()
370370
```
371371

372372
## Document Number
373-
**documentNumber**: The document number or identifier.
373+
**documentNumber**: The document number or identifier (invoice number or receipt number).
374374

375375
```java
376376
System.out.println(result.getDocument().getInference().getPrediction().getDocumentNumber().value);
377377
```
378378

379379
## Document Type
380-
**documentType**: One of: 'INVOICE', 'CREDIT NOTE', 'CREDIT CARD RECEIPT', 'EXPENSE RECEIPT'.
380+
**documentType**: 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.
381381

382382
#### Possible values include:
383-
- INVOICE
384-
- CREDIT NOTE
385-
- CREDIT CARD RECEIPT
386-
- EXPENSE RECEIPT
383+
- 'INVOICE'
384+
- 'CREDIT NOTE'
385+
- 'CREDIT CARD RECEIPT'
386+
- 'EXPENSE RECEIPT'
387387

388388
```java
389389
System.out.println(result.getDocument().getInference().getPrediction().getDocumentType().value);
@@ -404,7 +404,7 @@ System.out.println(result.getDocument().getInference().getPrediction().getInvoic
404404
```
405405

406406
## Line Items
407-
**lineItems**(List<[FinancialDocumentV1LineItem](#line-items-field)>): List of line item details.
407+
**lineItems**(List<[FinancialDocumentV1LineItem](#line-items-field)>): List of line item present on the document.
408408

409409
```java
410410
for (lineItemsElem : result.getDocument().getInference().getPrediction().getLineItems())
@@ -414,7 +414,7 @@ for (lineItemsElem : result.getDocument().getInference().getPrediction().getLine
414414
```
415415

416416
## Locale
417-
**locale**: The locale detected on the document.
417+
**locale**: The locale of the document.
418418

419419
```java
420420
System.out.println(result.getDocument().getInference().getPrediction().getLocale().value);
@@ -428,7 +428,7 @@ System.out.println(result.getDocument().getInference().getPrediction().getPaymen
428428
```
429429

430430
## Purchase Order Number
431-
**poNumber**: The purchase order number.
431+
**poNumber**: The purchase order number, only if the document is an invoice.
432432

433433
```java
434434
System.out.println(result.getDocument().getInference().getPrediction().getPoNumber().value);
@@ -442,7 +442,7 @@ System.out.println(result.getDocument().getInference().getPrediction().getReceip
442442
```
443443

444444
## Reference Numbers
445-
**referenceNumbers**: List of Reference numbers, including PO number.
445+
**referenceNumbers**: List of Reference numbers, including PO number, only if the document is an invoice.
446446

447447
```java
448448
for (referenceNumbersElem : result.getDocument().getInference().getPrediction().getReferenceNumbers())
@@ -459,14 +459,15 @@ System.out.println(result.getDocument().getInference().getPrediction().getShippi
459459
```
460460

461461
## Purchase Subcategory
462-
**subcategory**: The purchase subcategory among predefined classes for transport and food.
462+
**subcategory**: The purchase subcategory for transport and food, only for receipts.
463463

464464
#### Possible values include:
465-
- plane
466-
- taxi
467-
- train
468-
- restaurant
469-
- shopping
465+
- 'plane'
466+
- 'taxi'
467+
- 'train'
468+
- 'restaurant'
469+
- 'shopping'
470+
- null
470471

471472
```java
472473
System.out.println(result.getDocument().getInference().getPrediction().getSubcategory().value);
@@ -480,7 +481,7 @@ System.out.println(result.getDocument().getInference().getPrediction().getSuppli
480481
```
481482

482483
## Supplier Company Registrations
483-
**supplierCompanyRegistrations**: List of company registrations associated to the supplier.
484+
**supplierCompanyRegistrations**: List of company registration numbers associated to the supplier.
484485

485486
```java
486487
for (supplierCompanyRegistrationsElem : result.getDocument().getInference().getPrediction().getSupplierCompanyRegistrations())
@@ -504,7 +505,7 @@ System.out.println(result.getDocument().getInference().getPrediction().getSuppli
504505
```
505506

506507
## Supplier Payment Details
507-
**supplierPaymentDetails**: List of payment details associated to the supplier.
508+
**supplierPaymentDetails**: List of payment details associated to the supplier (only for invoices).
508509

509510
```java
510511
for (supplierPaymentDetailsElem : result.getDocument().getInference().getPrediction().getSupplierPaymentDetails())
@@ -531,7 +532,7 @@ System.out.println(result.getDocument().getInference().getPrediction().getSuppli
531532
```
532533

533534
## Taxes
534-
**taxes**: List of tax lines information.
535+
**taxes**: List of all taxes on the document.
535536

536537
```java
537538
for (taxesElem : result.getDocument().getInference().getPrediction().getTaxes())
@@ -541,7 +542,7 @@ for (taxesElem : result.getDocument().getInference().getPrediction().getTaxes())
541542
```
542543

543544
## Purchase Time
544-
**time**: The time the purchase was made.
545+
**time**: The time the purchase was made (only for receipts).
545546

546547
```java
547548
System.out.println(result.getDocument().getInference().getPrediction().getTime().value);
@@ -569,7 +570,7 @@ System.out.println(result.getDocument().getInference().getPrediction().getTotalN
569570
```
570571

571572
## Total Tax
572-
**totalTax**: The total amount of taxes.
573+
**totalTax**: The sum of all taxes present on the document.
573574

574575
```java
575576
System.out.println(result.getDocument().getInference().getPrediction().getTotalTax().value);

docs/idcard_fr_v2.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ System.out.println(result.getDocument().getInference().getPrediction().getDocume
200200
[📄](#page-level-fields "This field is only present on individual pages.")**documentSide**: The sides of the document which are visible.
201201

202202
#### Possible values include:
203-
- RECTO
204-
- VERSO
205-
- RECTO & VERSO
203+
- 'RECTO'
204+
- 'VERSO'
205+
- 'RECTO & VERSO'
206206

207207
```java
208208
for (ClassificationField documentSideElem : result.getDocument().getInference().getPrediction().getDocumentSide())
@@ -216,8 +216,8 @@ for (ClassificationField documentSideElem : result.getDocument().getInference().
216216
[📄](#page-level-fields "This field is only present on individual pages.")**documentType**: The document type or format.
217217

218218
#### Possible values include:
219-
- NEW
220-
- OLD
219+
- 'NEW'
220+
- 'OLD'
221221

222222
```java
223223
for (ClassificationField documentTypeElem : result.getDocument().getInference().getPrediction().getDocumentType())

docs/ind_passport_v1.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ System.out.println(result.getDocument().getInference().getPrediction().getFileNu
194194
**gender**: The gender of the passport holder.
195195

196196
#### Possible values include:
197-
- M
198-
- F
197+
- 'M'
198+
- 'F'
199199

200200
```java
201201
System.out.println(result.getDocument().getInference().getPrediction().getGender().value);
@@ -289,8 +289,8 @@ System.out.println(result.getDocument().getInference().getPrediction().getOldPas
289289
**pageNumber**: The page number of the passport document.
290290

291291
#### Possible values include:
292-
- 1
293-
- 2
292+
- '1'
293+
- '2'
294294

295295
```java
296296
System.out.println(result.getDocument().getInference().getPrediction().getPageNumber().value);

docs/international_id_v2.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ System.out.println(result.getDocument().getInference().getPrediction().getDocume
168168
**documentType**: The type of personal identification document.
169169

170170
#### Possible values include:
171-
- IDENTIFICATION_CARD
172-
- PASSPORT
173-
- DRIVER_LICENSE
174-
- VISA
175-
- RESIDENCY_CARD
176-
- VOTER_REGISTRATION
171+
- 'IDENTIFICATION_CARD'
172+
- 'PASSPORT'
173+
- 'DRIVER_LICENSE'
174+
- 'VISA'
175+
- 'RESIDENCY_CARD'
176+
- 'VOTER_REGISTRATION'
177177

178178
```java
179179
System.out.println(result.getDocument().getInference().getPrediction().getDocumentType().value);

docs/invoice_splitter_v1.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -65,25 +65,19 @@ Document
6565
6666
Inference
6767
#########
68-
:Product: mindee/invoice_splitter v1.1
68+
:Product: mindee/invoice_splitter v1.2
6969
:Rotation applied: No
7070
7171
Prediction
7272
==========
7373
:Invoice Page Groups:
74-
:Page indexes: 0
75-
:Page indexes: 1
76-
77-
Page Predictions
78-
================
79-
80-
Page 0
81-
------
82-
:Invoice Page Groups:
83-
84-
Page 1
85-
------
86-
:Invoice Page Groups:
74+
+--------------------------------------------------------------------------+
75+
| Page Indexes |
76+
+==========================================================================+
77+
| 0 |
78+
+--------------------------------------------------------------------------+
79+
| 1 |
80+
+--------------------------------------------------------------------------+
8781
```
8882

8983
# Field Types

0 commit comments

Comments
 (0)