@@ -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