Skip to content

Commit

Permalink
Auto-update dependencies. [(#1004)](GoogleCloudPlatform/python-docs-s…
Browse files Browse the repository at this point in the history
…amples#1004)

* Auto-update dependencies.

* Fix natural language samples

* Fix pubsub iam samples

* Fix language samples

* Fix bigquery samples
  • Loading branch information
dpebot authored and Jon Wayne Parrott committed Jun 27, 2017
1 parent 00472df commit c2e89d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion samples/snippets/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-cloud-language==0.24.1
google-cloud-language==0.25.0
4 changes: 2 additions & 2 deletions samples/snippets/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def syntax_text(text):
tokens = document.analyze_syntax().tokens

for token in tokens:
print(u'{}: {}'.format(token.part_of_speech, token.text_content))
print(u'{}: {}'.format(token.part_of_speech.tag, token.text_content))


def syntax_file(gcs_uri):
Expand All @@ -135,7 +135,7 @@ def syntax_file(gcs_uri):
tokens = document.analyze_syntax().tokens

for token in tokens:
print(u'{}: {}'.format(token.part_of_speech, token.text_content))
print(u'{}: {}'.format(token.part_of_speech.tag, token.text_content))


if __name__ == '__main__':
Expand Down

0 comments on commit c2e89d2

Please sign in to comment.