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 — Add Part Of Speech missing data to Token by dvaldivia · Pull Request #3457 · googleapis/google-cloud-python

Conversation

@dvaldivia

@dvaldivia dvaldivia commented May 29, 2017

Copy link
Copy Markdown
Contributor

Hi,

This PR add the missing data returned by the API to the Token, before only the Tag was being returned, I added all the data to the existing PartOfSpeech object and replaced it's hydratation on the Token as well

Sorry, something went wrong.

Uh oh!

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

All reactions
Daniel Valdivia added 2 commits May 29, 2017 16:21
Daniel Valdivia
Adding support for all the data returned by the API for PartOfSpeech …
4f46537
…inside Token
Daniel Valdivia
Fixing auto-formatting leaving a function outside of the PartOfSpeech…
fdba1be
… class
@googlebot

googlebot commented May 29, 2017

Copy link
Copy Markdown

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.
All reactions

Sorry, something went wrong.

Uh oh!

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

@googlebot googlebot added the cla: no This human has *not* signed the Contributor License Agreement. label May 29, 2017
@dvaldivia

dvaldivia commented May 29, 2017

Copy link
Copy Markdown
Contributor Author

I signed it!

All reactions

Sorry, something went wrong.

Uh oh!

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

@googlebot

googlebot commented May 29, 2017

Copy link
Copy Markdown

CLAs look good, thanks!

All reactions

Sorry, something went wrong.

Uh oh!

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

@googlebot googlebot added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels May 29, 2017
Daniel Valdivia added 8 commits May 29, 2017 16:39
Daniel Valdivia
Adding unit tests for the new code to comply with code coverage tests
d12defa
Daniel Valdivia
Updated test for Token
ef9b2de
Daniel Valdivia
lint
343c2d9
Daniel Valdivia
Update API Response tests
92e6ca7
Daniel Valdivia
update tests for document
de34fce
Daniel Valdivia
Updated Document Tests
49cf4bf
Daniel Valdivia
Test Document change getattr to object property access
6b196cb
Daniel Valdivia
Document Tests
a5393a4
lukesneeringer
lukesneeringer approved these changes May 30, 2017
View reviewed changes

@lukesneeringer lukesneeringer left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. (Thanks for all your work, @dvaldivia!)

Sorry, something went wrong.

Uh oh!

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

All reactions
@dvaldivia

dvaldivia commented May 30, 2017

Copy link
Copy Markdown
Contributor Author

@lukesneeringer you are welcome :) What's next? Do I need to do anything else?

All reactions

Sorry, something went wrong.

Uh oh!

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

dhermes
dhermes reviewed May 31, 2017
View reviewed changes
Comment thread language/google/cloud/language/syntax.py Outdated
class PartOfSpeech(object):
"""Part of speech of a :class:`Token`."""
"""A Google Cloud Natural Language API Part of speech object.
Rich data about the Part of Speech of a token returned by the API

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

dhermes
dhermes reviewed May 31, 2017
View reviewed changes
Comment thread language/tests/unit/test_api_responses.py

from copy import copy
import unittest
from copy import copy

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

Daniel Valdivia
Improved docstrings. Rearraged imports
5b181da
@dvaldivia

dvaldivia commented May 31, 2017

Copy link
Copy Markdown
Contributor Author

@dhermes did as you requested, let me know if I should change anything else.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver tseaver added the api: language Issues related to the Cloud Natural Language API API. label Jun 5, 2017
@tseaver
tseaver merged commit b0abcb2 into googleapis:master Jun 5, 2017
@dhermes dhermes mentioned this pull request Jun 5, 2017
Using part of speech "tag" in system test. #3471
Merged
This was referenced Jun 26, 2017
Prep language-0.25.0 release. #3535
Merged
Morphology in language API #3553
Closed
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 21, 2017
@dvaldivia @landrito
Add Part Of Speech missing data to Token (googleapis#3457)
eb5ae18
Add support for all the data returned by the API for PartOfSpeech inside Token.
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
@dvaldivia @landrito
Add Part Of Speech missing data to Token (googleapis#3457)
3c7a76d
Add support for all the data returned by the API for PartOfSpeech inside Token.
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
@dvaldivia @landrito
Add Part Of Speech missing data to Token (googleapis#3457)
db38de0
Add support for all the data returned by the API for PartOfSpeech inside Token.
parthea pushed a commit that referenced this pull request Jul 6, 2023
@dvaldivia @tseaver
Add Part Of Speech missing data to Token (#3457)
f4d9b1b
Add support for all the data returned by the API for PartOfSpeech inside Token.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

2 more reviewers
@dhermes dhermes dhermes left review comments
@lukesneeringer lukesneeringer lukesneeringer 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

api: language Issues related to the Cloud Natural Language API API. 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.

5 participants

@dvaldivia @googlebot @lukesneeringer @dhermes @tseaver
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.