文本分析 API 中的模型版本控制Model versioning in the Text Analytics API

通过版本 3 的文本分析 API,你可以选择用于你的数据的模型版本。Version 3 of the Text Analytics API lets you choose the model version that gets used on your data. 在 API 请求中使用可选的 model-version 参数选择一个模型版本。Use the optional model-version parameter to select the version of the model in your API requests. 例如:<resource-url>/text/analytics/v3.0/sentiment?model-version=2020-04-01For example: <resource-url>/text/analytics/v3.0/sentiment?model-version=2020-04-01. 如果未指定此参数,API 会默认为最新的稳定版。If this parameter isn't specified the API will default to the latest stable version.

可用版本Available versions

使用下表来查找每个托管终结点所支持的模型版本。Use the table below to find which model versions are supported by each hosted endpoint.

终结点Endpoint 支持的版本Supported Versions 最新版本latest version
/sentiment 2019-10-01, 2020-04-012019-10-01, 2020-04-01 2020-04-01
/languages 2019-10-01, 2020-07-01, 2020-09-01, 2021-01-052019-10-01, 2020-07-01, 2020-09-01, 2021-01-05 2021-01-05
/entities/linking 2019-10-01, 2020-02-012019-10-01, 2020-02-01 2020-02-01
/entities/recognition/general 2019-10-01, 2020-02-01, 2020-04-01,2021-01-152019-10-01, 2020-02-01, 2020-04-01,2021-01-15 2021-01-15
/entities/recognition/pii 2019-10-01, 2020-02-01, 2020-04-01,2020-07-01, 2021-01-152019-10-01, 2020-02-01, 2020-04-01,2020-07-01, 2021-01-15 2021-01-15
/keyphrases 2019-10-01, 2020-07-012019-10-01, 2020-07-01 2020-07-01

可以在新增功能中找到有关这些模型的更新的详细信息。You can find details about the updates for these models in What's new.

后续步骤Next steps