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 콘솔에서 이 태스크에 대한 단계별 안내를 직접 수행하려면 둘러보기를 클릭합니다.

둘러보기


시작하기 전에

  1. 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.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  3. Make sure that billing is enabled for your Google Cloud project.

  4. Enable the Document AI, Cloud Storage APIs.

    Enable the APIs

  5. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  6. Make sure that billing is enabled for your Google Cloud project.

  7. Enable the Document AI, Cloud Storage APIs.

    Enable the APIs

요약기 프로세서 만들기

Google Cloud 콘솔을 사용하여 요약기 프로세서를 만듭니다. 자세한 내용은 프로세서 생성 및 관리를 참조하세요.

  1. Google Cloud 콘솔의 Document AI 섹션에서 Workbench 페이지로 이동합니다.

    Workbench

  2. Summarizer에서 프로세서 만들기를 선택합니다. summarizer-1

  3. 프로세서 만들기 메뉴에서 프로세서 이름(예: quickstart-summarizer)을 입력합니다.

  4. 가장 가까운 리전을 선택합니다.

  5. 만들기를 선택합니다.

이제 프로세서가 생성되었습니다.

프로세서 테스트

방금 만든 프로세서의 프로세서 개요 페이지가 열립니다.

summarizer-2

  1. 맞춤설정 및 빌드 탭을 선택하여 프로세서를 실험합니다.

    summarizer-3

  2. 샘플 문서 다운로드

    이 파일은 초전도성에 대한 위키백과 페이지가 포함된 PDF 파일입니다.

  3. 테스트 문서 업로드를 선택하고 방금 다운로드한 문서를 선택합니다.

  4. 이제 요약 페이지가 표시됩니다. OCR로 감지된 텍스트와 문서 주석을 볼 수 있습니다.

    summarizer-4

  5. 길이 및 형식 설정을 각각 보통글머리기호로 조정한 다음 다시 쓰기를 선택하고 결과를 관찰합니다.

  6. 맞춤설정 및 빌드 페이지로 돌아갑니다.

프로세서 버전 배포

API로 문서를 처리할 때 특정 요약 설정을 사용하려면 해당 설정에 맞는 프로세서 버전을 만드세요.

  1. 요약 설정은 이전 페이지에서 마지막으로 사용한 값으로 설정됩니다.

  2. 새 버전 만들기를 선택하여 지정된 요약 설정으로 프로세서 버전을 만듭니다.

  3. 프로세서 버전의 이름(예: quickstart-moderate-bulleted)을 입력하고 버전 만들기를 선택합니다.

  4. 배포 상태를 보려면 배포 및 사용 탭으로 이동하세요. 배포하는 데 몇 분 정도 걸립니다.

  5. 버전이 배포되면 기본 버전으로 설정하거나 API로 문서를 처리할 때 버전 ID를 제공할 수 있습니다.

  6. Document AI API를 사용하려면 다음 안내를 따르세요.

Document AI를 성공적으로 사용하여 문서에서 텍스트를 추출하고 요약했습니다.

삭제

이 페이지에서 사용한 리소스 비용이 Google Cloud 계정에 청구되지 않도록 하려면 다음 단계를 수행합니다.

불필요한 Google Cloud 요금이 청구되지 않게 하려면 Google Cloud 콘솔을 사용하여 필요하지 않은 프로세서와 프로젝트를 삭제합니다.

다음 단계