Skip to content

Commit ac34472

Browse files
committed
Remove comments on AE standard limitation
1 parent 0634427 commit ac34472

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

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

-6
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ 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.
173172
Document doc = Document.newBuilder()
174173
.setContent(text).setType(Type.PLAIN_TEXT).build();
175174
AnalyzeEntitiesRequest request = AnalyzeEntitiesRequest.newBuilder()
@@ -183,7 +182,6 @@ public List<Entity> analyzeEntitiesText(String text) throws IOException {
183182
* Gets {@link Entity}s from the contents of the object at the given GCS {@code path}.
184183
*/
185184
public List<Entity> analyzeEntitiesFile(String path) throws IOException {
186-
// Note: This does not work on App Engine standard.
187185
Document doc = Document.newBuilder()
188186
.setGcsContentUri(path).setType(Type.PLAIN_TEXT).build();
189187
AnalyzeEntitiesRequest request = AnalyzeEntitiesRequest.newBuilder()
@@ -197,7 +195,6 @@ public List<Entity> analyzeEntitiesFile(String path) throws IOException {
197195
* Gets {@link Sentiment} from the string {@code text}.
198196
*/
199197
public Sentiment analyzeSentimentText(String text) throws IOException {
200-
// Note: This does not work on App Engine standard.
201198
Document doc = Document.newBuilder()
202199
.setContent(text).setType(Type.PLAIN_TEXT).build();
203200
AnalyzeSentimentResponse response = languageApi.analyzeSentiment(doc);
@@ -208,7 +205,6 @@ public Sentiment analyzeSentimentText(String text) throws IOException {
208205
* Gets {@link Sentiment} from the contents of the object at the given GCS {@code path}.
209206
*/
210207
public Sentiment analyzeSentimentFile(String path) throws IOException {
211-
// Note: This does not work on App Engine standard.
212208
Document doc = Document.newBuilder()
213209
.setGcsContentUri(path).setType(Type.PLAIN_TEXT).build();
214210
AnalyzeSentimentResponse response = languageApi.analyzeSentiment(doc);
@@ -219,7 +215,6 @@ public Sentiment analyzeSentimentFile(String path) throws IOException {
219215
* Gets {@link Token}s from the string {@code text}.
220216
*/
221217
public List<Token> analyzeSyntaxText(String text) throws IOException {
222-
// Note: This does not work on App Engine standard.
223218
Document doc = Document.newBuilder()
224219
.setContent(text).setType(Type.PLAIN_TEXT).build();
225220
AnalyzeSyntaxRequest request = AnalyzeSyntaxRequest.newBuilder()
@@ -233,7 +228,6 @@ public List<Token> analyzeSyntaxText(String text) throws IOException {
233228
* Gets {@link Token}s from the contents of the object at the given GCS {@code path}.
234229
*/
235230
public List<Token> analyzeSyntaxFile(String path) throws IOException {
236-
// Note: This does not work on App Engine standard.
237231
Document doc = Document.newBuilder()
238232
.setGcsContentUri(path).setType(Type.PLAIN_TEXT).build();
239233
AnalyzeSyntaxRequest request = AnalyzeSyntaxRequest.newBuilder()

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

-3
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ public static void printEntities(PrintStream out, List<Entity> entities) {
131131
* Gets {@link Sentiment} from the string {@code text}.
132132
*/
133133
public Sentiment analyzeSentimentText(String text, String lang) throws IOException {
134-
// Note: This does not work on App Engine standard.
135134
// NL autodetects the language
136135
Document doc;
137136
if (lang != null) {
@@ -152,7 +151,6 @@ public Sentiment analyzeSentimentText(String text, String lang) throws IOExcepti
152151
* Gets {@link Entity}s from the string {@code text} with sentiment.
153152
*/
154153
public List<Entity> entitySentimentText(String text) throws IOException {
155-
// Note: This does not work on App Engine standard.
156154
Document doc = Document.newBuilder()
157155
.setContent(text).setType(Type.PLAIN_TEXT).build();
158156
AnalyzeEntitySentimentRequest request = AnalyzeEntitySentimentRequest.newBuilder()
@@ -167,7 +165,6 @@ public List<Entity> entitySentimentText(String text) throws IOException {
167165
* with sentiment.
168166
*/
169167
public List<Entity> entitySentimentFile(String path) throws IOException {
170-
// Note: This does not work on App Engine standard.
171168
Document doc = Document.newBuilder()
172169
.setGcsContentUri(path).setType(Type.PLAIN_TEXT).build();
173170
AnalyzeEntitySentimentRequest request = AnalyzeEntitySentimentRequest.newBuilder()

0 commit comments

Comments
 (0)