Thank you for reaching out to the Microsoft Q&A forum.
I understand that you are trying to extract key sections and clauses/keywords from legal documents using Azure AI services. Based on your description, you have tried using Azure Language Services -> Custom NER and Azure Document Intelligence -> Custom Extraction, but you are facing some issues.
Regarding your first approach, Custom NER is indeed designed for extracting named entities from unstructured text, such as contracts or financial documents. However, it appears that you're aiming to extract key sections, which are not necessarily named entities. However, the performance may vary based on the specifics of your documents and the labeling process.
In your second approach, Custom Extraction from Azure Document Intelligence seems promising for structured data extraction, like tables or forms. However, for unstructured data extraction, such as key sections and clauses/keywords, Custom Extraction might not be the ideal tool.
Given your requirements, a different approach might be more suitable. Combining Azure Cognitive Search with AI-powered features could be beneficial. In the past, Azure Cognitive Search has been recommended for extracting information from documents. This service provides full-text search capabilities along with AI-powered features like natural language processing and machine learning. You could create a custom skillset within Azure Cognitive Search that incorporates various skills such as OCR, language detection, key phrase extraction, entity recognition, and text splitting to extract key sections and clauses/keywords from your legal documents.
Here are the steps you can follow:
- Create an Azure Cognitive Search service and index your legal documents.
- Define a custom skillset incorporating OCR, language detection, key phrase extraction, entity recognition, and text splitting.
- Define an indexer to use the custom skillset to extract and index key sections and clauses/keywords from the legal documents.
- Utilize Azure Cognitive Search to search for key sections and clauses/keywords within the indexed documents.
For more detailed and related guidance on using Azure Cognitive Search for document extraction, you can refer to the provided documentation.
I hope this alternative approach addresses your needs more effectively.
Thank you.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful.