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 bcoe committed Oct 4, 2019
1 parent 7c0a937 commit 89b88ae
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 89b88ae

Please sign in to comment.