Skip to content

Commit

Permalink
fix: update analyze.v1.js (#306)
Browse files Browse the repository at this point in the history
* Update analyze.v1.js

* Update analyze.v1.js
  • Loading branch information
nnegrey authored and NimJay committed Nov 10, 2022
1 parent 90c5815 commit 6d7cc68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cloud-language/snippets/analyze.v1.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2017, Google, Inc.
* Copyright 2017 Google LLC
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand Down Expand Up @@ -120,7 +120,7 @@ async function analyzeEntitiesOfText(text) {
console.log(entity.name);
console.log(` - Type: ${entity.type}, Salience: ${entity.salience}`);
if (entity.metadata && entity.metadata.wikipedia_url) {
console.log(` - Wikipedia URL: ${entity.metadata.wikipedia_url}$`);
console.log(` - Wikipedia URL: ${entity.metadata.wikipedia_url}`);
}
});
// [END language_entities_text]
Expand Down Expand Up @@ -155,7 +155,7 @@ async function analyzeEntitiesInFile(bucketName, fileName) {
console.log(entity.name);
console.log(` - Type: ${entity.type}, Salience: ${entity.salience}`);
if (entity.metadata && entity.metadata.wikipedia_url) {
console.log(` - Wikipedia URL: ${entity.metadata.wikipedia_url}$`);
console.log(` - Wikipedia URL: ${entity.metadata.wikipedia_url}`);
}
});

Expand Down

0 comments on commit 6d7cc68

Please sign in to comment.