你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

VersionsOperations 类

VersionsOperations 操作。

不应直接实例化此类,而应创建一个客户端实例,该实例将为你创建该类并将其附加为属性。

继承
builtins.object
VersionsOperations

构造函数

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)

参数

app_id
str
必需

应用程序 ID。

version_id
str
必需

版本 ID。

version
str
默认值: None

克隆模型的新版本。

custom_headers
dict
默认值: None

将添加到请求的标头

raw
bool
默认值: False

返回直接响应以及反序列化的响应

operation_config
必需

操作配置替代

返回

str 或 ClientRawResponse if raw=true

返回类型

str,

例外

delete

删除应用程序版本。

delete(app_id, version_id, custom_headers=None, raw=False, **operation_config)

参数

app_id
str
必需

应用程序 ID。

version_id
str
必需

版本 ID。

custom_headers
dict
默认值: None

将添加到请求的标头

raw
bool
默认值: False

返回直接响应以及反序列化的响应

operation_config
必需

操作配置替代

返回

OperationStatus 或 ClientRawResponse(如果 raw=true)

返回类型

例外

delete_unlabelled_utterance

删除了应用程序的某个版本中未标记的话语。

delete_unlabelled_utterance(app_id, version_id, utterance, custom_headers=None, raw=False, **operation_config)

参数

app_id
str
必需

应用程序 ID。

version_id
str
必需

版本 ID。

utterance
str
必需

要删除的话语文本。

custom_headers
dict
默认值: None

将添加到请求的标头

raw
bool
默认值: False

返回直接响应以及反序列化的响应

operation_config
必需

操作配置替代

返回

OperationStatus 或 ClientRawResponse(如果 raw=true)

返回类型

例外

export

将 LUIS 应用程序导出为 JSON 格式。

export(app_id, version_id, custom_headers=None, raw=False, **operation_config)

参数

app_id
str
必需

应用程序 ID。

version_id
str
必需

版本 ID。

custom_headers
dict
默认值: None

将添加到请求的标头

raw
bool
默认值: False

返回直接响应以及反序列化的响应

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)

参数

app_id
str
必需

应用程序 ID。

version_id
str
必需

版本 ID。

custom_headers
dict
默认值: None

将添加到请求的标头

raw
bool
默认值: False

返回直接响应以及反序列化的响应

callback
Callable[<xref:Bytes>, <xref:response=None>]
默认值: None

指定后,将使用流式传输的每个数据块调用 。 回调应采用两个参数:当前数据区块的字节数和响应对象。 如果正在上传数据,响应将为“无”。

operation_config
必需

操作配置替代

返回

object 或 ClientRawResponse(如果 raw=true)

返回类型

例外

get

获取版本信息,例如创建日期、上次修改日期、终结点 URL、意向和实体计数、训练和发布状态。

get(app_id, version_id, custom_headers=None, raw=False, **operation_config)

参数

app_id
str
必需

应用程序 ID。

version_id
str
必需

版本 ID。

custom_headers
dict
默认值: None

将添加到请求的标头

raw
bool
默认值: False

返回直接响应以及反序列化的响应

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)

参数

app_id
str
必需

应用程序 ID。

luis_app_lu
str
必需

表示 LUIS 应用程序结构的 LU。

version_id
str
默认值: None

要导入的新 versionId。 如果未指定,将从导入的对象读取 versionId。

custom_headers
dict
默认值: None

将添加到请求的标头

raw
bool
默认值: False

返回直接响应以及反序列化的响应

operation_config
必需

操作配置替代

返回

str 或 ClientRawResponse if raw=true

返回类型

str,

例外

import_method

将新版本导入 LUIS 应用程序。

import_method(app_id, luis_app, version_id=None, custom_headers=None, raw=False, **operation_config)

参数

app_id
str
必需

应用程序 ID。

luis_app
LuisApp
必需

LUIS 应用程序结构。

version_id
str
默认值: None

要导入的新 versionId。 如果未指定,将从导入的对象读取 versionId。

custom_headers
dict
默认值: None

将添加到请求的标头

raw
bool
默认值: False

返回直接响应以及反序列化的响应

operation_config
必需

操作配置替代

返回

str 或 ClientRawResponse if raw=true

返回类型

str,

例外

import_v2_app

将新版本导入 LUIS 应用程序。

import_v2_app(app_id, luis_app_v2, version_id=None, custom_headers=None, raw=False, **operation_config)

参数

app_id
str
必需

应用程序 ID。

luis_app_v2
LuisAppV2
必需

LUIS 应用程序结构。

version_id
str
默认值: None

要导入的新 versionId。 如果未指定,将从导入的对象读取 versionId。

custom_headers
dict
默认值: None

将添加到请求的标头

raw
bool
默认值: False

返回直接响应以及反序列化的响应

operation_config
必需

操作配置替代

返回

str 或 ClientRawResponse if raw=true

返回类型

str,

例外

list

获取此应用程序 ID 的版本列表。

list(app_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config)

参数

app_id
str
必需

应用程序 ID。

skip
int
默认值: 0

要跳过的条目数。 默认值为 0。

take
int
默认值: 100

要返回的条目数。 最大页面大小为 500。默认值为 100。

custom_headers
dict
默认值: None

将添加到请求的标头

raw
bool
默认值: False

返回直接响应以及反序列化的响应

operation_config
必需

操作配置替代

返回

list 或 ClientRawResponse(如果 raw=true)

返回类型

例外

update

更新此应用程序版本的名称或说明。

update(app_id, version_id, version=None, custom_headers=None, raw=False, **operation_config)

参数

app_id
str
必需

应用程序 ID。

version_id
str
必需

版本 ID。

version
str
默认值: None

克隆模型的新版本。

custom_headers
dict
默认值: None

将添加到请求的标头

raw
bool
默认值: False

返回直接响应以及反序列化的响应

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'>