We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81d550f commit 4baae60Copy full SHA for 4baae60
language/analysis/src/test/java/com/google/cloud/language/samples/AnalyzeIT.java
@@ -19,6 +19,7 @@
19
import static com.google.common.truth.Truth.assertThat;
20
21
import com.google.cloud.language.v1.Entity;
22
+import com.google.cloud.language.v1.PartOfSpeech.Tag;
23
import com.google.cloud.language.v1.Sentiment;
24
import com.google.cloud.language.v1.Token;
25
@@ -85,7 +86,7 @@ public class AnalyzeIT {
85
86
analyzeApp.analyzeSyntax(
87
"President Obama was elected for the second term");
88
- List<String> got = token.stream().map(e -> e.getPartOfSpeech().getTag())
89
+ List<Tag> got = token.stream().map(e -> e.getPartOfSpeech().getTag())
90
.collect(Collectors.toList());
91
92
// Assert
0 commit comments