在Google Cloud NL Python API上设置用于情绪分析的端点URL

2024-06-02 14:19:30 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在努力让Google NL情绪分析使用其Python API工作。由于我们正在使用一个连接到Google NL服务的AWS包装器服务,我需要在调用LanguageServiceClient函数之前设置端点url。但是,我不知道如何在Python API上实现这一点

我在Google NL api for Java中看到了一个LanguageServiceSettings函数,可以在其中设置端点-LanguageServiceSettings.newBuilder().setEndpoint(endpoint_url)。pythonapi有没有等效的方法?如果没有,请欣赏有关设置端点url的任何输入。谢谢


Tags: 函数awsapiurlpythonapifornlgoogle