다음을 통해 공유


Text Moderation - Detect Language

이 작업은 입력 콘텐츠의 언어를 검색합니다. 제출된 텍스트에서 주된 언어에 대한 ISO 639-3 코드를 반환합니다. 110개 이상의 언어가 지원됩니다.

POST {Endpoint}/contentmoderator/moderate/v1.0/ProcessText/DetectLanguage

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
Endpoint
path True

string

지원되는 Azure Cognitive Services 엔드포인트(프로토콜 및 호스트 이름(예: https://westus.api.cognitive.microsoft.com).

요청 헤더

Media Types: "text/plain", "text/html", "text/xml", "text/markdown"

Name 필수 형식 Description
Ocp-Apim-Subscription-Key True

string

Content-Type True

string

콘텐츠 형식입니다.

요청 본문

Media Types: "text/plain", "text/html", "text/xml", "text/markdown"

Name 형식 Description
Text Content

object

화면에 표시할 콘텐츠입니다.

응답

Name 형식 Description
200 OK

DetectedLanguage

검색된 언어 결과입니다.

Other Status Codes

APIError

오류 응답입니다.

보안

Ocp-Apim-Subscription-Key

형식: apiKey
In(다음 안에): header

예제

Detect Language request

샘플 요청

POST {Endpoint}/contentmoderator/moderate/v1.0/ProcessText/DetectLanguage



"Is this a crap email abcdef@abcd.com, phone: 6657789887, IP: 255.255.255.255, 1 Microsoft Way, Redmond, WA 98052"

샘플 응답

{
  "DetectedLanguage": "eng",
  "Status": {
    "Code": 3000,
    "Description": "OK",
    "Exception": ""
  },
  "TrackingId": "2826a49-b976-419e-98e8-c5532c1n78c6"
}

정의

Name Description
APIError

API가 반환하는 오류 정보입니다.

DetectedLanguage

검색된 언어 결과입니다.

Error

오류 본문입니다.

Status

상태 속성입니다.

APIError

API가 반환하는 오류 정보입니다.

Name 형식 Description
Error

Error

오류 본문입니다.

DetectedLanguage

검색된 언어 결과입니다.

Name 형식 Description
DetectedLanguage

string

검색된 언어입니다.

Status

Status

검색된 언어 상태.

TrackingId

string

추적 ID입니다.

Error

오류 본문입니다.

Name 형식 Description
Code

string

Message

string

Status

상태 속성입니다.

Name 형식 Description
Code

integer

상태 코드입니다.

Description

string

상태 설명입니다.

Exception

string

예외 상태.