Google Cloud 콘솔에서 문서 요약기 빌드
Document AI를 사용하여 요약기 프로세서를 만들어 문서 콘텐츠를 요약할 수 있습니다. 출력은 길이 및 형식에 따라 맞춤설정할 수 있습니다.
다음은 결과 항목의 JSON 출력 샘플입니다.
{
"type": "summary",
"mentionText": " Superconductivity is a phenomenon in which a material conducts
electricity with no resistance. It was discovered in 1911 by Dutch physicist Heike
Kamerlingh Onnes. In 1986, a new class of materials was discovered that can superconduct
at much higher temperatures. These materials are called high-temperature superconductors.
They have the potential to revolutionize the way we use electricity. However,
high-temperature superconductors are still very expensive to produce. Scientists
are working on ways to make them more affordable.",
"normalizedValue": {
"text": " Superconductivity is a phenomenon in which a material conducts
electricity with no resistance. It was discovered in 1911 by Dutch physicist
Heike Kamerlingh Onnes. In 1986, a new class of materials was discovered that
can superconduct at much higher temperatures. These materials are called
high-temperature superconductors. They have the potential to revolutionize
the way we use electricity. However, high-temperature superconductors are
still very expensive to produce. Scientists are working on ways to make
them more affordable."
}
}
절차
이 빠른 시작에서는 문서 요약기 프로세서를 만들고, 처리할 샘플 문서를 업로드하고, 커스텀 프로세서 버전을 만들어 요약 구조를 조정합니다.
Google Cloud 콘솔에서 이 태스크에 대한 단계별 안내를 직접 수행하려면 둘러보기를 클릭합니다.
시작하기 전에
- Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
-
Enable the Document AI, Cloud Storage APIs.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
-
Enable the Document AI, Cloud Storage APIs.
요약기 프로세서 만들기
Google Cloud 콘솔을 사용하여 요약기 프로세서를 만듭니다. 자세한 내용은 프로세서 생성 및 관리를 참조하세요.
Google Cloud 콘솔의 Document AI 섹션에서 Workbench 페이지로 이동합니다.
Summarizer에서
프로세서 만들기 를 선택합니다.프로세서 만들기 메뉴에서 프로세서 이름(예:
quickstart-summarizer
)을 입력합니다.가장 가까운 리전을 선택합니다.
만들기를 선택합니다.
이제 프로세서가 생성되었습니다.
프로세서 테스트
방금 만든 프로세서의 프로세서 개요 페이지가 열립니다.
맞춤설정 및 빌드 탭을 선택하여 프로세서를 실험합니다.-
이 파일은 초전도성에 대한 위키백과 페이지가 포함된 PDF 파일입니다.
테스트 문서 업로드 를 선택하고 방금 다운로드한 문서를 선택합니다.이제 요약 페이지가 표시됩니다. OCR로 감지된 텍스트와 문서 주석을 볼 수 있습니다.
길이 및 형식 설정을 각각 보통 및 글머리기호로 조정한 다음 다시 쓰기를 선택하고 결과를 관찰합니다.맞춤설정 및 빌드 페이지로 돌아갑니다.
프로세서 버전 배포
API로 문서를 처리할 때 특정 요약 설정을 사용하려면 해당 설정에 맞는 프로세서 버전을 만드세요.
요약 설정 은 이전 페이지에서 마지막으로 사용한 값으로 설정됩니다.새 버전 만들기 를 선택하여 지정된 요약 설정으로 프로세서 버전을 만듭니다.프로세서 버전의 이름(예:
quickstart-moderate-bulleted
)을 입력하고 버전 만들기를 선택합니다.배포 상태를 보려면
배포 및 사용 탭으로 이동하세요. 배포하는 데 몇 분 정도 걸립니다.버전이 배포되면
기본 버전 으로 설정하거나 API로 문서를 처리할 때 버전 ID를 제공할 수 있습니다.Document AI API를 사용하려면 다음 안내를 따르세요.
- 처리 요청 보내기의 코드 샘플에 따라 온라인 및 일괄 처리를 사용합니다.
- 온라인 및 일괄 처리에 지원되는 페이지 수는 할당량 및 한도를 참조하세요.
- 프로세싱 응답 처리의 코드 샘플에 따라 프로세서에서 요약 응답을 가져옵니다.
- 처리 요청 보내기의 코드 샘플에 따라 온라인 및 일괄 처리를 사용합니다.
Document AI를 성공적으로 사용하여 문서에서 텍스트를 추출하고 요약했습니다.
삭제
이 페이지에서 사용한 리소스 비용이 Google Cloud 계정에 청구되지 않도록 하려면 다음 단계를 수행합니다.
불필요한 Google Cloud 요금이 청구되지 않게 하려면 Google Cloud 콘솔을 사용하여 필요하지 않은 프로세서와 프로젝트를 삭제합니다.