Skip to content

Commit 128338b

Browse files
gguusslesv
authored andcommitted
Adds note regarding AE standard (#481)
* Adds note regarding AE standard * Fixes bad copy/paste.
1 parent df6ea40 commit 128338b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

language/analysis/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ for entity recognition.
1010
This sample requires you to have
1111
[Java8](https://docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html).
1212

13+
**Note** The Natural Language client is not supported by App Engine Standard.
14+
1315
## Download Maven
1416

1517
This sample uses the [Apache Maven][maven] build system. Before getting started, be

language/analysis/src/main/java/com/google/cloud/language/samples/Analyze.java

+6
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ public Analyze(LanguageServiceClient languageApi) {
169169
* Gets {@link Entity}s from the string {@code text}.
170170
*/
171171
public List<Entity> analyzeEntitiesText(String text) throws IOException {
172+
// Note: This does not work on App Engine standard.
172173
Document doc = Document.newBuilder()
173174
.setContent(text).setType(Type.PLAIN_TEXT).build();
174175
AnalyzeEntitiesRequest request = AnalyzeEntitiesRequest.newBuilder()
@@ -182,6 +183,7 @@ public List<Entity> analyzeEntitiesText(String text) throws IOException {
182183
* Gets {@link Entity}s from the contents of the object at the given GCS {@code path}.
183184
*/
184185
public List<Entity> analyzeEntitiesFile(String path) throws IOException {
186+
// Note: This does not work on App Engine standard.
185187
Document doc = Document.newBuilder()
186188
.setGcsContentUri(path).setType(Type.PLAIN_TEXT).build();
187189
AnalyzeEntitiesRequest request = AnalyzeEntitiesRequest.newBuilder()
@@ -195,6 +197,7 @@ public List<Entity> analyzeEntitiesFile(String path) throws IOException {
195197
* Gets {@link Sentiment} from the string {@code text}.
196198
*/
197199
public Sentiment analyzeSentimentText(String text) throws IOException {
200+
// Note: This does not work on App Engine standard.
198201
Document doc = Document.newBuilder()
199202
.setContent(text).setType(Type.PLAIN_TEXT).build();
200203
AnalyzeSentimentResponse response = languageApi.analyzeSentiment(doc);
@@ -205,6 +208,7 @@ public Sentiment analyzeSentimentText(String text) throws IOException {
205208
* Gets {@link Sentiment} from the contents of the object at the given GCS {@code path}.
206209
*/
207210
public Sentiment analyzeSentimentFile(String path) throws IOException {
211+
// Note: This does not work on App Engine standard.
208212
Document doc = Document.newBuilder()
209213
.setGcsContentUri(path).setType(Type.PLAIN_TEXT).build();
210214
AnalyzeSentimentResponse response = languageApi.analyzeSentiment(doc);
@@ -215,6 +219,7 @@ public Sentiment analyzeSentimentFile(String path) throws IOException {
215219
* Gets {@link Token}s from the string {@code text}.
216220
*/
217221
public List<Token> analyzeSyntaxText(String text) throws IOException {
222+
// Note: This does not work on App Engine standard.
218223
Document doc = Document.newBuilder()
219224
.setContent(text).setType(Type.PLAIN_TEXT).build();
220225
AnalyzeSyntaxRequest request = AnalyzeSyntaxRequest.newBuilder()
@@ -228,6 +233,7 @@ public List<Token> analyzeSyntaxText(String text) throws IOException {
228233
* Gets {@link Token}s from the contents of the object at the given GCS {@code path}.
229234
*/
230235
public List<Token> analyzeSyntaxFile(String path) throws IOException {
236+
// Note: This does not work on App Engine standard.
231237
Document doc = Document.newBuilder()
232238
.setGcsContentUri(path).setType(Type.PLAIN_TEXT).build();
233239
AnalyzeSyntaxRequest request = AnalyzeSyntaxRequest.newBuilder()

0 commit comments

Comments
 (0)