Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ async def analyze_sentiment(
) -> language_service.AnalyzeSentimentResponse:
r"""Analyzes the sentiment of the provided text.

.. code-block::
.. code-block:: python

from google.cloud import language_v1

Expand Down Expand Up @@ -322,7 +322,7 @@ async def analyze_entities(
properties.


.. code-block::
.. code-block:: python

from google.cloud import language_v1

Expand Down Expand Up @@ -428,7 +428,7 @@ async def analyze_entity_sentiment(
and its mentions.


.. code-block::
.. code-block:: python

from google.cloud import language_v1

Expand Down Expand Up @@ -536,7 +536,7 @@ async def analyze_syntax(
tags, dependency trees, and other properties.


.. code-block::
.. code-block:: python

from google.cloud import language_v1

Expand Down Expand Up @@ -637,7 +637,7 @@ async def classify_text(
) -> language_service.ClassifyTextResponse:
r"""Classifies a document into categories.

.. code-block::
.. code-block:: python

from google.cloud import language_v1

Expand Down Expand Up @@ -737,7 +737,7 @@ async def annotate_text(
analyzeSyntax provide in one call.


.. code-block::
.. code-block:: python

from google.cloud import language_v1

Expand Down
18 changes: 6 additions & 12 deletions google/cloud/language_v1/services/language_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,7 @@ def analyze_sentiment(
) -> language_service.AnalyzeSentimentResponse:
r"""Analyzes the sentiment of the provided text.


.. code-block::
.. code-block:: python

from google.cloud import language_v1

Expand Down Expand Up @@ -496,8 +495,7 @@ def analyze_entities(
properties.



.. code-block::
.. code-block:: python

from google.cloud import language_v1

Expand Down Expand Up @@ -593,8 +591,7 @@ def analyze_entity_sentiment(
and its mentions.



.. code-block::
.. code-block:: python

from google.cloud import language_v1

Expand Down Expand Up @@ -692,8 +689,7 @@ def analyze_syntax(
tags, dependency trees, and other properties.



.. code-block::
.. code-block:: python

from google.cloud import language_v1

Expand Down Expand Up @@ -784,8 +780,7 @@ def classify_text(
) -> language_service.ClassifyTextResponse:
r"""Classifies a document into categories.


.. code-block::
.. code-block:: python

from google.cloud import language_v1

Expand Down Expand Up @@ -875,8 +870,7 @@ def annotate_text(
analyzeSyntax provide in one call.



.. code-block::
.. code-block:: python

from google.cloud import language_v1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ async def analyze_sentiment(
) -> language_service.AnalyzeSentimentResponse:
r"""Analyzes the sentiment of the provided text.

.. code-block::
.. code-block:: python

from google.cloud import language_v1beta2

Expand Down Expand Up @@ -323,7 +323,7 @@ async def analyze_entities(
properties.


.. code-block::
.. code-block:: python

from google.cloud import language_v1beta2

Expand Down Expand Up @@ -429,7 +429,7 @@ async def analyze_entity_sentiment(
and its mentions.


.. code-block::
.. code-block:: python

from google.cloud import language_v1beta2

Expand Down Expand Up @@ -537,7 +537,7 @@ async def analyze_syntax(
tags, dependency trees, and other properties.


.. code-block::
.. code-block:: python

from google.cloud import language_v1beta2

Expand Down Expand Up @@ -638,7 +638,7 @@ async def classify_text(
) -> language_service.ClassifyTextResponse:
r"""Classifies a document into categories.

.. code-block::
.. code-block:: python

from google.cloud import language_v1beta2

Expand Down Expand Up @@ -738,7 +738,7 @@ async def annotate_text(
call.


.. code-block::
.. code-block:: python

from google.cloud import language_v1beta2

Expand Down
18 changes: 6 additions & 12 deletions google/cloud/language_v1beta2/services/language_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,7 @@ def analyze_sentiment(
) -> language_service.AnalyzeSentimentResponse:
r"""Analyzes the sentiment of the provided text.


.. code-block::
.. code-block:: python

from google.cloud import language_v1beta2

Expand Down Expand Up @@ -497,8 +496,7 @@ def analyze_entities(
properties.



.. code-block::
.. code-block:: python

from google.cloud import language_v1beta2

Expand Down Expand Up @@ -594,8 +592,7 @@ def analyze_entity_sentiment(
and its mentions.



.. code-block::
.. code-block:: python

from google.cloud import language_v1beta2

Expand Down Expand Up @@ -693,8 +690,7 @@ def analyze_syntax(
tags, dependency trees, and other properties.



.. code-block::
.. code-block:: python

from google.cloud import language_v1beta2

Expand Down Expand Up @@ -785,8 +781,7 @@ def classify_text(
) -> language_service.ClassifyTextResponse:
r"""Classifies a document into categories.


.. code-block::
.. code-block:: python

from google.cloud import language_v1beta2

Expand Down Expand Up @@ -876,8 +871,7 @@ def annotate_text(
call.



.. code-block::
.. code-block:: python

from google.cloud import language_v1beta2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# python3 -m pip install google-cloud-language


# [START language_generated_language_v1_LanguageService_AnalyzeEntities_async]
# [START language_v1_generated_LanguageService_AnalyzeEntities_async]
from google.cloud import language_v1


Expand All @@ -45,4 +45,4 @@ async def sample_analyze_entities():
# Handle the response
print(response)

# [END language_generated_language_v1_LanguageService_AnalyzeEntities_async]
# [END language_v1_generated_LanguageService_AnalyzeEntities_async]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# python3 -m pip install google-cloud-language


# [START language_generated_language_v1_LanguageService_AnalyzeEntities_sync]
# [START language_v1_generated_LanguageService_AnalyzeEntities_sync]
from google.cloud import language_v1


Expand All @@ -45,4 +45,4 @@ def sample_analyze_entities():
# Handle the response
print(response)

# [END language_generated_language_v1_LanguageService_AnalyzeEntities_sync]
# [END language_v1_generated_LanguageService_AnalyzeEntities_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# python3 -m pip install google-cloud-language


# [START language_generated_language_v1_LanguageService_AnalyzeEntitySentiment_async]
# [START language_v1_generated_LanguageService_AnalyzeEntitySentiment_async]
from google.cloud import language_v1


Expand All @@ -45,4 +45,4 @@ async def sample_analyze_entity_sentiment():
# Handle the response
print(response)

# [END language_generated_language_v1_LanguageService_AnalyzeEntitySentiment_async]
# [END language_v1_generated_LanguageService_AnalyzeEntitySentiment_async]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# python3 -m pip install google-cloud-language


# [START language_generated_language_v1_LanguageService_AnalyzeEntitySentiment_sync]
# [START language_v1_generated_LanguageService_AnalyzeEntitySentiment_sync]
from google.cloud import language_v1


Expand All @@ -45,4 +45,4 @@ def sample_analyze_entity_sentiment():
# Handle the response
print(response)

# [END language_generated_language_v1_LanguageService_AnalyzeEntitySentiment_sync]
# [END language_v1_generated_LanguageService_AnalyzeEntitySentiment_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# python3 -m pip install google-cloud-language


# [START language_generated_language_v1_LanguageService_AnalyzeSentiment_async]
# [START language_v1_generated_LanguageService_AnalyzeSentiment_async]
from google.cloud import language_v1


Expand All @@ -45,4 +45,4 @@ async def sample_analyze_sentiment():
# Handle the response
print(response)

# [END language_generated_language_v1_LanguageService_AnalyzeSentiment_async]
# [END language_v1_generated_LanguageService_AnalyzeSentiment_async]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# python3 -m pip install google-cloud-language


# [START language_generated_language_v1_LanguageService_AnalyzeSentiment_sync]
# [START language_v1_generated_LanguageService_AnalyzeSentiment_sync]
from google.cloud import language_v1


Expand All @@ -45,4 +45,4 @@ def sample_analyze_sentiment():
# Handle the response
print(response)

# [END language_generated_language_v1_LanguageService_AnalyzeSentiment_sync]
# [END language_v1_generated_LanguageService_AnalyzeSentiment_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# python3 -m pip install google-cloud-language


# [START language_generated_language_v1_LanguageService_AnalyzeSyntax_async]
# [START language_v1_generated_LanguageService_AnalyzeSyntax_async]
from google.cloud import language_v1


Expand All @@ -45,4 +45,4 @@ async def sample_analyze_syntax():
# Handle the response
print(response)

# [END language_generated_language_v1_LanguageService_AnalyzeSyntax_async]
# [END language_v1_generated_LanguageService_AnalyzeSyntax_async]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# python3 -m pip install google-cloud-language


# [START language_generated_language_v1_LanguageService_AnalyzeSyntax_sync]
# [START language_v1_generated_LanguageService_AnalyzeSyntax_sync]
from google.cloud import language_v1


Expand All @@ -45,4 +45,4 @@ def sample_analyze_syntax():
# Handle the response
print(response)

# [END language_generated_language_v1_LanguageService_AnalyzeSyntax_sync]
# [END language_v1_generated_LanguageService_AnalyzeSyntax_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# python3 -m pip install google-cloud-language


# [START language_generated_language_v1_LanguageService_AnnotateText_async]
# [START language_v1_generated_LanguageService_AnnotateText_async]
from google.cloud import language_v1


Expand All @@ -45,4 +45,4 @@ async def sample_annotate_text():
# Handle the response
print(response)

# [END language_generated_language_v1_LanguageService_AnnotateText_async]
# [END language_v1_generated_LanguageService_AnnotateText_async]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# python3 -m pip install google-cloud-language


# [START language_generated_language_v1_LanguageService_AnnotateText_sync]
# [START language_v1_generated_LanguageService_AnnotateText_sync]
from google.cloud import language_v1


Expand All @@ -45,4 +45,4 @@ def sample_annotate_text():
# Handle the response
print(response)

# [END language_generated_language_v1_LanguageService_AnnotateText_sync]
# [END language_v1_generated_LanguageService_AnnotateText_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# python3 -m pip install google-cloud-language


# [START language_generated_language_v1_LanguageService_ClassifyText_async]
# [START language_v1_generated_LanguageService_ClassifyText_async]
from google.cloud import language_v1


Expand All @@ -45,4 +45,4 @@ async def sample_classify_text():
# Handle the response
print(response)

# [END language_generated_language_v1_LanguageService_ClassifyText_async]
# [END language_v1_generated_LanguageService_ClassifyText_async]
Loading