Configuring cognitive service for a custom application by using BMC Native (Google) classification
The following image illustrates the end-to-end process of configuring the BMC Native (Google) classification service in BMC Helix Innovation Studio. It describes the steps required and the UI tools used to configure BMC Native (Google) classification service.
Task | Action | Reference |
---|---|---|
1 | Set the Google Cloud Platform account to create your project, enable billing, and create service account credentials. | |
2 | Define the value for the Classification-Service-Provider setting. | |
3 | Configure BMC Native (Google) classification and set the Service Account Credentials. | |
4 | Define the value for the Gcp-Project-Id setting based on the project id provided while setting up the Google Cloud Platform account. | |
5 | Define the value for the Gcp-Region setting based on the value of the region provided while setting up the Google Cloud Platform account. |
Setting up the Google Cloud Platform account
You can set up the Google Cloud Platform accounts in one of the following ways:
- To set up the Google Cloud Platform account manually
- To set up the Google Cloud Platform account by using an onboarding script
To set up the Google Cloud Platform account manually
If you are using Google Cloud Translation Service for real-time translation, use this method to set up the Google Cloud Platform account.
Log in to Google Cloud Platform Console.
To set up the Google Cloud Platform account by using an onboarding script
Log in to Google Cloud Platform Console.
Install Google Cloud Platform SDK.
For more details about Google Cloud Platform SDK and installing it, see https://cloud.google.com/sdk/.Run the following commands to make sure that gcloud and gsutil are installed in the bash shell.
gcloud --help
gsutil --help- Download a local copy of the following machine learning job code's compressed files:
Change the execution mode for gcp_onboarding.sh by using the following command:
chmod +x gcp_onboarding.sh(Windows only) Create bash functions so that gcp_onboarding.sh can use these functions. Use the following commands and add the functions with correct paths into the user's .bashrc file.
gsutil() {
/c/Program\ Files\ \(x86\)/Google/Cloud\ SDK/google-cloud-sdk/bin/gsutil.cmd $@
}
gcloud() {
/c/Program\ Files\ \(x86\)/Google/Cloud\ SDK/google-cloud-sdk/bin/gcloud.cmd $@
}Run the following script to create a new project:
./gcp_onboarding.sh -p <PROJECT-ID> -v -r <REGION-CODE>where
<PROJECT-ID>A unique identifier for your Google Cloud Platform project.Important: Make sure you provide the same projectID value in the GCP-Project-Id setting in the Centralized Tenant Configuration UI. For more information, see Configuration-settings-E-M.
<REGION-CODE>A geographical location where you want to execute your Google Cloud Platform machine learning jobs.Important: Make sure you provide the same region code value to the GCP-Region setting in the Centralized Tenant Configuration UI. For more information, see Configuration-settings-E-M.
New <projectID>-key.json file is generated and saved in the execution folder along with the <privateID>-key.json file.
To use BMC Native (Google) classification for cognitive service
- Log in to BMC Helix Innovation Studio and navigate to the Administration tab.
- Select Cognitive and chatbot > Cognitive service.
- From the Configure list, select Cognitive service connections.
- In the BMC Native for natural language classification section, in the Service Account Credentials field, add the content from the <projectID>-key.json file downloaded from the Google Cloud Platform.
- To test the connection, click Test.
If the connection fails, verify your service account credentials. - After verifying the connection is successful, click Save.
Where to go from here
Training-and-testing-the-cognitive-service-for-a-custom-application