async def sample_classify_text(): # Create a client client = language_v1beta2.LanguageServiceAsyncClient() # Initialize request argument(s) document = language_v1beta2.Document() document.content = "content_value" request = language_v1beta2.ClassifyTextRequest(document=document, ) # Make the request response = await client.classify_text(request=request) # Handle the response print(response)
def sample_analyze_syntax(): # Create a client client = language_v1beta2.LanguageServiceClient() # Initialize request argument(s) document = language_v1beta2.Document() document.content = "content_value" request = language_v1beta2.AnalyzeSyntaxRequest(document=document, ) # Make the request response = client.analyze_syntax(request=request) # Handle the response print(response)
async def sample_analyze_entities(): # Create a client client = language_v1beta2.LanguageServiceAsyncClient() # Initialize request argument(s) document = language_v1beta2.Document() document.content = "content_value" request = language_v1beta2.AnalyzeEntitiesRequest( document=document, ) # Make the request response = await client.analyze_entities(request=request) # Handle the response print(response)