AutoML Natural Language를 사용하려면 먼저 프로젝트에서 사용 설정해야 합니다. AutoML Natural Language UI를 열고 프로젝트를 선택합니다. 그러면 애플리케이션에서 필요한 단계를 안내하며, 아래에서도 각 단계에 대해 설명합니다.
Set up your project
- Google Cloud 계정에 로그인합니다. Google Cloud를 처음 사용하는 경우 계정을 만들고 Google 제품의 실제 성능을 평가해 보세요. 신규 고객에게는 워크로드를 실행, 테스트, 배포하는 데 사용할 수 있는 $300의 무료 크레딧이 제공됩니다.
-
Google Cloud Console의 프로젝트 선택기 페이지에서 Google Cloud 프로젝트를 선택하거나 만듭니다.
-
Cloud 프로젝트에 결제가 사용 설정되어 있는지 확인합니다. 프로젝트에 결제가 사용 설정되어 있는지 확인하는 방법을 알아보세요.
-
API AutoML and Cloud Storage 사용 설정
-
Google Cloud Console의 프로젝트 선택기 페이지에서 Google Cloud 프로젝트를 선택하거나 만듭니다.
-
Cloud 프로젝트에 결제가 사용 설정되어 있는지 확인합니다. 프로젝트에 결제가 사용 설정되어 있는지 확인하는 방법을 알아보세요.
-
API AutoML and Cloud Storage 사용 설정
- Install the
gcloud
command line tool. - Follow the instructions to create a service account and download a key file for that account.
- Set the
GOOGLE_APPLICATION_CREDENTIALS
environment variable to the path to the service account key file that you downloaded when you created the service account.export GOOGLE_APPLICATION_CREDENTIALS=KEY_FILE
- Set the
PROJECT_ID
environment variable to your Project ID.export PROJECT_ID=PROJECT_ID
The AutoML API calls and resource names include your Project ID in them. ThePROJECT_ID
environment variable provides a convenient way to specify the ID. - If you are an owner for your project, add your service account to the AutoML Editor
IAM role, replacing SERVICE_ACCOUNT_NAME with the name of
your new service account. For example,
service-account1@myproject.iam.gserviceaccount.com
.gcloud auth login gcloud projects add-iam-policy-binding $PROJECT_ID \ --member="serviceAccount:SERVICE_ACCOUNT_NAME" \ --role="roles/automl.editor"
- Otherwise (if you are not a project owner), ask a project owner to add both your user ID and your service account to the AutoML Editor IAM role.
Cloud Storage 버킷 생성
교육 데이터 가져오기와 같은 AutoML Natural Language 작업을 위한 Cloud Storage 버킷 만들기 버킷은 us-central1
리전 또는 eu
멀티 리전 위치에 있어야 합니다.
us-central1
의 버킷 요구사항:
- 위치 유형:
Region
- 위치:
us-central1
- 스토리지 클래스:
Standard
(Cloud Storage 브라우저에Regional
로 표시되는 경우도 있음)
eu
의 버킷 요구사항:
- 위치 유형:
Multi-region
- 위치:
eu
- 스토리지 클래스:
Standard
(Cloud Storage 브라우저에Multi-Regional
로 표시되는 경우도 있음)