Skip to content
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

Fix broken language examples. #3220

Merged
merged 2 commits into from
Mar 30, 2017

Conversation

daspecster
Copy link
Contributor

@dhermes I think you meant to attach Document to Client but for the sake of the timeline I just updated the examples.

@daspecster daspecster added api: language Issues related to the Cloud Natural Language API API. docs labels Mar 28, 2017
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 28, 2017
@@ -99,8 +100,8 @@ over-ridden:
... </body>
... </html>
... """
>>> document = client.document_from_html(html_content,
... language='es')
>>> document = language.document_from_html(html_content,

This comment was marked as spam.

@@ -153,7 +154,7 @@ metadata and other properties.

>>> text_content = ("Michelangelo Caravaggio, Italian painter, is "
... "known for 'The Calling of Saint Matthew'.")
>>> document = client.document(text_content)
>>> document = language.document.Document(client, content=text_content)

This comment was marked as spam.

@@ -188,7 +189,7 @@ only supports English text.
.. code-block:: python

>>> text_content = "Jogging isn't very fun."
>>> document = client.document(text_content)
>>> document = language.document.Document(client, content=text_content)

This comment was marked as spam.

@@ -229,7 +230,7 @@ the response is :data:`None`.
.. code-block:: python

>>> text_content = 'The cow jumped over the Moon.'
>>> document = client.document(text_content)
>>> document = language.document.Document(client, content=text_content)

This comment was marked as spam.

@lukesneeringer lukesneeringer merged commit 0541dc0 into googleapis:master Mar 30, 2017
@daspecster daspecster deleted the update-language-examples branch March 30, 2017 14:51
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Development

Successfully merging this pull request may close these issues.

5 participants