liamca / AzureSearch-AzureFunctions-CognitiveServices

Set of useful Azure Functions for doing advanced text processing such as Text Summarization and OCR on unstructured documents using Cognitive Services and Azure Functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enriching Unstructured Documents in an Azure Search Index using Azure Functions

Set of useful Azure Functions for doing advanced text processing such as Text Summarization and OCR on unstructured documents using Cognitive Services and Azure Functions

The goal of these Azure Functions is to allow you to do additional processing over unstructured contents stored in Azure Blob's such as PDF and Office Docs. The results of the processing allows you to enrich your Azure Search index with additional content. For example, if there are images in your PDF, you can leverage Azure Cognitive Services to extract the text from the images which are then added to the Azure Search index to be searchable. Below are the examples currently available.

##Requirements

##OCR - Optical Character Recognition This includes an Azure Functions that leverages the Azure Blob Trigger that calls an Azure Function whenever a file is added to the configured blob store. This function extracts the images from the PDF and then calls the Azure Cognitive Services Vision API to extract the text from them images which is then added to your Azure Serach index. Currently it only supports PDF processing, but could easily be extended for other file types.

##Text Summarization This includes an Azure Functions that leverages the Azure Blob Trigger that calls an Azure Function whenever a file is added to the configured blob store. This function extracts the text from the PDF and then calls the Azure Cognitive Services Text Analytics API to extract the key phrases from the text. The top phrases are then used to find sentences in the text which best represent the overall text. This summarized test is then added to your Azure Serach index. Currently it only supports PDF processing, but could easily be extended for other file types.

About

Set of useful Azure Functions for doing advanced text processing such as Text Summarization and OCR on unstructured documents using Cognitive Services and Azure Functions

License:MIT License


Languages

Language:JavaScript 68.3%Language:C# 21.5%Language:CSS 8.1%Language:HTML 2.1%Language:ASP 0.0%