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 busunkim96 committed Sep 29, 2020
1 parent 8bd6bbb commit 0d6c3c4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-cloud-language==0.24.1
google-cloud-language==0.25.0
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
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
gapic-google-cloud-language-v1beta2==0.15.3
google-cloud-language==0.24.1
google-cloud-language==0.25.0
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,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 @@ -139,7 +139,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))


def entity_sentiment_text(text):
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-cloud-language==0.24.1
google-cloud-language==0.25.0

0 comments on commit 0d6c3c4

Please sign in to comment.