Skip to content

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
... """
>>> document = client.document_from_html(html_content,
... language='es')
>>> document = language.document_from_html(html_content,

This comment was marked as spam.

>>> 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.

>>> 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.

>>> 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