GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: adds underscore to "type" to NL API samples by telpirion · Pull Request #49 · googleapis/python-language

This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Conversation

@telpirion

@telpirion telpirion commented Nov 2, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Adds underscore to type in Natural Language API samples.

The Document class has a type_ field instead of type. The samples needed to be refactored for this change.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@telpirion
fix: adds underscore to "type" in entity sentiment sample
15651f3
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 2, 2020
@telpirion
fix: other language samples missing type with underscore
e42faf0
@telpirion
telpirion requested a review from busunkim96 November 2, 2020 18:41
@telpirion telpirion changed the title fix: adds underscore to "type" in entity sentiment sample fix: adds underscore to "type" to NL API samples Nov 2, 2020
@telpirion
telpirion marked this pull request as ready for review November 2, 2020 18:43
@telpirion
telpirion requested review from a team and sirtorry as code owners November 2, 2020 18:43
@telpirion
telpirion requested review from lucaswadedavis and vinnysenthil November 3, 2020 16:37
lucaswadedavis
lucaswadedavis approved these changes Nov 3, 2020
View reviewed changes
@telpirion
Merge branch 'master' into entity-sentiment-fix
def9f12
sirtorry
sirtorry approved these changes Nov 3, 2020
View reviewed changes
@telpirion
telpirion merged commit 36aa320 into master Nov 3, 2020
@telpirion telpirion mentioned this pull request Nov 25, 2020
ValueError: Protocol message Document has no "type" field. #43
Closed
gcf-merge-on-green Bot pushed a commit that referenced this pull request Jun 16, 2021
@release-please
chore: release 2.1.0 (#127)
1026842
🤖 I have created a release \*beep\* \*boop\*
---
## [2.1.0](https://www.github.com/googleapis/python-language/compare/v1.4.0...v2.1.0) (2021-06-16)


### Features

* add 'from_service_account_info' factory to clients ([cc8a180](https://www.github.com/googleapis/python-language/commit/cc8a18032af7c8d8bf45130898eeae7efb17a91e))
* add common resource helper methods; expose client transport ([#55](https://www.github.com/googleapis/python-language/issues/55)) ([8dde55c](https://www.github.com/googleapis/python-language/commit/8dde55cdd0e956c333039c0b74e49a06dd6ad33b))
* add from_service_account_info factory and fix sphinx identifiers  ([#66](https://www.github.com/googleapis/python-language/issues/66)) ([cc8a180](https://www.github.com/googleapis/python-language/commit/cc8a18032af7c8d8bf45130898eeae7efb17a91e))
* support self-signed JWT flow for service accounts ([0dcb15e](https://www.github.com/googleapis/python-language/commit/0dcb15eb46b60bd816a6919464be1331c2c8de41))


### Bug Fixes

* add async client to %name_%version/init.py ([0dcb15e](https://www.github.com/googleapis/python-language/commit/0dcb15eb46b60bd816a6919464be1331c2c8de41))
* adds underscore to "type" to NL API samples ([#49](https://www.github.com/googleapis/python-language/issues/49)) ([36aa320](https://www.github.com/googleapis/python-language/commit/36aa320bf3e0018d66a7d0c91ce4733f20e9acc0))
* **deps:** add packaging requirement ([#113](https://www.github.com/googleapis/python-language/issues/113)) ([7e711ac](https://www.github.com/googleapis/python-language/commit/7e711ac63c95c1018d24c7c4db3bc02c191efcfc))
* fix sphinx identifiers ([cc8a180](https://www.github.com/googleapis/python-language/commit/cc8a18032af7c8d8bf45130898eeae7efb17a91e))
* remove client recv msg limit fix: add enums to `types/__init__.py` ([#62](https://www.github.com/googleapis/python-language/issues/62)) ([3476c0f](https://www.github.com/googleapis/python-language/commit/3476c0f72529cbcbe61ea5c7e6a22291777bed7e))
* use correct retry deadlines ([#83](https://www.github.com/googleapis/python-language/issues/83)) ([e2be2d8](https://www.github.com/googleapis/python-language/commit/e2be2d8ecf849940f2ea066655fda3bee68d8a74))


### Documentation

* fix typos ([#125](https://www.github.com/googleapis/python-language/issues/125)) ([788176f](https://www.github.com/googleapis/python-language/commit/788176feff5fb541e0d16f236b10b765d04ecb98))


### Miscellaneous Chores

* release as 2.1.0 ([#126](https://www.github.com/googleapis/python-language/issues/126)) ([92fa7f9](https://www.github.com/googleapis/python-language/commit/92fa7f995013c302f3bd3eb6bec53d92d8d9990c))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@canlilar

canlilar commented Mar 30, 2022

Copy link
Copy Markdown

AttributeError Traceback (most recent call last)
in
1 client = language_v1.LanguageServiceClient()
----> 2 type_ = language_v1.Document.Type.PLAIN_TEXT

AttributeError: module 'google.cloud.language_v1' has no attribute 'Document'

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@release-please release-please Bot mentioned this pull request Nov 4, 2022
chore(main): release 2.7.0 #394
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@busunkim96 busunkim96 Awaiting requested review from busunkim96
@vinnysenthil vinnysenthil Awaiting requested review from vinnysenthil
2 more reviewers
@lucaswadedavis lucaswadedavis lucaswadedavis approved these changes
@sirtorry sirtorry sirtorry approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@telpirion @canlilar @lucaswadedavis @sirtorry
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.