@@ -32,14 +32,14 @@ mvn clean compile assembly:single |
32 | 32 | ``` |
33 | 33 |
|
34 | 34 | We can then run the assembled JAR file with the `java` command. The variable $COMMAND takes |
35 | | -three values `entities`, `sentiment`, or `syntax`. |
| 35 | +three values `entities`, `entities-sentiment`, `sentiment`, or `syntax`. |
36 | 36 |
|
37 | 37 | ## Basic usage: |
38 | 38 |
|
39 | 39 | ``` |
40 | 40 | java -cp target/language-entities-1.0-jar-with-dependencies.jar \ |
41 | 41 | com.google.cloud.language.samples.Analyze \ |
42 | | - <entities | sentiment | syntax> \ |
| 42 | + <entities | entities-sentiment | sentiment | syntax> \ |
43 | 43 | <text | GCS path> |
44 | 44 | ``` |
45 | 45 |
|
@@ -61,6 +61,13 @@ java -cp target/language-entities-1.0-jar-with-dependencies.jar \ |
61 | 61 | "The quick brown fox jumped over the lazy dog." |
62 | 62 | ``` |
63 | 63 |
|
| 64 | +Analyze entity sentiment |
| 65 | +``` |
| 66 | +java -cp target/language-entities-1.0-jar-with-dependencies.jar \ |
| 67 | + com.google.cloud.language.samples.Analyze entities-sentiment \ |
| 68 | + "There's nothing better than searching for ice cream on Google." |
| 69 | +``` |
| 70 | + |
64 | 71 | Analyze syntax |
65 | 72 | ``` |
66 | 73 | java -cp target/language-entities-1.0-jar-with-dependencies.jar \ |
@@ -92,11 +99,18 @@ java -cp target/language-entities-1.0-jar-with-dependencies.jar \ |
92 | 99 | "Der schnelle braune Fuchs sprang über den faulen Hund." |
93 | 100 | ``` |
94 | 101 |
|
95 | | -Analyze entity sentiment Beta |
| 102 | +Analyze categories in text Beta |
96 | 103 | ``` |
97 | 104 | java -cp target/language-entities-1.0-jar-with-dependencies.jar \ |
98 | | - com.google.cloud.language.samples.AnalyzeBeta entities-sentiment \ |
99 | | - "There's nothing better than searching for ice cream on Google." |
| 105 | + com.google.cloud.language.samples.AnalyzeBeta classify \ |
| 106 | + "Android is a mobile operating system developed by Google, based on the Linux kernel and designed primarily for touchscreen mobile devices such as smartphones and tablets." |
| 107 | +``` |
| 108 | + |
| 109 | +Analyze categories in GCS file Beta |
| 110 | +``` |
| 111 | +java -cp target/language-entities-1.0-jar-with-dependencies.jar \ |
| 112 | + com.google.cloud.language.samples.AnalyzeBeta classify \ |
| 113 | + "gs://cloud-samples-tests/natural-language/android-text.txt" |
100 | 114 | ``` |
101 | 115 |
|
102 | 116 | Run beta demo from *nix or OSX |
|