-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Document factory constructors on language client #2164
Conversation
9267a85
to
009833b
Compare
|
||
: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.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
ebb6c83
to
a0ef4c9
Compare
@dhermes To fix the json-docs error, add |
a0ef4c9
to
4c0f6df
Compare
Also adding client instance to the constructor for a document.
4c0f6df
to
094c071
Compare
@tseaver Any issues? Any other factories needed? |
>>> 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.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@tseaver Where do we stand on getting this merged? Do we want the |
I guess leave |
Filed #2173 |
@tseaver LGTY otherwise? |
LGTM |
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?