キー値抽出(請求書)
キー値抽出を使用して、請求書の事前定義済キーの値を識別できます。たとえば、請求書に機関名、合計および請求書IDが含まれている場合、Document Understandingはこれらの値を識別し、キーと値のペアとして返すことができます。
サポートされる機能は、次のとおりです。
- 事前定義済のキーと値のペアの値を抽出します
- 境界ポリゴン
- 信頼度スコア
サポートされるフィールドは次のとおりです。
| フィールド | Description |
|---|---|
| CustomerName | 請求済顧客の名前。 |
| CustomerId | 顧客参照識別子。 |
| PurchaseOrder | 購買オーダー番号 |
| InvoiceId | 特定の請求書の識別子です。 |
| InvoiceDate | 請求書の発行日。 |
| DueDate | この請求書の支払期日。 |
| VendorName | ベンダーの名前。 |
| VendorAddress | ベンダーの住所。 |
| VendorAddressRecipient | VendorAddressで参照される名前。 |
| CustomerAddress | 顧客の住所。 |
| CustomerAddressRecipient | CustomerAddressで参照される名前。 |
| BillingAddress | 顧客の明示的な請求先住所。 |
| BillingAddressRecipient | BillingAddressで参照される名前。 |
| ShippingAddress | 顧客の明示的な出荷住所。 |
| ShippingAddressRecipient | ShippingAddressで参照される名前。 |
| PaymentTerm | 請求書の支払条件。 |
| 小計 | この請求書で識別される小計フィールド。 |
| TotalTax | この請求書で識別された合計税額。 |
| InvoiceTotal | 請求書に関連付けられた合計手数料金額。 |
| AmountDue | 研修委託機関の未払額合計。 |
| ServiceAddress | 顧客の明示的なサービス住所またはプロパティ住所。 |
| ServiceAddressRecipient | ServiceAddressで参照される名前。 |
| RemittanceAddress | 顧客の明示的な送金または支払住所。 |
| RemittanceAddressRecipient | RemittanceAddressで参照される名前。 |
| ShippingCost | 請求書に関連付けられた出荷原価または出荷原価および手数料原価の合計。 |
| ServiceStartDate | サービス期間の初日。 |
| ServiceEndDate | サービス期間の終了日。 |
| PreviousUnpaidBalance | 明示的な未払残高。 |
サポートされるライン・アイテムは次のとおりです。
| ライン・アイテム | Description |
|---|---|
| アイテム | その他のすべての明細項目値(つまり、明細項目の明細全体)の連結。 |
| 名前 | 製品またはサービスについてリストされている名前(Tシャツなど)。 |
| 量 | 明細品目の金額。 |
| Description | 請求書明細項目のテキスト摘要。たとえば、男性用レイヨンシャツ、サイズが小、中、大です。 |
| 数量 | この請求書明細項目の数量。 |
| UnitPrice | 請求書で識別されるアイテム当たりの価格。 |
| ProductCode | 明細品目で参照される製品コード、製品番号またはSKU。例: 123456 |
| 単位 | 明細項目の単位(kg、lbなど)。 |
| 税 | 明細品目で明示的に参照される税金。 |
| 日付 | 各明細項目に対応する日付。 |
キー値抽出(請求書)の例
Document Understandingでの請求書からのキー/値抽出の使用例。
- 入力ドキュメント
-
キー値抽出(請求書)入力
APIリクエスト:{ "processorConfig": { "processorType": "GENERAL", "features": [ { "featureType": "KEY_VALUE_EXTRACTION" }, "documentType": "INVOICE" }, "inputLocation": { "sourceType": "OBJECT_STORAGE_LOCATIONS", "objectLocations": [ { "source": "OBJECT_STORAGE", "namespaceName": "", "bucketName": "", "objectName": "" } ] }, "compartmentId": "", "outputLocation": { "namespaceName": "", "bucketName": "", "prefix": "" } } - 出力:
- APIレスポンス:
{ "documentMetadata": { "pageCount": 1, "mimeType": "image/png" }, "pages": [ { "pageNumber": 1, "dimensions": { "width": 1372, "height": 1732, "unit": "PIXEL" }, "documentFields": [ { "fieldType": "KEY_VALUE", "fieldLabel": { "name": "VendorAddress", "confidence": 0.99862003 }, "fieldValue": { "valueType": "STRING", "text": "657 Clifford Street Allentown, PA", "boundingPolygon": { "normalizedVertices": [ { "x": 0.08454810495626822, "y": 0.10219399538106236 }, { "x": 0.21793002915451895, "y": 0.10219399538106236 }, { "x": 0.21793002915451895, "y": 0.13048498845265588 }, { "x": 0.08454810495626822, "y": 0.13048498845265588 } ] }, "wordIndexes": [ 3, 4, 5, 9, 10 ], "value": "657 Clifford Street Allentown, PA" } }, { "fieldType": "LINE_ITEM_GROUP", "fieldLabel": { "name": "Items" }, "fieldValue": { "valueType": "ARRAY", "items": [ { "fieldType": "LINE_ITEM", "fieldValue": { "valueType": "ARRAY", "text": "1 Cable165XZ3654681 12.75 $12.75", "items": [ { "fieldType": "LINE_ITEM_FIELD", "fieldLabel": { "name": "Quantity", "confidence": 0.9989789 }, "fieldValue": { "valueType": "NUMBER", "text": "1", "boundingPolygon": { "normalizedVertices": [ { "x": 0.39941690962099125, "y": 0.5075057736720554 }, { "x": 0.39941690962099125, "y": 0.5184757505773672 }, { "x": 0.24927113702623907, "y": 0.5184757505773672 } ] }, "wordIndexes": [ 68 ], "value": "Cable165XZ3654681" } }, { "fieldType": "LINE_ITEM_FIELD", "fieldLabel": { "name": "UnitPrice", "confidence": 0.9375645 }, "fieldValue": { "valueType": "NUMBER", "text": "12.75", "boundingPolygon": { "normalizedVertices": [ { "x": 0.7594752186588921, "y": 0.50635103926097 }, { "x": 0.8024781341107872, "y": 0.50635103926097 }, { "x": 0.8024781341107872, "y": 0.5196304849884527 }, { "x": 0.7594752186588921, "y": 0.5196304849884527 } ] }, "wordIndexes": [ 69 ], "value": 12.75 } }, ] } } ] } } ] } ], }