|
| 1 | +--- |
| 2 | +title: Contract data extraction – Document Intelligence |
| 3 | +titleSuffix: Azure AI services |
| 4 | +description: Automate tax document data extraction with Document Intelligence's tax document models. |
| 5 | +author: laujan |
| 6 | +manager: nitinme |
| 7 | +ms.service: applied-ai-services |
| 8 | +ms.subservice: forms-recognizer |
| 9 | +ms.topic: conceptual |
| 10 | +ms.date: 07/18/2023 |
| 11 | +ms.author: lajanuar |
| 12 | +monikerRange: 'doc-intel-3.1.0' |
| 13 | +--- |
| 14 | + |
| 15 | +<!-- markdownlint-disable MD033 --> |
| 16 | + |
| 17 | +# Document Intelligence contract model |
| 18 | + |
| 19 | +[!INCLUDE [applies to v3.1](includes/applies-to-v3-1.md)] |
| 20 | + |
| 21 | +The Document Intelligence contract model uses powerful Optical Character Recognition (OCR) capabilities to analyze and extract key fields and line items from a select group of important contract entities. Contracts can be of various formats and quality including phone-captured images, scanned documents, and digital PDFs. The API analyzes document text; extracts key information such as Parties, Jurisdictions, Contract ID, and Title; and returns a structured JSON data representation. The model currently supports certain English tax document formats. |
| 22 | + |
| 23 | +## Automated contract processing |
| 24 | + |
| 25 | +Automated contract processing is the process of extracting key contract fields from documents. Historically, the contract analysis process has been done manually and, hence, very time consuming. Accurate extraction of key data from contracts is typically the first and one of the most critical steps in the contract automation process. |
| 26 | + |
| 27 | +## Development options |
| 28 | + |
| 29 | +Document Intelligence v3.0 supports the following tools: |
| 30 | + |
| 31 | +| Feature | Resources | Model ID | |
| 32 | +|----------|-------------|-----------| |
| 33 | +|**Contract model** | ● [**Document Intelligence Studio**](https://formrecognizer.appliedai.azure.com)</br> ● [**REST API**](https://westus.dev.cognitive.microsoft.com/docs/services/form-recognizer-api-2022-08-31/operations/AnalyzeDocument)</br> ● [**C# SDK**](quickstarts/get-started-sdks-rest-api.md?view=doc-intel-3.0.0&preserve-view=true)</br> ● [**Python SDK**](quickstarts/get-started-sdks-rest-api.md?view=doc-intel-3.0.0&preserve-view=true)</br> ● [**Java SDK**](quickstarts/get-started-sdks-rest-api.md?view=doc-intel-3.0.0&preserve-view=true)</br> ● [**JavaScript SDK**](quickstarts/get-started-sdks-rest-api.md?view=doc-intel-3.0.0&preserve-view=true)|**prebuilt-contract**| |
| 34 | + |
| 35 | +## Input requirements |
| 36 | + |
| 37 | +[!INCLUDE [input requirements](./includes/input-requirements.md)] |
| 38 | + |
| 39 | +## Try contract document data extraction |
| 40 | + |
| 41 | +See how data, including customer information, vendor details, and line items, is extracted from contracts. You need the following resources: |
| 42 | + |
| 43 | +* An Azure subscription—you can [create one for free](https://azure.microsoft.com/free/cognitive-services/) |
| 44 | + |
| 45 | +* A [Form Recognizer instance (Document Intelligence forthcoming)](https://portal.azure.com/#create/Microsoft.CognitiveServicesFormRecognizer) in the Azure portal. You can use the free pricing tier (`F0`) to try the service. After your resource deploys, select **Go to resource** to get your key and endpoint. |
| 46 | + |
| 47 | + :::image type="content" source="media/containers/keys-and-endpoint.png" alt-text="Screenshot of keys and endpoint location in the Azure portal."::: |
| 48 | + |
| 49 | +## Document Intelligence Studio |
| 50 | + |
| 51 | +1. On the Document Intelligence Studio home page, select **Tax Documents** |
| 52 | + |
| 53 | +1. You can analyze the sample tax documents or select the **+ Add** button to upload your own sample. |
| 54 | + |
| 55 | +1. Select the **Analyze** button: |
| 56 | + |
| 57 | + :::image type="content" source="media/studio/invoice-analyze.png" alt-text="Screenshot of the analyze invoice menu."::: |
| 58 | + |
| 59 | +> [!div class="nextstepaction"] |
| 60 | +> [Try Document Intelligence Studio](https://formrecognizer.appliedai.azure.com/studio/prebuilt?formType=invoice) |
| 61 | +
|
| 62 | +## Supported languages and locales |
| 63 | + |
| 64 | +>[!NOTE] |
| 65 | +> Document Intelligence auto-detects language and locale data. |
| 66 | +
|
| 67 | +| Supported languages | Details | |
| 68 | +|:----------------------|:---------| |
| 69 | +| English (en) | United States (us)| |
| 70 | + |
| 71 | +## Field extraction |
| 72 | + |
| 73 | +The following are the fields extracted from a contract in the JSON output response. |
| 74 | + |
| 75 | +|Name| Type | Description | Example output | |
| 76 | +|:-----|:----|:----|:---:| |
| 77 | +| Title | String | Contract title| Service agreement | |
| 78 | +| ContractId | String | Contract title| AB12956 | |
| 79 | +| Parties | Array |List of legal parties| | |
| 80 | +| ExecutionDate | Date |Date when the agreement was fully signed and agreed upon by all parties|`On this twenty-third day of February two thousand and twenty two` | |
| 81 | +| ExpirationDate | Date |Date when the contract ends to be in effect| One year | |
| 82 | +| RenewalDate | Date |Date when the contract needs to be renewed| `On this twenty-third day of February two thousand and twenty two` | |
| 83 | +| Jurisdictions | Array | List of jurisdictions| | |
| 84 | + |
| 85 | +The contract key-value pairs and line items extracted are in the `documentResults` section of the JSON output. |
| 86 | + |
| 87 | +## Next steps |
| 88 | + |
| 89 | +* Try processing your own forms and documents with the [Document Intelligence Studio](https://formrecognizer.appliedai.azure.com/studio) |
| 90 | + |
| 91 | +* Complete a [Document Intelligence quickstart](quickstarts/get-started-sdks-rest-api.md?view=doc-intel-3.0.0&preserve-view=true) and get started creating a document processing app in the development language of your choice. |
| 92 | + |
0 commit comments