Skip to content

Commit 73a0764

Browse files
authored
Update Language samples. (#254)
* Update Language samples. * Address comments.
1 parent 4e585ec commit 73a0764

File tree

9 files changed

+263
-800
lines changed

9 files changed

+263
-800
lines changed

language/README.md

+16-15
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,26 @@ __Usage:__ `node analyze --help`
3535

3636
```
3737
Commands:
38-
sentimentFromString <text> Detect the sentiment of a block of text.
39-
sentimentFromFile <bucket> <filename> Detect the sentiment of text in a GCS file.
40-
entitiesFromString <text> Detect the entities of a block of text.
41-
entitiesFromFile <bucket> <filename> Detect the entities of text in a GCS file.
42-
syntaxFromString <text> Detect the syntax of a block of text.
43-
syntaxFromFile <bucket> <filename> Detect the syntax of text in a GCS file.
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.
4444
4545
Options:
46-
--language, -l The language of the text. [string]
47-
--type, -t Type of text [string] [choices: "text", "html"] [default: "text"]
48-
--help Show help [boolean]
46+
--help Show help [boolean]
4947
5048
Examples:
51-
node analyze sentimentFromString "President Obama is speaking at the White House."
52-
node analyze sentimentFromFile my-bucket file.txt
53-
node analyze entitiesFromString "<p>President Obama is speaking at the White House.</p>" -t html
54-
node analyze entitiesFromFile my-bucket file.txt
55-
node analyze syntaxFromString "President Obama is speaking at the White House."
56-
node analyze syntaxFromFile my-bucket es_file.txt -l es
49+
node analyze sentimentOfText "President Obama is speaking at
50+
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
5758
5859
For more information, see https://cloud.google.com/natural-language/docs
5960
```

0 commit comments

Comments
 (0)