@@ -169,6 +169,7 @@ public Analyze(LanguageServiceClient languageApi) {
169
169
* Gets {@link Entity}s from the string {@code text}.
170
170
*/
171
171
public List <Entity > analyzeEntitiesText (String text ) throws IOException {
172
+ // Note: This does not work on App Engine standard.
172
173
Document doc = Document .newBuilder ()
173
174
.setContent (text ).setType (Type .PLAIN_TEXT ).build ();
174
175
AnalyzeEntitiesRequest request = AnalyzeEntitiesRequest .newBuilder ()
@@ -182,6 +183,7 @@ public List<Entity> analyzeEntitiesText(String text) throws IOException {
182
183
* Gets {@link Entity}s from the contents of the object at the given GCS {@code path}.
183
184
*/
184
185
public List <Entity > analyzeEntitiesFile (String path ) throws IOException {
186
+ // Note: This does not work on App Engine standard.
185
187
Document doc = Document .newBuilder ()
186
188
.setGcsContentUri (path ).setType (Type .PLAIN_TEXT ).build ();
187
189
AnalyzeEntitiesRequest request = AnalyzeEntitiesRequest .newBuilder ()
@@ -195,6 +197,7 @@ public List<Entity> analyzeEntitiesFile(String path) throws IOException {
195
197
* Gets {@link Sentiment} from the string {@code text}.
196
198
*/
197
199
public Sentiment analyzeSentimentText (String text ) throws IOException {
200
+ // Note: This does not work on App Engine standard.
198
201
Document doc = Document .newBuilder ()
199
202
.setContent (text ).setType (Type .PLAIN_TEXT ).build ();
200
203
AnalyzeSentimentResponse response = languageApi .analyzeSentiment (doc );
@@ -205,6 +208,7 @@ public Sentiment analyzeSentimentText(String text) throws IOException {
205
208
* Gets {@link Sentiment} from the contents of the object at the given GCS {@code path}.
206
209
*/
207
210
public Sentiment analyzeSentimentFile (String path ) throws IOException {
211
+ // Note: This does not work on App Engine standard.
208
212
Document doc = Document .newBuilder ()
209
213
.setGcsContentUri (path ).setType (Type .PLAIN_TEXT ).build ();
210
214
AnalyzeSentimentResponse response = languageApi .analyzeSentiment (doc );
@@ -215,6 +219,7 @@ public Sentiment analyzeSentimentFile(String path) throws IOException {
215
219
* Gets {@link Token}s from the string {@code text}.
216
220
*/
217
221
public List <Token > analyzeSyntaxText (String text ) throws IOException {
222
+ // Note: This does not work on App Engine standard.
218
223
Document doc = Document .newBuilder ()
219
224
.setContent (text ).setType (Type .PLAIN_TEXT ).build ();
220
225
AnalyzeSyntaxRequest request = AnalyzeSyntaxRequest .newBuilder ()
@@ -228,6 +233,7 @@ public List<Token> analyzeSyntaxText(String text) throws IOException {
228
233
* Gets {@link Token}s from the contents of the object at the given GCS {@code path}.
229
234
*/
230
235
public List <Token > analyzeSyntaxFile (String path ) throws IOException {
236
+ // Note: This does not work on App Engine standard.
231
237
Document doc = Document .newBuilder ()
232
238
.setGcsContentUri (path ).setType (Type .PLAIN_TEXT ).build ();
233
239
AnalyzeSyntaxRequest request = AnalyzeSyntaxRequest .newBuilder ()
0 commit comments