We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00472df commit c2e89d2Copy full SHA for c2e89d2
samples/snippets/requirements.txt
@@ -1 +1 @@
1
-google-cloud-language==0.24.1
+google-cloud-language==0.25.0
samples/snippets/snippets.py
@@ -120,7 +120,7 @@ def syntax_text(text):
120
tokens = document.analyze_syntax().tokens
121
122
for token in tokens:
123
- print(u'{}: {}'.format(token.part_of_speech, token.text_content))
+ print(u'{}: {}'.format(token.part_of_speech.tag, token.text_content))
124
125
126
def syntax_file(gcs_uri):
@@ -135,7 +135,7 @@ def syntax_file(gcs_uri):
135
136
137
138
139
140
141
if __name__ == '__main__':
0 commit comments