Skip to content

Commit 67c3b8d

Browse files
committed
update syntax region tags
1 parent 583d96d commit 67c3b8d

File tree

1 file changed

+4
-4
lines changed
  • language/analysis/src/main/java/com/google/cloud/language/samples

1 file changed

+4
-4
lines changed

language/analysis/src/main/java/com/google/cloud/language/samples/Analyze.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public static Sentiment analyzeSentimentFile(String gcsUri) throws Exception {
216216
* from the string {@code text}.
217217
*/
218218
public static List<Token> analyzeSyntaxText(String text) throws Exception {
219-
// [START analyze_syntax_text]
219+
// [START language_syntax_text]
220220
// Instantiate the Language client com.google.cloud.language.v1.LanguageServiceClient
221221
try (LanguageServiceClient language = LanguageServiceClient.create()) {
222222
Document doc = Document.newBuilder()
@@ -252,14 +252,14 @@ public static List<Token> analyzeSyntaxText(String text) throws Exception {
252252
}
253253
return response.getTokensList();
254254
}
255-
// [END analyze_syntax_text]
255+
// [END language_syntax_text]
256256
}
257257

258258
/**
259259
* Get the syntax of the GCS hosted file.
260260
*/
261261
public static List<Token> analyzeSyntaxFile(String gcsUri) throws Exception {
262-
// [START analyze_syntax_file]
262+
// [START language_syntax_file_gcs]
263263
// Instantiate the Language client com.google.cloud.language.v1.LanguageServiceClient
264264
try (LanguageServiceClient language = LanguageServiceClient.create()) {
265265
Document doc = Document.newBuilder()
@@ -296,7 +296,7 @@ public static List<Token> analyzeSyntaxFile(String gcsUri) throws Exception {
296296

297297
return response.getTokensList();
298298
}
299-
// [END analyze_syntax_file]
299+
// [END language_syntax_file_gcs]
300300
}
301301

302302
/**

0 commit comments

Comments
 (0)