PredictionOperations 클래스
PredictionOperations 작업.
이 클래스를 직접 인스턴스화하지 말고 이를 만들어 특성으로 연결하는 클라이언트 instance 만듭니다.
- 상속
-
builtins.objectPredictionOperations
생성자
PredictionOperations(client, config, serializer, deserializer)
매개 변수
Name | Description |
---|---|
client
필수
|
서비스 요청에 대한 클라이언트입니다. |
config
필수
|
서비스 클라이언트의 구성입니다. |
serializer
필수
|
개체 모델 직렬 변환기입니다. |
deserializer
필수
|
개체 모델 역직렬 변환기입니다. |
메서드
get_slot_prediction |
애플리케이션 슬롯에 대한 예측을 가져옵니다. |
get_version_prediction |
애플리케이션 버전에 대한 예측을 가져옵니다. |
get_slot_prediction
애플리케이션 슬롯에 대한 예측을 가져옵니다.
get_slot_prediction(app_id, slot_name, prediction_request, verbose=None, show_all_intents=None, log=None, custom_headers=None, raw=False, **operation_config)
매개 변수
Name | Description |
---|---|
app_id
필수
|
애플리케이션 ID입니다. |
slot_name
필수
|
애플리케이션 슬롯 이름입니다. |
prediction_request
필수
|
예측 요청 매개 변수입니다. |
verbose
|
엔터티 예측에 대한 추가 메타데이터를 가져올지 여부를 나타냅니다. 기본값: None
|
show_all_intents
|
응답의 모든 의도를 반환할지 아니면 상위 의도만 반환할지 여부를 나타냅니다. 기본값: None
|
log
|
엔드포인트 쿼리를 기록할지 여부를 나타냅니다. 기본값: None
|
custom_headers
|
요청에 추가될 헤더 기본값: None
|
raw
|
는 역직렬화된 응답과 함께 직접 응답을 반환합니다. 기본값: False
|
operation_config
필수
|
작업 구성 재정의. |
반환
형식 | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
PredictionResponse 또는 ClientRawResponse if raw=true |
예외
형식 | Description |
---|---|
get_version_prediction
애플리케이션 버전에 대한 예측을 가져옵니다.
get_version_prediction(app_id, version_id, prediction_request, verbose=None, show_all_intents=None, log=None, custom_headers=None, raw=False, **operation_config)
매개 변수
Name | Description |
---|---|
app_id
필수
|
애플리케이션 ID입니다. |
version_id
필수
|
애플리케이션 버전 ID입니다. |
prediction_request
필수
|
예측 요청 매개 변수입니다. |
verbose
|
엔터티 예측에 대한 추가 메타데이터를 가져올지 여부를 나타냅니다. 기본값: None
|
show_all_intents
|
응답의 모든 의도를 반환할지 아니면 상위 의도만 반환할지 여부를 나타냅니다. 기본값: None
|
log
|
엔드포인트 쿼리를 기록할지 여부를 나타냅니다. 기본값: None
|
custom_headers
|
요청에 추가될 헤더 기본값: None
|
raw
|
는 역직렬화된 응답과 함께 직접 응답을 반환합니다. 기본값: False
|
operation_config
필수
|
작업 구성 재정의. |
반환
형식 | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
PredictionResponse 또는 ClientRawResponse if raw=true |
예외
형식 | Description |
---|---|
특성
models
models = <module 'azure.cognitiveservices.language.luis.runtime.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\cognitiveservices\\language\\luis\\runtime\\models\\__init__.py'>
Azure SDK for Python
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기