@@ -35,25 +35,26 @@ __Usage:__ `node analyze --help`
35
35
36
36
```
37
37
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.
44
44
45
45
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]
49
47
50
48
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
57
58
58
59
For more information, see https://cloud.google.com/natural-language/docs
59
60
```
0 commit comments