@@ -45,9 +45,10 @@ def document_from_text(self, content, **kwargs):
45
45
46
46
:type kwargs: dict
47
47
:param kwargs: Remaining keyword arguments to be passed along to the
48
- :class:`.Document` constructor.
48
+ :class:`~google.cloud.language.document.Document`
49
+ constructor.
49
50
50
- :rtype: :class:`.Document`
51
+ :rtype: :class:`~google.cloud.language.document .Document`
51
52
:returns: A plain-text document bound to this client.
52
53
:raises: :class:`~exceptions.TypeError` if ``doc_type`` is passed as a
53
54
keyword argument.
@@ -65,9 +66,10 @@ def document_from_html(self, content, **kwargs):
65
66
66
67
:type kwargs: dict
67
68
:param kwargs: Remaining keyword arguments to be passed along to the
68
- :class:`.Document` constructor.
69
+ :class:`~google.cloud.language.document.Document`
70
+ constructor.
69
71
70
- :rtype: :class:`.Document`
72
+ :rtype: :class:`~google.cloud.language.document .Document`
71
73
:returns: An HTML document bound to this client.
72
74
:raises: :class:`~exceptions.TypeError` if ``doc_type`` is passed as a
73
75
keyword argument.
@@ -93,9 +95,10 @@ def document_from_url(self, gcs_url,
93
95
94
96
:type kwargs: dict
95
97
:param kwargs: Remaining keyword arguments to be passed along to the
96
- :class:`.Document` constructor.
98
+ :class:`~google.cloud.language.document.Document`
99
+ constructor.
97
100
98
- :rtype: :class:`.Document`
101
+ :rtype: :class:`~google.cloud.language.document .Document`
99
102
:returns: A document bound to this client.
100
103
"""
101
104
return Document (self , gcs_url = gcs_url , doc_type = doc_type , ** kwargs )
0 commit comments