File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
language/analysis/src/main/java/com/google/cloud/language/samples Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ public static List<Token> analyzeSyntaxFile(String gcsUri) throws Exception {
303303 * Detects categories in text using the Language Beta API.
304304 */
305305 public static void classifyText (String text ) throws Exception {
306- // [START classify_text ]
306+ // [START language_classify_text ]
307307 // Instantiate the Language client com.google.cloud.language.v1.LanguageServiceClient
308308 try (LanguageServiceClient language = LanguageServiceClient .create ()) {
309309 // set content to the text string
@@ -322,14 +322,14 @@ public static void classifyText(String text) throws Exception {
322322 category .getName (), category .getConfidence ());
323323 }
324324 }
325- // [END classify_text ]
325+ // [END language_classify_text ]
326326 }
327327
328328 /**
329329 * Detects categories in a GCS hosted file using the Language Beta API.
330330 */
331331 public static void classifyFile (String gcsUri ) throws Exception {
332- // [START classify_file ]
332+ // [START language_classify_file_gcs ]
333333 // Instantiate the Language client com.google.cloud.language.v1.LanguageServiceClient
334334 try (LanguageServiceClient language = LanguageServiceClient .create ()) {
335335 // set the GCS content URI path
@@ -348,7 +348,7 @@ public static void classifyFile(String gcsUri) throws Exception {
348348 category .getName (), category .getConfidence ());
349349 }
350350 }
351- // [END classify_file ]
351+ // [END language_classify_file_gcs ]
352352 }
353353
354354 /**
You can’t perform that action at this time.
0 commit comments