Sdílet prostřednictvím


Model - Get Regex Entity Entity Info

Získá informace o entitě regulárního výrazu ve verzi aplikace.

GET {Endpoint}/luis/authoring/v3.0-preview/apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}

Parametry identifikátoru URI

Name V Vyžadováno Typ Description
appId
path True

string (uuid)

ID aplikace.

Endpoint
path True

string

Podporované koncové body služeb Cognitive Services (protokol a název hostitele, například: https://westus.api.cognitive.microsoft.com).

regexEntityId
path True

string (uuid)

ID modelu entity regulárního výrazu.

versionId
path True

string

ID verze.

Hlavička požadavku

Name Vyžadováno Typ Description
Ocp-Apim-Subscription-Key True

string

Odpovědi

Name Typ Description
200 OK

RegexEntityExtractor

Informace o modelu entity regulárního výrazu

Other Status Codes

ErrorResponse

Chybová odpověď.

Zabezpečení

Ocp-Apim-Subscription-Key

Typ: apiKey
V: header

Příklady

Successful Get Regex Entity request

Ukázkový požadavek

GET {Endpoint}/luis/authoring/v3.0-preview/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/regexentities/3d73462d-98f0-4dcd-8d30-fab9e65f2e73

Ukázková odpověď

{
  "id": "3d73462d-98f0-4dcd-8d30-fab9e65f2e73",
  "name": "AirportCodeRegex",
  "regexPattern": "[a-z]{3}",
  "typeId": 8,
  "readableType": "Regex Entity Extractor",
  "roles": [
    {
      "id": "3d73462d-98f0-4dcd-8d30-fab9e65f2e73",
      "name": "role 1"
    },
    {
      "id": "3d73462d-98f0-4dcd-8d30-fab9e65f2e73",
      "name": "role 2"
    }
  ]
}

Definice

Name Description
EntityRole

Role extraktoru entit

ErrorResponse

Chybová odpověď při vyvolání operace v rozhraní API

ReadableType

Úplný název typu entity.

RegexEntityExtractor

Extraktor entity regulárního výrazu.

EntityRole

Role extraktoru entit

Name Typ Description
id

string (uuid)

ID role entity.

name

string

Název role entity.

ErrorResponse

Chybová odpověď při vyvolání operace v rozhraní API

Name Typ Description
errorType

string

ReadableType

Úplný název typu entity.

Hodnota Description
Child Entity Extractor
Closed List Entity Extractor
Composite Entity Extractor
Entity Extractor
Hierarchical Child Entity Extractor
Hierarchical Entity Extractor
Intent Classifier
List Entity Extractor
Pattern.Any Entity Extractor
Prebuilt Entity Extractor
Regex Entity Extractor

RegexEntityExtractor

Extraktor entity regulárního výrazu.

Name Typ Description
id

string (uuid)

ID modelu entity.

name

string

Název modelu entity.

readableType

ReadableType

Úplný název typu entity.

regexPattern

string

Vzor entity regulárního výrazu.

roles

EntityRole[]

Seznam extractorů entity Pattern.Any

typeId

integer

ID typu Entity Model.