Summary of entries of Methods for language.
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient
LanguageServiceAsyncClient
(
*
,
credentials
:
typing
.
Optional
[
google
.
auth
.
credentials
.
Credentials
]
=
None
,
transport
:
typing
.
Optional
[
typing
.
Union
[
str
,
google
.
cloud
.
language_v1
.
services
.
language_service
.
transports
.
base
.
LanguageServiceTransport
,
typing
.
Callable
[[
...
],
google
.
cloud
.
language_v1
.
services
.
language_service
.
transports
.
base
.
LanguageServiceTransport
]]]
=
'grpc_asyncio'
,
client_options
:
typing
.
Optional
[
google
.
api_core
.
client_options
.
ClientOptions
]
=
None
,
client_info
:
google
.
api_core
.
gapic_v1
.
client_info
.
ClientInfo
=
Instantiates the language service async client.
See more: google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.analyze_entities
analyze_entities
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
AnalyzeEntitiesRequest
,
dict
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
Document
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary_async
.
AsyncRetry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1
.
types
.
language_service
.
AnalyzeEntitiesResponse
Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.
See more: google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.analyze_entities
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.analyze_entity_sentiment
analyze_entity_sentiment
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
AnalyzeEntitySentimentRequest
,
dict
,
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
Document
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary_async
.
AsyncRetry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1
.
types
.
language_service
.
AnalyzeEntitySentimentResponse
Finds entities, similar to xref_AnalyzeEntities in the text and analyzes sentiment associated with each entity and its mentions.
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.analyze_sentiment
analyze_sentiment
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
AnalyzeSentimentRequest
,
dict
,
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
Document
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary_async
.
AsyncRetry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1
.
types
.
language_service
.
AnalyzeSentimentResponse
Analyzes the sentiment of the provided text.
See more: google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.analyze_sentiment
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.analyze_syntax
analyze_syntax
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
AnalyzeSyntaxRequest
,
dict
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
Document
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary_async
.
AsyncRetry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1
.
types
.
language_service
.
AnalyzeSyntaxResponse
Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.
See more: google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.analyze_syntax
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.annotate_text
annotate_text
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
AnnotateTextRequest
,
dict
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
Document
]
=
None
,
features
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
AnnotateTextRequest
.
Features
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary_async
.
AsyncRetry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1
.
types
.
language_service
.
AnnotateTextResponse
A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.
See more: google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.annotate_text
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.classify_text
classify_text
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
ClassifyTextRequest
,
dict
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
Document
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary_async
.
AsyncRetry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1
.
types
.
language_service
.
ClassifyTextResponse
Classifies a document into categories.
See more: google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.classify_text
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.common_billing_account_path
common_billing_account_path
(
billing_account
:
str
)
-
> str
Returns a fully-qualified billing_account string.
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.common_folder_path
common_folder_path
(
folder
:
str
)
-
> str
Returns a fully-qualified folder string.
See more: google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.common_folder_path
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.common_location_path
common_location_path
(
project
:
str
,
location
:
str
)
-
> str
Returns a fully-qualified location string.
See more: google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.common_location_path
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.common_organization_path
common_organization_path
(
organization
:
str
)
-
> str
Returns a fully-qualified organization string.
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.common_project_path
common_project_path
(
project
:
str
)
-
> str
Returns a fully-qualified project string.
See more: google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.common_project_path
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.from_service_account_file
from_service_account_file
(
filename
:
str
,
*
args
,
**
kwargs
)
Creates an instance of this client using the provided credentials file.
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.from_service_account_info
from_service_account_info
(
info
:
dict
,
*
args
,
**
kwargs
)
Creates an instance of this client using the provided credentials info.
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.from_service_account_json
from_service_account_json
(
filename
:
str
,
*
args
,
**
kwargs
)
Creates an instance of this client using the provided credentials file.
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source
(
client_options
:
typing
.
Optional
[
google
.
api_core
.
client_options
.
ClientOptions
]
=
None
,
)
Return the API endpoint and client cert source for mutual TLS.
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.get_transport_class
get_transport_class
(
label
:
typing
.
Optional
[
str
]
=
None
,
)
-
> typing
.
Type
[
google
.
cloud
.
language_v1
.
services
.
language_service
.
transports
.
base
.
LanguageServiceTransport
]
Returns an appropriate transport class.
See more: google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.get_transport_class
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.moderate_text
moderate_text
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
ModerateTextRequest
,
dict
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
Document
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary_async
.
AsyncRetry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1
.
types
.
language_service
.
ModerateTextResponse
Moderates a document for harmful and sensitive categories.
See more: google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.moderate_text
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.parse_common_billing_account_path
parse_common_billing_account_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a billing_account path into its component segments.
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.parse_common_folder_path
parse_common_folder_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a folder path into its component segments.
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.parse_common_location_path
parse_common_location_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a location path into its component segments.
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.parse_common_organization_path
parse_common_organization_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a organization path into its component segments.
google.cloud.language_v1.services.language_service.LanguageServiceAsyncClient.parse_common_project_path
parse_common_project_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a project path into its component segments.
google.cloud.language_v1.services.language_service.LanguageServiceClient
LanguageServiceClient
(
*
,
credentials
:
typing
.
Optional
[
google
.
auth
.
credentials
.
Credentials
]
=
None
,
transport
:
typing
.
Optional
[
typing
.
Union
[
str
,
google
.
cloud
.
language_v1
.
services
.
language_service
.
transports
.
base
.
LanguageServiceTransport
,
typing
.
Callable
[[
...
],
google
.
cloud
.
language_v1
.
services
.
language_service
.
transports
.
base
.
LanguageServiceTransport
]]]
=
None
,
client_options
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
client_options
.
ClientOptions
,
dict
]]
=
None
,
client_info
:
google
.
api_core
.
gapic_v1
.
client_info
.
ClientInfo
=
Instantiates the language service client.
See more: google.cloud.language_v1.services.language_service.LanguageServiceClient
google.cloud.language_v1.services.language_service.LanguageServiceClient.__exit__
__exit__
(
type
,
value
,
traceback
)
Releases underlying transport's resources.
See more: google.cloud.language_v1.services.language_service.LanguageServiceClient. exit
google.cloud.language_v1.services.language_service.LanguageServiceClient.analyze_entities
analyze_entities
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
AnalyzeEntitiesRequest
,
dict
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
Document
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary
.
Retry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1
.
types
.
language_service
.
AnalyzeEntitiesResponse
Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.
See more: google.cloud.language_v1.services.language_service.LanguageServiceClient.analyze_entities
google.cloud.language_v1.services.language_service.LanguageServiceClient.analyze_entity_sentiment
analyze_entity_sentiment
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
AnalyzeEntitySentimentRequest
,
dict
,
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
Document
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary
.
Retry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1
.
types
.
language_service
.
AnalyzeEntitySentimentResponse
Finds entities, similar to xref_AnalyzeEntities in the text and analyzes sentiment associated with each entity and its mentions.
See more: google.cloud.language_v1.services.language_service.LanguageServiceClient.analyze_entity_sentiment
google.cloud.language_v1.services.language_service.LanguageServiceClient.analyze_sentiment
analyze_sentiment
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
AnalyzeSentimentRequest
,
dict
,
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
Document
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary
.
Retry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1
.
types
.
language_service
.
AnalyzeSentimentResponse
Analyzes the sentiment of the provided text.
See more: google.cloud.language_v1.services.language_service.LanguageServiceClient.analyze_sentiment
google.cloud.language_v1.services.language_service.LanguageServiceClient.analyze_syntax
analyze_syntax
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
AnalyzeSyntaxRequest
,
dict
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
Document
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary
.
Retry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1
.
types
.
language_service
.
AnalyzeSyntaxResponse
Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.
See more: google.cloud.language_v1.services.language_service.LanguageServiceClient.analyze_syntax
google.cloud.language_v1.services.language_service.LanguageServiceClient.annotate_text
annotate_text
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
AnnotateTextRequest
,
dict
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
Document
]
=
None
,
features
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
AnnotateTextRequest
.
Features
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary
.
Retry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1
.
types
.
language_service
.
AnnotateTextResponse
A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.
See more: google.cloud.language_v1.services.language_service.LanguageServiceClient.annotate_text
google.cloud.language_v1.services.language_service.LanguageServiceClient.classify_text
classify_text
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
ClassifyTextRequest
,
dict
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
Document
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary
.
Retry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1
.
types
.
language_service
.
ClassifyTextResponse
Classifies a document into categories.
See more: google.cloud.language_v1.services.language_service.LanguageServiceClient.classify_text
google.cloud.language_v1.services.language_service.LanguageServiceClient.common_billing_account_path
common_billing_account_path
(
billing_account
:
str
)
-
> str
Returns a fully-qualified billing_account string.
See more: google.cloud.language_v1.services.language_service.LanguageServiceClient.common_billing_account_path
google.cloud.language_v1.services.language_service.LanguageServiceClient.common_folder_path
common_folder_path
(
folder
:
str
)
-
> str
Returns a fully-qualified folder string.
See more: google.cloud.language_v1.services.language_service.LanguageServiceClient.common_folder_path
google.cloud.language_v1.services.language_service.LanguageServiceClient.common_location_path
common_location_path
(
project
:
str
,
location
:
str
)
-
> str
Returns a fully-qualified location string.
See more: google.cloud.language_v1.services.language_service.LanguageServiceClient.common_location_path
google.cloud.language_v1.services.language_service.LanguageServiceClient.common_organization_path
common_organization_path
(
organization
:
str
)
-
> str
Returns a fully-qualified organization string.
See more: google.cloud.language_v1.services.language_service.LanguageServiceClient.common_organization_path
google.cloud.language_v1.services.language_service.LanguageServiceClient.common_project_path
common_project_path
(
project
:
str
)
-
> str
Returns a fully-qualified project string.
See more: google.cloud.language_v1.services.language_service.LanguageServiceClient.common_project_path
google.cloud.language_v1.services.language_service.LanguageServiceClient.from_service_account_file
from_service_account_file
(
filename
:
str
,
*
args
,
**
kwargs
)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.language_v1.services.language_service.LanguageServiceClient.from_service_account_file
google.cloud.language_v1.services.language_service.LanguageServiceClient.from_service_account_info
from_service_account_info
(
info
:
dict
,
*
args
,
**
kwargs
)
Creates an instance of this client using the provided credentials info.
See more: google.cloud.language_v1.services.language_service.LanguageServiceClient.from_service_account_info
google.cloud.language_v1.services.language_service.LanguageServiceClient.from_service_account_json
from_service_account_json
(
filename
:
str
,
*
args
,
**
kwargs
)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.language_v1.services.language_service.LanguageServiceClient.from_service_account_json
google.cloud.language_v1.services.language_service.LanguageServiceClient.get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source
(
client_options
:
typing
.
Optional
[
google
.
api_core
.
client_options
.
ClientOptions
]
=
None
,
)
Deprecated.
google.cloud.language_v1.services.language_service.LanguageServiceClient.moderate_text
moderate_text
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
ModerateTextRequest
,
dict
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1
.
types
.
language_service
.
Document
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary
.
Retry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1
.
types
.
language_service
.
ModerateTextResponse
Moderates a document for harmful and sensitive categories.
See more: google.cloud.language_v1.services.language_service.LanguageServiceClient.moderate_text
google.cloud.language_v1.services.language_service.LanguageServiceClient.parse_common_billing_account_path
parse_common_billing_account_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a billing_account path into its component segments.
google.cloud.language_v1.services.language_service.LanguageServiceClient.parse_common_folder_path
parse_common_folder_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a folder path into its component segments.
See more: google.cloud.language_v1.services.language_service.LanguageServiceClient.parse_common_folder_path
google.cloud.language_v1.services.language_service.LanguageServiceClient.parse_common_location_path
parse_common_location_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a location path into its component segments.
See more: google.cloud.language_v1.services.language_service.LanguageServiceClient.parse_common_location_path
google.cloud.language_v1.services.language_service.LanguageServiceClient.parse_common_organization_path
parse_common_organization_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a organization path into its component segments.
google.cloud.language_v1.services.language_service.LanguageServiceClient.parse_common_project_path
parse_common_project_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a project path into its component segments.
See more: google.cloud.language_v1.services.language_service.LanguageServiceClient.parse_common_project_path
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient
LanguageServiceAsyncClient
(
*
,
credentials
:
typing
.
Optional
[
google
.
auth
.
credentials
.
Credentials
]
=
None
,
transport
:
typing
.
Optional
[
typing
.
Union
[
str
,
google
.
cloud
.
language_v1beta2
.
services
.
language_service
.
transports
.
base
.
LanguageServiceTransport
,
typing
.
Callable
[[
...
],
google
.
cloud
.
language_v1beta2
.
services
.
language_service
.
transports
.
base
.
LanguageServiceTransport
]]]
=
'grpc_asyncio'
,
client_options
:
typing
.
Optional
[
google
.
api_core
.
client_options
.
ClientOptions
]
=
None
,
client_info
:
google
.
api_core
.
gapic_v1
.
client_info
.
ClientInfo
=
Instantiates the language service async client.
See more: google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.analyze_entities
analyze_entities
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnalyzeEntitiesRequest
,
dict
,
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
Document
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary_async
.
AsyncRetry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnalyzeEntitiesResponse
Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.
See more: google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.analyze_entities
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.analyze_entity_sentiment
analyze_entity_sentiment
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnalyzeEntitySentimentRequest
,
dict
,
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
Document
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary_async
.
AsyncRetry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> (
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnalyzeEntitySentimentResponse
)
Finds entities, similar to xref_AnalyzeEntities in the text and analyzes sentiment associated with each entity and its mentions.
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.analyze_sentiment
analyze_sentiment
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnalyzeSentimentRequest
,
dict
,
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
Document
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary_async
.
AsyncRetry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnalyzeSentimentResponse
Analyzes the sentiment of the provided text.
See more: google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.analyze_sentiment
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.analyze_syntax
analyze_syntax
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnalyzeSyntaxRequest
,
dict
,
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
Document
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary_async
.
AsyncRetry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnalyzeSyntaxResponse
Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.
See more: google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.analyze_syntax
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.annotate_text
annotate_text
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnnotateTextRequest
,
dict
,
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
Document
]
=
None
,
features
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnnotateTextRequest
.
Features
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary_async
.
AsyncRetry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnnotateTextResponse
A convenience method that provides all syntax, sentiment, entity, and classification features in one call.
See more: google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.annotate_text
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.classify_text
classify_text
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
ClassifyTextRequest
,
dict
,
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
Document
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary_async
.
AsyncRetry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
ClassifyTextResponse
Classifies a document into categories.
See more: google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.classify_text
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.common_billing_account_path
common_billing_account_path
(
billing_account
:
str
)
-
> str
Returns a fully-qualified billing_account string.
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.common_folder_path
common_folder_path
(
folder
:
str
)
-
> str
Returns a fully-qualified folder string.
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.common_location_path
common_location_path
(
project
:
str
,
location
:
str
)
-
> str
Returns a fully-qualified location string.
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.common_organization_path
common_organization_path
(
organization
:
str
)
-
> str
Returns a fully-qualified organization string.
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.common_project_path
common_project_path
(
project
:
str
)
-
> str
Returns a fully-qualified project string.
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.from_service_account_file
from_service_account_file
(
filename
:
str
,
*
args
,
**
kwargs
)
Creates an instance of this client using the provided credentials file.
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.from_service_account_info
from_service_account_info
(
info
:
dict
,
*
args
,
**
kwargs
)
Creates an instance of this client using the provided credentials info.
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.from_service_account_json
from_service_account_json
(
filename
:
str
,
*
args
,
**
kwargs
)
Creates an instance of this client using the provided credentials file.
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source
(
client_options
:
typing
.
Optional
[
google
.
api_core
.
client_options
.
ClientOptions
]
=
None
,
)
Return the API endpoint and client cert source for mutual TLS.
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.get_transport_class
get_transport_class
(
label
:
typing
.
Optional
[
str
]
=
None
,
)
-
> typing
.
Type
[
google
.
cloud
.
language_v1beta2
.
services
.
language_service
.
transports
.
base
.
LanguageServiceTransport
]
Returns an appropriate transport class.
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.moderate_text
moderate_text
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
ModerateTextRequest
,
dict
,
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
Document
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary_async
.
AsyncRetry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
ModerateTextResponse
Moderates a document for harmful and sensitive categories.
See more: google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.moderate_text
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.parse_common_billing_account_path
parse_common_billing_account_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a billing_account path into its component segments.
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.parse_common_folder_path
parse_common_folder_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a folder path into its component segments.
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.parse_common_location_path
parse_common_location_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a location path into its component segments.
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.parse_common_organization_path
parse_common_organization_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a organization path into its component segments.
google.cloud.language_v1beta2.services.language_service.LanguageServiceAsyncClient.parse_common_project_path
parse_common_project_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a project path into its component segments.
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient
LanguageServiceClient
(
*
,
credentials
:
typing
.
Optional
[
google
.
auth
.
credentials
.
Credentials
]
=
None
,
transport
:
typing
.
Optional
[
typing
.
Union
[
str
,
google
.
cloud
.
language_v1beta2
.
services
.
language_service
.
transports
.
base
.
LanguageServiceTransport
,
typing
.
Callable
[[
...
],
google
.
cloud
.
language_v1beta2
.
services
.
language_service
.
transports
.
base
.
LanguageServiceTransport
]]]
=
None
,
client_options
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
client_options
.
ClientOptions
,
dict
]]
=
None
,
client_info
:
google
.
api_core
.
gapic_v1
.
client_info
.
ClientInfo
=
Instantiates the language service client.
See more: google.cloud.language_v1beta2.services.language_service.LanguageServiceClient
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.__exit__
__exit__
(
type
,
value
,
traceback
)
Releases underlying transport's resources.
See more: google.cloud.language_v1beta2.services.language_service.LanguageServiceClient. exit
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.analyze_entities
analyze_entities
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnalyzeEntitiesRequest
,
dict
,
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
Document
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary
.
Retry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnalyzeEntitiesResponse
Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.
See more: google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.analyze_entities
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.analyze_entity_sentiment
analyze_entity_sentiment
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnalyzeEntitySentimentRequest
,
dict
,
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
Document
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary
.
Retry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> (
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnalyzeEntitySentimentResponse
)
Finds entities, similar to xref_AnalyzeEntities in the text and analyzes sentiment associated with each entity and its mentions.
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.analyze_sentiment
analyze_sentiment
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnalyzeSentimentRequest
,
dict
,
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
Document
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary
.
Retry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnalyzeSentimentResponse
Analyzes the sentiment of the provided text.
See more: google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.analyze_sentiment
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.analyze_syntax
analyze_syntax
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnalyzeSyntaxRequest
,
dict
,
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
Document
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary
.
Retry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnalyzeSyntaxResponse
Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.
See more: google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.analyze_syntax
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.annotate_text
annotate_text
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnnotateTextRequest
,
dict
,
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
Document
]
=
None
,
features
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnnotateTextRequest
.
Features
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary
.
Retry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
AnnotateTextResponse
A convenience method that provides all syntax, sentiment, entity, and classification features in one call.
See more: google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.annotate_text
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.classify_text
classify_text
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
ClassifyTextRequest
,
dict
,
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
Document
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary
.
Retry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
ClassifyTextResponse
Classifies a document into categories.
See more: google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.classify_text
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.common_billing_account_path
common_billing_account_path
(
billing_account
:
str
)
-
> str
Returns a fully-qualified billing_account string.
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.common_folder_path
common_folder_path
(
folder
:
str
)
-
> str
Returns a fully-qualified folder string.
See more: google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.common_folder_path
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.common_location_path
common_location_path
(
project
:
str
,
location
:
str
)
-
> str
Returns a fully-qualified location string.
See more: google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.common_location_path
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.common_organization_path
common_organization_path
(
organization
:
str
)
-
> str
Returns a fully-qualified organization string.
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.common_project_path
common_project_path
(
project
:
str
)
-
> str
Returns a fully-qualified project string.
See more: google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.common_project_path
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.from_service_account_file
from_service_account_file
(
filename
:
str
,
*
args
,
**
kwargs
)
Creates an instance of this client using the provided credentials file.
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.from_service_account_info
from_service_account_info
(
info
:
dict
,
*
args
,
**
kwargs
)
Creates an instance of this client using the provided credentials info.
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.from_service_account_json
from_service_account_json
(
filename
:
str
,
*
args
,
**
kwargs
)
Creates an instance of this client using the provided credentials file.
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source
(
client_options
:
typing
.
Optional
[
google
.
api_core
.
client_options
.
ClientOptions
]
=
None
,
)
Deprecated.
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.moderate_text
moderate_text
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
ModerateTextRequest
,
dict
,
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
Document
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary
.
Retry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v1beta2
.
types
.
language_service
.
ModerateTextResponse
Moderates a document for harmful and sensitive categories.
See more: google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.moderate_text
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.parse_common_billing_account_path
parse_common_billing_account_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a billing_account path into its component segments.
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.parse_common_folder_path
parse_common_folder_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a folder path into its component segments.
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.parse_common_location_path
parse_common_location_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a location path into its component segments.
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.parse_common_organization_path
parse_common_organization_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a organization path into its component segments.
google.cloud.language_v1beta2.services.language_service.LanguageServiceClient.parse_common_project_path
parse_common_project_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a project path into its component segments.
google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient
LanguageServiceAsyncClient
(
*
,
credentials
:
typing
.
Optional
[
google
.
auth
.
credentials
.
Credentials
]
=
None
,
transport
:
typing
.
Optional
[
typing
.
Union
[
str
,
google
.
cloud
.
language_v2
.
services
.
language_service
.
transports
.
base
.
LanguageServiceTransport
,
typing
.
Callable
[[
...
],
google
.
cloud
.
language_v2
.
services
.
language_service
.
transports
.
base
.
LanguageServiceTransport
]]]
=
'grpc_asyncio'
,
client_options
:
typing
.
Optional
[
google
.
api_core
.
client_options
.
ClientOptions
]
=
None
,
client_info
:
google
.
api_core
.
gapic_v1
.
client_info
.
ClientInfo
=
Instantiates the language service async client.
See more: google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient
google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.analyze_entities
analyze_entities
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
AnalyzeEntitiesRequest
,
dict
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
Document
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary_async
.
AsyncRetry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v2
.
types
.
language_service
.
AnalyzeEntitiesResponse
Finds named entities (currently proper names and common nouns) in the text along with entity types, probability, mentions for each entity, and other properties.
See more: google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.analyze_entities
google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.analyze_sentiment
analyze_sentiment
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
AnalyzeSentimentRequest
,
dict
,
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
Document
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary_async
.
AsyncRetry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v2
.
types
.
language_service
.
AnalyzeSentimentResponse
Analyzes the sentiment of the provided text.
See more: google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.analyze_sentiment
google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.annotate_text
annotate_text
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
AnnotateTextRequest
,
dict
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
Document
]
=
None
,
features
:
typing
.
Optional
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
AnnotateTextRequest
.
Features
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary_async
.
AsyncRetry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v2
.
types
.
language_service
.
AnnotateTextResponse
A convenience method that provides all features in one call.
See more: google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.annotate_text
google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.classify_text
classify_text
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
ClassifyTextRequest
,
dict
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
Document
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary_async
.
AsyncRetry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v2
.
types
.
language_service
.
ClassifyTextResponse
Classifies a document into categories.
See more: google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.classify_text
google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.common_billing_account_path
common_billing_account_path
(
billing_account
:
str
)
-
> str
Returns a fully-qualified billing_account string.
google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.common_folder_path
common_folder_path
(
folder
:
str
)
-
> str
Returns a fully-qualified folder string.
See more: google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.common_folder_path
google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.common_location_path
common_location_path
(
project
:
str
,
location
:
str
)
-
> str
Returns a fully-qualified location string.
See more: google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.common_location_path
google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.common_organization_path
common_organization_path
(
organization
:
str
)
-
> str
Returns a fully-qualified organization string.
google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.common_project_path
common_project_path
(
project
:
str
)
-
> str
Returns a fully-qualified project string.
See more: google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.common_project_path
google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.from_service_account_file
from_service_account_file
(
filename
:
str
,
*
args
,
**
kwargs
)
Creates an instance of this client using the provided credentials file.
google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.from_service_account_info
from_service_account_info
(
info
:
dict
,
*
args
,
**
kwargs
)
Creates an instance of this client using the provided credentials info.
google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.from_service_account_json
from_service_account_json
(
filename
:
str
,
*
args
,
**
kwargs
)
Creates an instance of this client using the provided credentials file.
google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source
(
client_options
:
typing
.
Optional
[
google
.
api_core
.
client_options
.
ClientOptions
]
=
None
,
)
Return the API endpoint and client cert source for mutual TLS.
google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.get_transport_class
get_transport_class
(
label
:
typing
.
Optional
[
str
]
=
None
,
)
-
> typing
.
Type
[
google
.
cloud
.
language_v2
.
services
.
language_service
.
transports
.
base
.
LanguageServiceTransport
]
Returns an appropriate transport class.
See more: google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.get_transport_class
google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.moderate_text
moderate_text
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
ModerateTextRequest
,
dict
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
Document
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary_async
.
AsyncRetry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v2
.
types
.
language_service
.
ModerateTextResponse
Moderates a document for harmful and sensitive categories.
See more: google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.moderate_text
google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.parse_common_billing_account_path
parse_common_billing_account_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a billing_account path into its component segments.
google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.parse_common_folder_path
parse_common_folder_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a folder path into its component segments.
google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.parse_common_location_path
parse_common_location_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a location path into its component segments.
google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.parse_common_organization_path
parse_common_organization_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a organization path into its component segments.
google.cloud.language_v2.services.language_service.LanguageServiceAsyncClient.parse_common_project_path
parse_common_project_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a project path into its component segments.
google.cloud.language_v2.services.language_service.LanguageServiceClient
LanguageServiceClient
(
*
,
credentials
:
typing
.
Optional
[
google
.
auth
.
credentials
.
Credentials
]
=
None
,
transport
:
typing
.
Optional
[
typing
.
Union
[
str
,
google
.
cloud
.
language_v2
.
services
.
language_service
.
transports
.
base
.
LanguageServiceTransport
,
typing
.
Callable
[[
...
],
google
.
cloud
.
language_v2
.
services
.
language_service
.
transports
.
base
.
LanguageServiceTransport
]]]
=
None
,
client_options
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
client_options
.
ClientOptions
,
dict
]]
=
None
,
client_info
:
google
.
api_core
.
gapic_v1
.
client_info
.
ClientInfo
=
Instantiates the language service client.
See more: google.cloud.language_v2.services.language_service.LanguageServiceClient
google.cloud.language_v2.services.language_service.LanguageServiceClient.__exit__
__exit__
(
type
,
value
,
traceback
)
Releases underlying transport's resources.
See more: google.cloud.language_v2.services.language_service.LanguageServiceClient. exit
google.cloud.language_v2.services.language_service.LanguageServiceClient.analyze_entities
analyze_entities
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
AnalyzeEntitiesRequest
,
dict
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
Document
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary
.
Retry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v2
.
types
.
language_service
.
AnalyzeEntitiesResponse
Finds named entities (currently proper names and common nouns) in the text along with entity types, probability, mentions for each entity, and other properties.
See more: google.cloud.language_v2.services.language_service.LanguageServiceClient.analyze_entities
google.cloud.language_v2.services.language_service.LanguageServiceClient.analyze_sentiment
analyze_sentiment
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
AnalyzeSentimentRequest
,
dict
,
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
Document
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary
.
Retry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v2
.
types
.
language_service
.
AnalyzeSentimentResponse
Analyzes the sentiment of the provided text.
See more: google.cloud.language_v2.services.language_service.LanguageServiceClient.analyze_sentiment
google.cloud.language_v2.services.language_service.LanguageServiceClient.annotate_text
annotate_text
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
AnnotateTextRequest
,
dict
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
Document
]
=
None
,
features
:
typing
.
Optional
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
AnnotateTextRequest
.
Features
]
=
None
,
encoding_type
:
typing
.
Optional
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
EncodingType
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary
.
Retry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v2
.
types
.
language_service
.
AnnotateTextResponse
A convenience method that provides all features in one call.
See more: google.cloud.language_v2.services.language_service.LanguageServiceClient.annotate_text
google.cloud.language_v2.services.language_service.LanguageServiceClient.classify_text
classify_text
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
ClassifyTextRequest
,
dict
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
Document
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary
.
Retry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v2
.
types
.
language_service
.
ClassifyTextResponse
Classifies a document into categories.
See more: google.cloud.language_v2.services.language_service.LanguageServiceClient.classify_text
google.cloud.language_v2.services.language_service.LanguageServiceClient.common_billing_account_path
common_billing_account_path
(
billing_account
:
str
)
-
> str
Returns a fully-qualified billing_account string.
See more: google.cloud.language_v2.services.language_service.LanguageServiceClient.common_billing_account_path
google.cloud.language_v2.services.language_service.LanguageServiceClient.common_folder_path
common_folder_path
(
folder
:
str
)
-
> str
Returns a fully-qualified folder string.
See more: google.cloud.language_v2.services.language_service.LanguageServiceClient.common_folder_path
google.cloud.language_v2.services.language_service.LanguageServiceClient.common_location_path
common_location_path
(
project
:
str
,
location
:
str
)
-
> str
Returns a fully-qualified location string.
See more: google.cloud.language_v2.services.language_service.LanguageServiceClient.common_location_path
google.cloud.language_v2.services.language_service.LanguageServiceClient.common_organization_path
common_organization_path
(
organization
:
str
)
-
> str
Returns a fully-qualified organization string.
See more: google.cloud.language_v2.services.language_service.LanguageServiceClient.common_organization_path
google.cloud.language_v2.services.language_service.LanguageServiceClient.common_project_path
common_project_path
(
project
:
str
)
-
> str
Returns a fully-qualified project string.
See more: google.cloud.language_v2.services.language_service.LanguageServiceClient.common_project_path
google.cloud.language_v2.services.language_service.LanguageServiceClient.from_service_account_file
from_service_account_file
(
filename
:
str
,
*
args
,
**
kwargs
)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.language_v2.services.language_service.LanguageServiceClient.from_service_account_file
google.cloud.language_v2.services.language_service.LanguageServiceClient.from_service_account_info
from_service_account_info
(
info
:
dict
,
*
args
,
**
kwargs
)
Creates an instance of this client using the provided credentials info.
See more: google.cloud.language_v2.services.language_service.LanguageServiceClient.from_service_account_info
google.cloud.language_v2.services.language_service.LanguageServiceClient.from_service_account_json
from_service_account_json
(
filename
:
str
,
*
args
,
**
kwargs
)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.language_v2.services.language_service.LanguageServiceClient.from_service_account_json
google.cloud.language_v2.services.language_service.LanguageServiceClient.get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source
(
client_options
:
typing
.
Optional
[
google
.
api_core
.
client_options
.
ClientOptions
]
=
None
,
)
Deprecated.
google.cloud.language_v2.services.language_service.LanguageServiceClient.moderate_text
moderate_text
(
request
:
typing
.
Optional
[
typing
.
Union
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
ModerateTextRequest
,
dict
]
]
=
None
,
*
,
document
:
typing
.
Optional
[
google
.
cloud
.
language_v2
.
types
.
language_service
.
Document
]
=
None
,
retry
:
typing
.
Optional
[
typing
.
Union
[
google
.
api_core
.
retry
.
retry_unary
.
Retry
,
google
.
api_core
.
gapic_v1
.
method
.
_MethodDefault
,
]
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
timeout
:
typing
.
Union
[
float
,
object
]
=
_MethodDefault
.
_DEFAULT_VALUE
,
metadata
:
typing
.
Sequence
[
typing
.
Tuple
[
str
,
str
]]
=
()
)
-
> google
.
cloud
.
language_v2
.
types
.
language_service
.
ModerateTextResponse
Moderates a document for harmful and sensitive categories.
See more: google.cloud.language_v2.services.language_service.LanguageServiceClient.moderate_text
google.cloud.language_v2.services.language_service.LanguageServiceClient.parse_common_billing_account_path
parse_common_billing_account_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a billing_account path into its component segments.
google.cloud.language_v2.services.language_service.LanguageServiceClient.parse_common_folder_path
parse_common_folder_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a folder path into its component segments.
See more: google.cloud.language_v2.services.language_service.LanguageServiceClient.parse_common_folder_path
google.cloud.language_v2.services.language_service.LanguageServiceClient.parse_common_location_path
parse_common_location_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a location path into its component segments.
See more: google.cloud.language_v2.services.language_service.LanguageServiceClient.parse_common_location_path
google.cloud.language_v2.services.language_service.LanguageServiceClient.parse_common_organization_path
parse_common_organization_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a organization path into its component segments.
google.cloud.language_v2.services.language_service.LanguageServiceClient.parse_common_project_path
parse_common_project_path
(
path
:
str
)
-
> typing
.
Dict
[
str
,
str
]
Parse a project path into its component segments.
See more: google.cloud.language_v2.services.language_service.LanguageServiceClient.parse_common_project_path