Skip to content

Commit c2e89d2

Browse files
dpebotJon Wayne Parrott
authored and
Jon Wayne Parrott
committed
Auto-update dependencies. [(#1004)](GoogleCloudPlatform/python-docs-samples#1004)
* Auto-update dependencies. * Fix natural language samples * Fix pubsub iam samples * Fix language samples * Fix bigquery samples
1 parent 00472df commit c2e89d2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

samples/snippets/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
google-cloud-language==0.24.1
1+
google-cloud-language==0.25.0

samples/snippets/snippets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def syntax_text(text):
120120
tokens = document.analyze_syntax().tokens
121121

122122
for token in tokens:
123-
print(u'{}: {}'.format(token.part_of_speech, token.text_content))
123+
print(u'{}: {}'.format(token.part_of_speech.tag, token.text_content))
124124

125125

126126
def syntax_file(gcs_uri):
@@ -135,7 +135,7 @@ def syntax_file(gcs_uri):
135135
tokens = document.analyze_syntax().tokens
136136

137137
for token in tokens:
138-
print(u'{}: {}'.format(token.part_of_speech, token.text_content))
138+
print(u'{}: {}'.format(token.part_of_speech.tag, token.text_content))
139139

140140

141141
if __name__ == '__main__':

0 commit comments

Comments
 (0)