반응형

AZURE 7

Apps Script로 Azure OpenAI 사용하기

OpenAI 가 아닌 Azure OpenAI를 이용해 GPT를 사용하고 싶었다. python 에서는 가능했지만 Apps Script의 URLFetch로도 사용하고 싶었다. var AOAI = { env: { 'AZURE_OPENAI_ENDPOINT' : "Azure OpenAI의 Endpoint", 'AZURE_OPENAI_RESOURCE' : "Azure OpenAI의 리소스 명칭", 'AZURE_OPENAI_MODEL' : "Azure OpenAI에서 배포한 모델 이름", 'AZURE_OPENAI_MODEL_NAME' : "Azure OpenAI에서 배포한 모델", 'AZURE_OPENAI_KEY' : "Azure OpenAI Key", 'AZURE_OPENAI_MAX_TOKENS' : 1700, '..

GCP/Apps Script 2024.01.22

로컬 VSCode로 Azure Blob Storage Trigger Function개발하기

Azure Blob Storage Trigger의 Azure Function을 개발하고 싶다. 디버깅을 위해서 Local 의 VSCode 에서 실행해 로그를 찍어보고 싶다. 0. Azure Functions Core Tools 설치 Work with Azure Functions Core Tools Learn how to code and test Azure Functions from the command prompt or terminal on your local computer before you run them on Azure Functions. learn.microsoft.com Local 환경에서 Azure functions 개발을 하기 위해서는 Azure Functions Core Tools 설치가..

Azure 2023.07.06

Form Recognizer의 Custom Neural Model을 이용해 문서의 Key-Value 추출하기

💡 Form Recognizer의 Custom Neural Model을 이용해 동적인 문서의 Key-Value 추출 해본다. Form Recognizer 에서 생성한 Template 기반의 Custom Model은, 특정 템플릿에 대한 Key-Value 를 추출하는 기능이었다. 하지만 템플릿의 순서가 변경되거나, 값이 추가되어 양식이 변경되게 되면 템플릿 기반에서는 데이터를 정상적으로 추출 해 올 수 없다. 그래서 Neural 모델로 Custom model을 생성하여 템플릿의 변형이 있을 경우에도 정확한 데이터를 추출할 수 있다. 사용자 지정 신경망 문서 모델 - Form Recognizer - Azure Applied AI Services 사용자 지정 신경망 문서 모델을 사용하여 구조적, 반구조적 및 ..

Azure 2023.07.04

Form Recognizer의 학습된 Custom model을 기준으로 Azure Blob Storage의 pdf 파일 Python으로 분석하기

Form Recognizer를 사용해 custom model 활용해보기 Azure Cognitive Service의 Form Recognizer 사용해 보기 Azure Cognitive Service인 Form Recognizer 사용해본다. 구버전 tool Form OCR Testing Tool fott.azurewebsites.net 신버전 tool Form Recognizer Studio - Microsoft Azure formrecognizer.appliedai.azure.com 여기서는 새로운 버전을 사용해본 whiseung.tistory.com Form Recognizer를 사용해 Azure Blob Storage의 pdf 파일 분석해보기 Form Recognizer로 Azure Blob St..

Azure 2023.06.30

Form Recognizer의 Custom model을 python을 이용해 가져오기

구 버전(2022-08-31 이)에서 model 가져오기 from azure.core.credentials import AzureKeyCredential from azure.ai.formrecognizer import FormTrainingClient # 구독 키와 엔드포인트 설정 endpoint = "FORM_RECOGNIZER_ENDPOINT" key = "FORM_RECOGNIZER_KEY" # AzureKeyCredential 생성 credential = AzureKeyCredential(subscription_key) # FormTrainingClient 인스턴스 생성 training_client = FormTrainingClient(endpoint, credential) # 계정의 모델에 대한..

Azure 2023.06.29

Form Recognizer로 Azure Blob Storage의 파일을 읽어 텍스트 추출해보기

from azure.core.credentials import AzureKeyCredential from azure.ai.formrecognizer import DocumentAnalysisClient from azure.storage.blob import ContainerClient endpoint = "FORM_RECOGNIZER_END_POINT" key = "FORM_RECOGNIZER_KEY" def get_blob_url(): STORAGE_CONSTR = "BLOB_STORAGE_CONNECTION_STRING" SOURCE_NAME = "BLOB_STORAGE_CONTAINER_NAME" FILE_NAME = "sample.pdf" container = ContainerClient.from..

Azure 2023.06.28

Azure Cognitive Service의 Form Recognizer 사용해 보기

Azure Cognitive Service인 Form Recognizer 사용해본다. 구버전 tool Form OCR Testing Tool fott.azurewebsites.net 신버전 tool Form Recognizer Studio - Microsoft Azure formrecognizer.appliedai.azure.com 여기서는 새로운 버전을 사용해본다. 이유는 제일 아래... 1. 프로젝트 생성 Form Recognizer Studio 아래쪽으로 이동하면 [Custmo models] - [Create new] 버튼으로 프로젝트 생성화면으로 이한다. [Create a project] 버튼으로 새로운 프로젝트를 생성한다. 프로젝트 정보들을 입력해준다. 리소스를 입력해준다. 한국리전에서 생성한 ..

Azure 2023.06.23
반응형