diff --git a/packages/google-cloud-language/samples/README.md b/packages/google-cloud-language/samples/README.md index fb7ec573037..c07335b54a4 100644 --- a/packages/google-cloud-language/samples/README.md +++ b/packages/google-cloud-language/samples/README.md @@ -31,30 +31,30 @@ Learning API. View the [documentation][analyze_docs] or the [source code][analyze_code]. -__Usage:__ `node analyze --help` +__Usage:__ `node analyze.js --help` ``` Commands: - sentimentOfText Detect the sentiment of a block of text. - sentimentInFile Detect the sentiment of text in a GCS file. - entitiesOfText Detect the entities of a block of text. - entitiesInFile Detect the entities of text in a GCS file. - syntaxOfText Detect the syntax of a block of text. - syntaxInFile Detect the syntax of text in a GCS file. + sentiment-text Detects sentiment of a string. + sentiment-file Detects sentiment in a file in Google Cloud Storage. + entities-text Detects entities in a string. + entities-file Detects entities in a file in Google Cloud Storage. + syntax-text Detects syntax of a string. + syntax-file Detects syntax in a file in Google Cloud Storage. Options: --help Show help [boolean] Examples: - node analyze sentimentOfText "President Obama is speaking at + node analyze.js sentiment-text "President Obama is speaking + at the White House." + node analyze.js sentiment-file my-bucket file.txt Detects sentiment in gs://my-bucket/file.txt + node analyze.js entities-text "President Obama is speaking + at the White House." + node analyze.js entities-file my-bucket file.txt Detects entities in gs://my-bucket/file.txt + node analyze.js syntax-text "President Obama is speaking at the White House." - node analyze sentimentInFile my-bucket file.txt - node analyze entitiesOfText "President Obama is speaking at - the White House." - node analyze entitiesInFile my-bucket file.txt - node analyze syntaxOfText "President Obama is speaking at - the White House." - node analyze syntaxInFile my-bucket file.txt + node analyze.js syntax-file my-bucket file.txt Detects syntax in gs://my-bucket/file.txt For more information, see https://cloud.google.com/natural-language/docs ```