你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
VersionsOperations 类
VersionsOperations 操作。
不应直接实例化此类,而应创建一个客户端实例,该实例将为你创建该类并将其附加为属性。
- 继承
-
builtins.objectVersionsOperations
构造函数
VersionsOperations(client, config, serializer, deserializer)
参数
- client
用于服务请求的客户端。
- config
服务客户端的配置。
- serializer
对象模型序列化程序。
- deserializer
对象模型反序列化程序。
变量
- format
Lu 格式扩展。 常量值:“lu”。
方法
clone |
从所选版本创建新版本。 |
delete |
删除应用程序版本。 |
delete_unlabelled_utterance |
删除了应用程序的某个版本中未标记的话语。 |
export |
将 LUIS 应用程序导出为 JSON 格式。 |
export_lu_format |
将 LUIS 应用程序导出为文本格式。 |
get |
获取版本信息,例如创建日期、上次修改日期、终结点 URL、意向和实体计数、训练和发布状态。 |
import_lu_format |
将新版本导入 LUIS 应用程序。 |
import_method |
将新版本导入 LUIS 应用程序。 |
import_v2_app |
将新版本导入 LUIS 应用程序。 |
list |
获取此应用程序 ID 的版本列表。 |
update |
更新此应用程序版本的名称或说明。 |
clone
从所选版本创建新版本。
clone(app_id, version_id, version=None, custom_headers=None, raw=False, **operation_config)
参数
- operation_config
操作配置替代。
返回
str 或 ClientRawResponse if raw=true
返回类型
例外
delete
删除应用程序版本。
delete(app_id, version_id, custom_headers=None, raw=False, **operation_config)
参数
- operation_config
操作配置替代。
返回
OperationStatus 或 ClientRawResponse(如果 raw=true)
返回类型
例外
delete_unlabelled_utterance
删除了应用程序的某个版本中未标记的话语。
delete_unlabelled_utterance(app_id, version_id, utterance, custom_headers=None, raw=False, **operation_config)
参数
- operation_config
操作配置替代。
返回
OperationStatus 或 ClientRawResponse(如果 raw=true)
返回类型
例外
export
将 LUIS 应用程序导出为 JSON 格式。
export(app_id, version_id, custom_headers=None, raw=False, **operation_config)
参数
- operation_config
操作配置替代。
返回
LuisApp 或 ClientRawResponse(如果 raw=true)
返回类型
例外
export_lu_format
将 LUIS 应用程序导出为文本格式。
export_lu_format(app_id, version_id, custom_headers=None, raw=False, callback=None, **operation_config)
参数
- callback
- Callable[<xref:Bytes>, <xref:response=None>]
指定后,将使用流式传输的每个数据块调用 。 回调应采用两个参数:当前数据区块的字节数和响应对象。 如果正在上传数据,响应将为“无”。
- operation_config
操作配置替代。
返回
object 或 ClientRawResponse(如果 raw=true)
返回类型
例外
get
获取版本信息,例如创建日期、上次修改日期、终结点 URL、意向和实体计数、训练和发布状态。
get(app_id, version_id, custom_headers=None, raw=False, **operation_config)
参数
- operation_config
操作配置替代。
返回
如果 raw=true,则为 VersionInfo 或 ClientRawResponse
返回类型
例外
import_lu_format
将新版本导入 LUIS 应用程序。
import_lu_format(app_id, luis_app_lu, version_id=None, custom_headers=None, raw=False, **operation_config)
参数
- operation_config
操作配置替代。
返回
str 或 ClientRawResponse if raw=true
返回类型
例外
import_method
将新版本导入 LUIS 应用程序。
import_method(app_id, luis_app, version_id=None, custom_headers=None, raw=False, **operation_config)
参数
- operation_config
操作配置替代。
返回
str 或 ClientRawResponse if raw=true
返回类型
例外
import_v2_app
将新版本导入 LUIS 应用程序。
import_v2_app(app_id, luis_app_v2, version_id=None, custom_headers=None, raw=False, **operation_config)
参数
- operation_config
操作配置替代。
返回
str 或 ClientRawResponse if raw=true
返回类型
例外
list
获取此应用程序 ID 的版本列表。
list(app_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config)
参数
- operation_config
操作配置替代。
返回
list 或 ClientRawResponse(如果 raw=true)
返回类型
例外
update
更新此应用程序版本的名称或说明。
update(app_id, version_id, version=None, custom_headers=None, raw=False, **operation_config)
参数
- operation_config
操作配置替代。
返回
OperationStatus 或 ClientRawResponse(如果 raw=true)
返回类型
例外
属性
models
models = <module 'azure.cognitiveservices.language.luis.authoring.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.7\\x64\\Lib\\site-packages\\azure\\cognitiveservices\\language\\luis\\authoring\\models\\__init__.py'>
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈