Skip to content

Commit

Permalink
updates all _file_gcs to _gcs (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
alixhami authored Aug 21, 2018
1 parent 87e0235 commit 7b8f148
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions cloud-language/snippets/analyze.v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function analyzeSentimentOfText(text) {
}

function analyzeSentimentInFile(bucketName, fileName) {
// [START language_sentiment_file_gcs]
// [START language_sentiment_gcs]
// Imports the Google Cloud client library
const language = require('@google-cloud/language');

Expand Down Expand Up @@ -95,7 +95,7 @@ function analyzeSentimentInFile(bucketName, fileName) {
.catch(err => {
console.error('ERROR:', err);
});
// [END language_sentiment_file_gcs]
// [END language_sentiment_gcs]
}

function analyzeEntitiesOfText(text) {
Expand Down Expand Up @@ -139,7 +139,7 @@ function analyzeEntitiesOfText(text) {
}

function analyzeEntitiesInFile(bucketName, fileName) {
// [START language_entities_file_gcs]
// [START language_entities_gcs]
// Imports the Google Cloud client library
const language = require('@google-cloud/language');

Expand Down Expand Up @@ -176,7 +176,7 @@ function analyzeEntitiesInFile(bucketName, fileName) {
.catch(err => {
console.error('ERROR:', err);
});
// [END language_entities_file_gcs]
// [END language_entities_gcs]
}

function analyzeSyntaxOfText(text) {
Expand Down Expand Up @@ -217,7 +217,7 @@ function analyzeSyntaxOfText(text) {
}

function analyzeSyntaxInFile(bucketName, fileName) {
// [START language_syntax_file_gcs]
// [START language_syntax_gcs]
// Imports the Google Cloud client library
const language = require('@google-cloud/language');

Expand Down Expand Up @@ -251,7 +251,7 @@ function analyzeSyntaxInFile(bucketName, fileName) {
.catch(err => {
console.error('ERROR:', err);
});
// [END language_syntax_file_gcs]
// [END language_syntax_gcs]
}

function analyzeEntitySentimentOfText(text) {
Expand Down Expand Up @@ -294,7 +294,7 @@ function analyzeEntitySentimentOfText(text) {
}

function analyzeEntitySentimentInFile(bucketName, fileName) {
// [START language_entity_sentiment_file_gcs]
// [START language_entity_sentiment_gcs]
// Imports the Google Cloud client library
const language = require('@google-cloud/language');

Expand Down Expand Up @@ -330,7 +330,7 @@ function analyzeEntitySentimentInFile(bucketName, fileName) {
.catch(err => {
console.error('ERROR:', err);
});
// [END language_entity_sentiment_file_gcs]
// [END language_entity_sentiment_gcs]
}

function classifyTextOfText(text) {
Expand Down Expand Up @@ -372,7 +372,7 @@ function classifyTextOfText(text) {
}

function classifyTextInFile(bucketName, fileName) {
// [START language_classify_file_gcs]
// [START language_classify_gcs]
// Imports the Google Cloud client library.
const language = require('@google-cloud/language');

Expand Down Expand Up @@ -407,7 +407,7 @@ function classifyTextInFile(bucketName, fileName) {
.catch(err => {
console.error('ERROR:', err);
});
// [END language_classify_file_gcs]
// [END language_classify_gcs]
}

require(`yargs`)
Expand Down

0 comments on commit 7b8f148

Please sign in to comment.