PredictionOperations 클래스

PredictionOperations 작업.

이 클래스를 직접 인스턴스화하지 말고 이를 만들어 특성으로 연결하는 클라이언트 instance 만듭니다.

상속
builtins.object
PredictionOperations

생성자

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
필수
str

애플리케이션 ID입니다.

slot_name
필수
str

애플리케이션 슬롯 이름입니다.

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
필수
str

애플리케이션 ID입니다.

version_id
필수
str

애플리케이션 버전 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'>