FeaturesOperations 類別
FeaturesOperations 作業。
您不應該直接具現化此類別,而是建立用戶端實例來為您建立它,並將其附加為屬性。
- 繼承
-
builtins.objectFeaturesOperations
建構函式
FeaturesOperations(client, config, serializer, deserializer)
參數
名稱 | Description |
---|---|
client
必要
|
服務要求的用戶端。 |
config
必要
|
服務用戶端的設定。 |
serializer
必要
|
物件模型序列化程式。 |
deserializer
必要
|
物件模型還原序列化程式。 |
方法
add_entity_feature |
新增應用程式版本中實體要使用的新功能關聯。 |
add_intent_feature |
在應用程式的版本中,加入意圖要使用的新功能關聯。 |
add_phrase_list |
在應用程式的版本中建立新的片語清單功能。 |
delete_phrase_list |
從應用程式的版本刪除片語清單功能。 |
get_phrase_list |
取得應用程式中的片語清單功能資訊。 |
list |
取得應用程式版本中的所有擷取片語清單和模式功能。 |
list_phrase_lists |
取得應用程式版本中的所有片語清單功能。 |
update_phrase_list |
更新片語、應用程式版本中片語清單功能的狀態和名稱。 |
add_entity_feature
新增應用程式版本中實體要使用的新功能關聯。
add_entity_feature(app_id, version_id, entity_id, feature_relation_create_object, custom_headers=None, raw=False, **operation_config)
參數
名稱 | Description |
---|---|
app_id
必要
|
應用程式識別碼。 |
version_id
必要
|
版本識別碼。 |
entity_id
必要
|
實體擷取器識別碼。 |
feature_relation_create_object
必要
|
功能關聯資訊物件。 |
custom_headers
|
將新增至要求的標頭 預設值: None
|
raw
|
傳回與還原序列化回應一起的直接回應 預設值: False
|
operation_config
必要
|
作業組態覆寫。 |
傳回
類型 | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
OperationStatus 或 ClientRawResponse if raw=true |
例外狀況
類型 | Description |
---|---|
add_intent_feature
在應用程式的版本中,加入意圖要使用的新功能關聯。
add_intent_feature(app_id, version_id, intent_id, feature_relation_create_object, custom_headers=None, raw=False, **operation_config)
參數
名稱 | Description |
---|---|
app_id
必要
|
應用程式識別碼。 |
version_id
必要
|
版本識別碼。 |
intent_id
必要
|
意圖分類器識別碼。 |
feature_relation_create_object
必要
|
功能關聯資訊物件。 |
custom_headers
|
將新增至要求的標頭 預設值: None
|
raw
|
傳回與還原序列化回應一起的直接回應 預設值: False
|
operation_config
必要
|
作業組態覆寫。 |
傳回
類型 | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
OperationStatus 或 ClientRawResponse if raw=true |
例外狀況
類型 | Description |
---|---|
add_phrase_list
在應用程式的版本中建立新的片語清單功能。
add_phrase_list(app_id, version_id, phraselist_create_object, custom_headers=None, raw=False, **operation_config)
參數
名稱 | Description |
---|---|
app_id
必要
|
應用程式識別碼。 |
version_id
必要
|
版本識別碼。 |
phraselist_create_object
必要
|
Phraselist 物件,其中包含 Name、逗號分隔的 Phrases 和 isExchangeable 布林值。 isExchangeable 的預設值為 true。 |
custom_headers
|
將新增至要求的標頭 預設值: None
|
raw
|
傳回與還原序列化回應一起的直接回應 預設值: False
|
operation_config
必要
|
作業組態覆寫。 |
傳回
類型 | Description |
---|---|
int,
<xref:msrest.pipeline.ClientRawResponse>
|
int 或 ClientRawResponse if raw=true |
例外狀況
類型 | Description |
---|---|
delete_phrase_list
從應用程式的版本刪除片語清單功能。
delete_phrase_list(app_id, version_id, phraselist_id, custom_headers=None, raw=False, **operation_config)
參數
名稱 | Description |
---|---|
app_id
必要
|
應用程式識別碼。 |
version_id
必要
|
版本識別碼。 |
phraselist_id
必要
|
要刪除之功能的識別碼。 |
custom_headers
|
將新增至要求的標頭 預設值: None
|
raw
|
傳回與還原序列化回應一起的直接回應 預設值: False
|
operation_config
必要
|
作業組態覆寫。 |
傳回
類型 | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
OperationStatus 或 ClientRawResponse if raw=true |
例外狀況
類型 | Description |
---|---|
get_phrase_list
取得應用程式中的片語清單功能資訊。
get_phrase_list(app_id, version_id, phraselist_id, custom_headers=None, raw=False, **operation_config)
參數
名稱 | Description |
---|---|
app_id
必要
|
應用程式識別碼。 |
version_id
必要
|
版本識別碼。 |
phraselist_id
必要
|
要擷取之功能的識別碼。 |
custom_headers
|
將新增至要求的標頭 預設值: None
|
raw
|
傳回與還原序列化回應一起的直接回應 預設值: False
|
operation_config
必要
|
作業組態覆寫。 |
傳回
類型 | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
PhraseListFeatureInfo 或 ClientRawResponse if raw=true |
例外狀況
類型 | Description |
---|---|
list
取得應用程式版本中的所有擷取片語清單和模式功能。
list(app_id, version_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config)
參數
名稱 | Description |
---|---|
app_id
必要
|
應用程式識別碼。 |
version_id
必要
|
版本識別碼。 |
skip
|
要略過的專案數。 預設值為 0。 預設值: 0
|
take
|
要傳回的專案數。 頁面大小上限為 500。預設值為 100。 預設值: 100
|
custom_headers
|
將新增至要求的標頭 預設值: None
|
raw
|
傳回與還原序列化回應一起的直接回應 預設值: False
|
operation_config
必要
|
作業組態覆寫。 |
傳回
類型 | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
FeaturesResponseObject 或 ClientRawResponse if raw=true |
例外狀況
類型 | Description |
---|---|
list_phrase_lists
取得應用程式版本中的所有片語清單功能。
list_phrase_lists(app_id, version_id, skip=0, take=100, custom_headers=None, raw=False, **operation_config)
參數
名稱 | Description |
---|---|
app_id
必要
|
應用程式識別碼。 |
version_id
必要
|
版本識別碼。 |
skip
|
要略過的專案數。 預設值為 0。 預設值: 0
|
take
|
要傳回的專案數。 頁面大小上限為 500。預設值為 100。 預設值: 100
|
custom_headers
|
將新增至要求的標頭 預設值: None
|
raw
|
傳回與還原序列化回應一起的直接回應 預設值: False
|
operation_config
必要
|
作業組態覆寫。 |
傳回
類型 | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
list 或 ClientRawResponse if raw=true |
例外狀況
類型 | Description |
---|---|
update_phrase_list
更新片語、應用程式版本中片語清單功能的狀態和名稱。
update_phrase_list(app_id, version_id, phraselist_id, phraselist_update_object=None, custom_headers=None, raw=False, **operation_config)
參數
名稱 | Description |
---|---|
app_id
必要
|
應用程式識別碼。 |
version_id
必要
|
版本識別碼。 |
phraselist_id
必要
|
要更新之功能的識別碼。 |
phraselist_update_object
|
的新值: - 只有稱為 IsActive 的布林值,在此情況下,功能的狀態將會變更。 - 名稱、模式、模式和稱為 IsActive 的布林值,以更新功能。 預設值: None
|
custom_headers
|
將新增至要求的標頭 預設值: None
|
raw
|
傳回與還原序列化回應一起的直接回應 預設值: False
|
operation_config
必要
|
作業組態覆寫。 |
傳回
類型 | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
OperationStatus 或 ClientRawResponse if raw=true |
例外狀況
類型 | Description |
---|---|
屬性
models
models = <module 'azure.cognitiveservices.language.luis.authoring.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\cognitiveservices\\language\\luis\\authoring\\models\\__init__.py'>
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應