Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions language/google/cloud/language/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ def document_from_text(self, content, **kwargs):

:type kwargs: dict
:param kwargs: Remaining keyword arguments to be passed along to the
:class:`.Document` constructor.
:class:`~google.cloud.language.document.Document`
constructor.

:rtype: :class:`.Document`
:rtype: :class:`~google.cloud.language.document.Document`
:returns: A plain-text document bound to this client.
:raises: :class:`~exceptions.TypeError` if ``doc_type`` is passed as a
keyword argument.
Expand All @@ -65,9 +66,10 @@ def document_from_html(self, content, **kwargs):

:type kwargs: dict
:param kwargs: Remaining keyword arguments to be passed along to the
:class:`.Document` constructor.
:class:`~google.cloud.language.document.Document`
constructor.

:rtype: :class:`.Document`
:rtype: :class:`~google.cloud.language.document.Document`
:returns: An HTML document bound to this client.
:raises: :class:`~exceptions.TypeError` if ``doc_type`` is passed as a
keyword argument.
Expand All @@ -93,9 +95,10 @@ def document_from_url(self, gcs_url,

:type kwargs: dict
:param kwargs: Remaining keyword arguments to be passed along to the
:class:`.Document` constructor.
:class:`~google.cloud.language.document.Document`
constructor.

:rtype: :class:`.Document`
:rtype: :class:`~google.cloud.language.document.Document`
:returns: A document bound to this client.
"""
return Document(self, gcs_url=gcs_url, doc_type=doc_type, **kwargs)