Skip to content

Commit 243e813

Browse files
authored
Update Translate samples, with some minor tweaks to Language samples. (#255)
1 parent fa24e77 commit 243e813

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

  • packages/google-cloud-language/samples

packages/google-cloud-language/samples/README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,30 +31,30 @@ Learning API.
3131

3232
View the [documentation][analyze_docs] or the [source code][analyze_code].
3333

34-
__Usage:__ `node analyze --help`
34+
__Usage:__ `node analyze.js --help`
3535

3636
```
3737
Commands:
38-
sentimentOfText <text> Detect the sentiment of a block of text.
39-
sentimentInFile <bucket> <filename> Detect the sentiment of text in a GCS file.
40-
entitiesOfText <text> Detect the entities of a block of text.
41-
entitiesInFile <bucket> <filename> Detect the entities of text in a GCS file.
42-
syntaxOfText <text> Detect the syntax of a block of text.
43-
syntaxInFile <bucket> <filename> Detect the syntax of text in a GCS file.
38+
sentiment-text <text> Detects sentiment of a string.
39+
sentiment-file <bucket> <filename> Detects sentiment in a file in Google Cloud Storage.
40+
entities-text <text> Detects entities in a string.
41+
entities-file <bucket> <filename> Detects entities in a file in Google Cloud Storage.
42+
syntax-text <text> Detects syntax of a string.
43+
syntax-file <bucket> <filename> Detects syntax in a file in Google Cloud Storage.
4444
4545
Options:
4646
--help Show help [boolean]
4747
4848
Examples:
49-
node analyze sentimentOfText "President Obama is speaking at
49+
node analyze.js sentiment-text "President Obama is speaking
50+
at the White House."
51+
node analyze.js sentiment-file my-bucket file.txt Detects sentiment in gs://my-bucket/file.txt
52+
node analyze.js entities-text "President Obama is speaking
53+
at the White House."
54+
node analyze.js entities-file my-bucket file.txt Detects entities in gs://my-bucket/file.txt
55+
node analyze.js syntax-text "President Obama is speaking at
5056
the White House."
51-
node analyze sentimentInFile my-bucket file.txt
52-
node analyze entitiesOfText "President Obama is speaking at
53-
the White House."
54-
node analyze entitiesInFile my-bucket file.txt
55-
node analyze syntaxOfText "President Obama is speaking at
56-
the White House."
57-
node analyze syntaxInFile my-bucket file.txt
57+
node analyze.js syntax-file my-bucket file.txt Detects syntax in gs://my-bucket/file.txt
5858
5959
For more information, see https://cloud.google.com/natural-language/docs
6060
```

0 commit comments

Comments
 (0)