@@ -9,14 +9,17 @@ for entity recognition.
9
9
10
10
[ NL-Docs ] : https://cloud.google.com/natural-language/docs/
11
11
12
- ## Java Version
12
+ ## Prerequisites
13
+
14
+ ### Java Version
13
15
14
16
This sample requires you to have
15
17
[ Java8] ( https://docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html ) .
16
18
17
19
** Note** The Natural Language client is not supported by App Engine Standard.
18
20
19
- ## Download Maven
21
+
22
+ ### Download Maven
20
23
21
24
This sample uses the [ Apache Maven] [ maven ] build system. Before getting started, be
22
25
sure to [ download] [ maven-download ] and [ install] [ maven-install ] it. When you use
@@ -27,6 +30,22 @@ libraries.
27
30
[ maven-download ] : https://maven.apache.org/download.cgi
28
31
[ maven-install ] : https://maven.apache.org/install.html
29
32
33
+ ### Set Up to Authenticate With Your Project's Credentials
34
+
35
+ Please follow the [ Set Up Your Project] ( https://cloud.google.com/natural-language/docs/getting-started#set_up_your_project )
36
+ steps in the Quickstart doc to create a project and enable the
37
+ Cloud Natural Language API. Following those steps, make sure that you
38
+ [ Set Up a Service Account] ( https://cloud.google.com/natural-language/docs/common/auth#set_up_a_service_account ) ,
39
+ and export the following environment variable:
40
+
41
+ ```
42
+ export GOOGLE_APPLICATION_CREDENTIALS=/path/to/your-project-credentials.json
43
+ ```
44
+
45
+ [ cloud-console ] : https://console.cloud.google.com
46
+ [ language-api ] : https://console.cloud.google.com/apis/api/language.googleapis.com/overview?project=_
47
+ [ adc ] : https://cloud.google.com/docs/authentication#developer_workflow
48
+
30
49
## Run the sample
31
50
32
51
To build the sample, we use Maven.
0 commit comments