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 — Implement Document factory constructors on language client by dhermes · Pull Request #2164 · googleapis/google-cloud-python

Conversation

@dhermes

@dhermes dhermes commented Aug 22, 2016 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

NOTE: Has #2162 as diffbase.

@tseaver and @jgeewax this PR (namely the last 4 commits) make the discussion in #2062 / earlier today more concrete. Is this what you had in mind?

Sorry, something went wrong.

Uh oh!

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

All reactions
@dhermes dhermes added the natural-language label Aug 22, 2016
@dhermes dhermes assigned jgeewax, daspecster and tseaver Aug 22, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 22, 2016
@dhermes
dhermes force-pushed the language-impl-2 branch 2 times, most recently from 9267a85 to 009833b Compare August 22, 2016 22:22
tseaver
tseaver reviewed Aug 22, 2016
View reviewed changes
Comment thread gcloud/language/document.py Outdated

:type gcs_url: str
:param gcs_url: (Optional) The URL of the Google Cloud Storage object
holding the content.

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.

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.

@tseaver

tseaver commented Aug 22, 2016 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

I thought document_from_url was less useful than document_from_blob -- maybe I misunderstood? Again, I see you outpace me. :)

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes
dhermes force-pushed the language-impl-2 branch 3 times, most recently from ebb6c83 to a0ef4c9 Compare August 23, 2016 01:35
@tseaver

tseaver commented Aug 23, 2016

Copy link
Copy Markdown
Contributor

@dhermes To fix the json-docs error, add language to the mapping in scripts/generate_json_docs.py:main.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes
dhermes force-pushed the language-impl-2 branch from a0ef4c9 to 4c0f6df Compare August 23, 2016 16:01
dhermes added 5 commits August 23, 2016 10:08
@dhermes
Adding basic Document class for Natural Language.
aeec23f
@dhermes
Adding document_from_text() factory to language client.
528bfe9
Also adding client instance to the constructor for
a document.
@dhermes
Adding document_from_html() factory to language client.
837358c
@dhermes
Adding document_from_url() factory to language client.
bbd2126
@dhermes
Adding document_from_blob() factory to language client.
094c071
@dhermes
dhermes force-pushed the language-impl-2 branch from 4c0f6df to 094c071 Compare August 23, 2016 17:09
@dhermes

dhermes commented Aug 23, 2016

Copy link
Copy Markdown
Contributor Author

@tseaver Any issues? Any other factories needed?

All reactions

Sorry, something went wrong.

Uh oh!

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

tseaver
tseaver reviewed Aug 23, 2016
View reviewed changes
Comment thread docs/language-usage.rst
>>> document = client.document_from_blob(bucket='my-text-bucket',
... blob='sentiment-me.txt')
>>> document = client.document_from_blob('my-text-bucket',
... 'sentiment-me.txt')

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.

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 mentioned this pull request Aug 23, 2016
Adding Document.analyze_entities() in language package #2172
Merged
@dhermes

dhermes commented Aug 23, 2016

Copy link
Copy Markdown
Contributor Author

@tseaver Where do we stand on getting this merged? Do we want the document_from_blob() constructor? Should it behave differently? Should I punt on those factories for another PR?

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Aug 23, 2016

Copy link
Copy Markdown
Contributor

I guess leave document_from_blob as is for now, and consider using the Blob class is an enhancement like #2127.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Aug 23, 2016

Copy link
Copy Markdown
Contributor Author

Filed #2173

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Aug 23, 2016

Copy link
Copy Markdown
Contributor Author

@tseaver LGTY otherwise?

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Aug 23, 2016

Copy link
Copy Markdown
Contributor

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes
dhermes merged commit 9b3a082 into googleapis:master Aug 23, 2016
@dhermes
dhermes deleted the language-impl-2 branch August 23, 2016 20:12
@dhermes dhermes mentioned this pull request Sep 19, 2016
Cut 0.19.0 release. #2270
Merged
@theacodes theacodes unassigned jgeewax and daspecster Sep 28, 2018
parthea added a commit that referenced this pull request Nov 24, 2025
@ohmayr @parthea
feat: add async rest transport support in gapics (#2164)
a42469e
Co-authored-by: Anthonios Partheniou <[email protected]>
parthea added a commit that referenced this pull request Mar 6, 2026
@gcf-owl-bot @parthea @chalmerlowe
chore(python): remove docs from templates (#2164)
9af1f75
* chore(python): remove docs from templates

Source-Link: googleapis/synthtool@3fca64a
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:3b3a31be60853477bc39ed8d9bac162cac3ba083724cecaad54eb81d4e4dae9c

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* remove replacement in owlbot.py

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
Co-authored-by: Chalmer Lowe <[email protected]>
parthea pushed a commit that referenced this pull request Apr 1, 2026
@chelsea-lin
refactor: add agg_ops.TimeSeriesDiffOp and DateSeriesDiffOp to sqlglo…
1bd8dee
…t compiler (#2164)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

@tseaver tseaver

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.

5 participants

@dhermes @tseaver @jgeewax @daspecster @googlebot
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.