From 2b18c8cac366fd24aedd09e9fb6ebac0a8b7b48e Mon Sep 17 00:00:00 2001 From: "Amber Chen (Centific Technologies Inc)" Date: Wed, 15 Oct 2025 13:58:55 -0700 Subject: [PATCH 1/6] added entities of 20251115preview --- .../data-plane/LanguageAnalyzeText/main.tsp | 4 +- .../models/common.models.tsp | 6 +- .../models/custom.text.tsp | 18 +- .../models/entity.linking.tsp | 4 +- .../models/entity.recognition.tsp | 35 +- .../LanguageAnalyzeText/models/healthcare.tsp | 4 +- .../models/key.phrase.extraction.tsp | 2 +- .../models/pii.entity.recognition.tsp | 175 +- .../models/sentiment.analysis.tsp | 2 +- .../models/summarization.tsp | 12 +- .../2025-11-15-preview/analyzetext.json | 10149 ++++++++++++++++ 11 files changed, 10360 insertions(+), 51 deletions(-) create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/analyzetext.json diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/main.tsp b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/main.tsp index 45dfb0320641..387b01ea9105 100644 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/main.tsp +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/main.tsp @@ -55,8 +55,8 @@ enum Versions { /** Version 2025-11-01 */ v2025_11_01: "2025-11-01", - /** Version 2025-05-15-preview */ - v2025_05_15_preview: "2025-05-15-preview", + /** Version 2025-11-15-preview */ + v2025_11_15_preview: "2025-11-15-preview", } alias ServiceTraits = NoRepeatableRequests & diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/common.models.tsp b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/common.models.tsp index 74a8d2e3434e..508f95c09b18 100644 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/common.models.tsp +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/common.models.tsp @@ -188,11 +188,11 @@ model AnalyzeTextJobsInput { tasks: AnalyzeTextLROTask[]; /** Default language to use for records requesting automatic language detection. */ - @added(Versions.v2025_05_15_preview) + @added(Versions.v2025_11_15_preview) defaultLanguage?: string; /** Optional duration in seconds after which the job will be canceled if not completed. */ - @added(Versions.v2025_05_15_preview) + @added(Versions.v2025_11_15_preview) cancelAfter?: float32; } @@ -358,7 +358,7 @@ model MultiLanguageInput { } /** Defines the detected language for the document. */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) model DocumentDetectedLanguage { /** If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document. */ detectedLanguage?: DetectedLanguage; diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/custom.text.tsp b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/custom.text.tsp index 8273033d9d31..0a25676220a4 100644 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/custom.text.tsp +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/custom.text.tsp @@ -29,12 +29,12 @@ model CustomEntitiesLROTask extends AnalyzeTextLROTask { /** Contains the list of detected custom entities result for the documents. */ model CustomEntitiesResult is CustomResult { /** Enumeration of the document results. */ - @typeChangedFrom(Versions.v2025_05_15_preview, EntitiesDocumentResult[]) + @typeChangedFrom(Versions.v2025_11_15_preview, EntitiesDocumentResult[]) documents: EntitiesDocumentResultWithDetectedLanguage[]; } /** Contains the entity recognition task result for the document with detected language. */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) model EntitiesDocumentResultWithDetectedLanguage { ...EntitiesDocumentResult; ...DocumentDetectedLanguage; @@ -56,7 +56,7 @@ model CustomSingleLabelClassificationLROTask extends AnalyzeTextLROTask { /** Contains the custom label classification results. */ model CustomLabelClassificationResult is CustomResult { /** Response by document */ - @typeChangedFrom(Versions.v2025_05_15_preview, ClassificationDocumentResult[]) + @typeChangedFrom(Versions.v2025_11_15_preview, ClassificationDocumentResult[]) documents: ClassificationDocumentResultWithDetectedLanguage[]; } @@ -125,7 +125,7 @@ model CustomMultiLabelClassificationLROResult extends AnalyzeTextLROResult { } /** This object contains information of the detected entity components. The possible component types may expand in the future. Parsing code should handle unexpected values gracefully */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) @discriminator("entityComponentKind") model EntityComponentInformation { /** Kind of entity component. */ @@ -133,7 +133,7 @@ model EntityComponentInformation { } /** Kind of entity components supported. */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) union entityComponentKind { string, @@ -148,7 +148,7 @@ union entityComponentKind { } /** This object contains information of the prebuilt component of the detected entity. */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) model PrebuiltComponent extends EntityComponentInformation { /** Kind of entity component. */ entityComponentKind: entityComponentKind.PrebuiltComponent; @@ -158,7 +158,7 @@ model PrebuiltComponent extends EntityComponentInformation { } /** This object contains information of the learned component of the detected entity. */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) model LearnedComponent extends EntityComponentInformation { /** Kind of entity component. */ entityComponentKind: entityComponentKind.LearnedComponent; @@ -168,7 +168,7 @@ model LearnedComponent extends EntityComponentInformation { } /** This object contains information of the list component of the detected entity. */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) model ListComponent extends EntityComponentInformation { /** Kind of entity component. */ entityComponentKind: entityComponentKind.ListComponent; @@ -178,7 +178,7 @@ model ListComponent extends EntityComponentInformation { } /** Specifies either one or multiple categories per document. Defaults to multi classification which may return more than one class for each document. */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) union ClassificationType { string, diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/entity.linking.tsp b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/entity.linking.tsp index 51e5118ecc36..3eb1b50e24c6 100644 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/entity.linking.tsp +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/entity.linking.tsp @@ -46,7 +46,7 @@ model EntityLinkingTaskResult extends AnalyzeTextTaskResult { /** Entity linking result. */ model EntityLinkingResult is PreBuiltResult { /** Response by document */ - @typeChangedFrom(Versions.v2025_05_15_preview, LinkedEntitiesDocumentResult[]) + @typeChangedFrom(Versions.v2025_11_15_preview, LinkedEntitiesDocumentResult[]) documents: EntityLinkingResultWithDetectedLanguage[]; } @@ -57,7 +57,7 @@ model LinkedEntitiesDocumentResult is DocumentResult { } /** Entity linking document result with auto language detection. */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) model EntityLinkingResultWithDetectedLanguage { ...LinkedEntitiesDocumentResult; ...DocumentDetectedLanguage; diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/entity.recognition.tsp b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/entity.recognition.tsp index f01c8371201e..ea2adafe59e6 100644 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/entity.recognition.tsp +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/entity.recognition.tsp @@ -56,7 +56,7 @@ model EntitiesTaskResult extends AnalyzeTextTaskResult { kind: AnalyzeTextTaskResultsKind.EntityRecognitionResults; /** Results for entity recognition. */ - @typeChangedFrom(Versions.v2025_05_15_preview, EntitiesResult) + @typeChangedFrom(Versions.v2025_11_15_preview, EntitiesResult) results: EntitiesWithMetadataAutoResult; } @@ -68,7 +68,7 @@ model EntitiesResult is PreBuiltResult { } /** Contains the entity recognition task result. */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) model EntitiesWithMetadataAutoResult is PreBuiltResult { /** Response by document */ documents: EntitiesDocumentResultWithMetadataDetectedLanguage[]; @@ -81,7 +81,7 @@ model EntitiesDocumentResult is DocumentResult { } /** Contains the entity recognition task result for the document with metadata and detected language. */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) model EntitiesDocumentResultWithMetadataDetectedLanguage is EntitiesDocumentResultWithMetadata { ...DocumentDetectedLanguage; @@ -950,6 +950,10 @@ union MetadataKind { /** Metadata for temporal span values. */ TemporalSpanMetadata: "TemporalSpanMetadata", + + /** Metadata for address-related values. */ + @added(Versions.v2025_11_15_preview) + AddressMetadata: "AddressMetadata", } /** Represents Metadata for quantities. */ @@ -1090,6 +1094,31 @@ model BaseTemporalMetadata { dateValues?: DateValue[]; } +/** Represents the Address entity Metadata model. */ +@added(Versions.v2025_11_15_preview) +model AddressMetadata extends BaseMetadata { + /** Kind of the metadata. */ + metadataKind: MetadataKind.AddressMetadata; + + /** The fully formatted address string following postal conventions for the address's country/region. */ + formatedAddress: string; + + /** The full address string as recognized from the input text. */ + addressLines: string[]; + + /** The city name of the address. */ + city?: string; + + /** The state or province name of the address. */ + state?: string; + + /** The postal or ZIP code of the address. */ + postalCode?: string; + + /** The country or region name of the address. */ + countryOrRegion?: string; +} + /** A Metadata for date entity instances. */ @added(Versions.v2024_11_01) model DateMetadata extends BaseMetadata { diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/healthcare.tsp b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/healthcare.tsp index 02b2d239d792..5aebfcd088e2 100644 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/healthcare.tsp +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/healthcare.tsp @@ -76,7 +76,7 @@ model HealthcareLROTask extends AnalyzeTextLROTask { model HealthcareResult is PreBuiltResult { /** List of result objects for the processed Healthcare documents. */ @typeChangedFrom( - Versions.v2025_05_15_preview, + Versions.v2025_11_15_preview, HealthcareEntitiesDocumentResult[] ) documents: HealthcareEntitiesDocumentResultWithDocumentDetectedLanguage[]; @@ -488,7 +488,7 @@ model HealthcareLROResult extends AnalyzeTextLROResult { } /** Result object for the processed Healthcare document with detected language. */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) model HealthcareEntitiesDocumentResultWithDocumentDetectedLanguage is HealthcareEntitiesDocumentResult { ...DocumentDetectedLanguage; diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/key.phrase.extraction.tsp b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/key.phrase.extraction.tsp index 7ac1bf0ac4e6..6d947d6fafee 100644 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/key.phrase.extraction.tsp +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/key.phrase.extraction.tsp @@ -43,7 +43,7 @@ model KeyPhraseTaskResult extends AnalyzeTextTaskResult { @doc("Contains the KeyPhraseResult.") model KeyPhraseResult is PreBuiltResult { @doc("Response by document") - @typeChangedFrom(Versions.v2025_05_15_preview, KeyPhrasesDocumentResult[]) + @typeChangedFrom(Versions.v2025_11_15_preview, KeyPhrasesDocumentResult[]) documents: KeyPhrasesDocumentResultWithDetectedLanguage[]; } diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/pii.entity.recognition.tsp b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/pii.entity.recognition.tsp index 2f66066cadf9..43c4acac93c5 100644 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/pii.entity.recognition.tsp +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/pii.entity.recognition.tsp @@ -32,24 +32,36 @@ model PiiTaskParameters is PreBuiltTaskParametersLoggingOptOut { stringIndexType?: StringIndexType = StringIndexType.TextElements_v8; /** Enumeration of PII categories to be excluded in the response. */ - @added(Versions.v2025_05_15_preview) + @added(Versions.v2025_11_15_preview) excludePiiCategories?: PiiCategoriesExclude[]; /** RedactionPolicy to be used on the input. */ - @added(Versions.v2025_05_15_preview) + @added(Versions.v2025_11_15_preview) redactionPolicy?: BaseRedactionPolicy; /** Policy for specific words and terms that should be excluded from detection by the PII detection service */ - @added(Versions.v2025_05_15_preview) + @added(Versions.v2025_11_15_preview) valueExclusionPolicy?: ValueExclusionPolicy; /** (Optional) request parameter that allows the user to provide synonyms for context words that to enhance pii entity detection. */ - @added(Versions.v2025_05_15_preview) + @added(Versions.v2025_11_15_preview) entitySynonyms?: EntitySynonyms[]; + + /** List of RedactionPolicies to be used on the input. */ + @added(Versions.v2025_11_15_preview) + redactionPolicies?: BaseRedactionPolicy[]; + + /** Confidence score threshold configuration for PII entity recognition */ + @added(Versions.v2025_11_15_preview) + confidenceScoreThreshold?: ConfidenceScoreThreshold; + + /** Disable entity validation for PII entity recognition */ + @added(Versions.v2025_11_15_preview) + disableEntityValidation?: boolean = false; } /** Object that allows the user to provide synonyms for context words that to enhance pii entity detection. */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) model EntitySynonyms { /** The entity name */ entityType: EntityCategory; @@ -58,8 +70,31 @@ model EntitySynonyms { synonyms: EntitySynonym[]; } +/** Configuration for confidence score threshold for PII entity recognition */ +@added(Versions.v2025_11_15_preview) +model ConfidenceScoreThreshold { + /** Minimum confidence score threshold for the PII entities to be returned in the response. Entities with a confidence score below this threshold will be filtered out. Value should be between 0.0 and 1.0 */ + default: float32 = 0.3; + + /** List of confidence score threshold overrides for specific PII categories */ + overrides?: ConfidenceScoreThresholdOverride[]; +} + +/** Confidence score threshold override for a specific PII category */ +@added(Versions.v2025_11_15_preview) +model ConfidenceScoreThresholdOverride { + /** The PII category for which to override the confidence score threshold */ + entity: PiiCategoriesExclude; + + /** The confidence score threshold for the specified PII category */ + value: float32; + + /** The 2 letter ISO 639-1 language for which the override applies. If not specified, the override applies to all languages. */ + language: string +} + /** The entity synonyms used to enhance pii entity detection */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) model EntitySynonym { /** The synonym to be used for context */ synonym: string; @@ -69,7 +104,7 @@ model EntitySynonym { } /** Policy for specific words and terms that should be excluded from detection by the PII detection service */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) model ValueExclusionPolicy { /** Option to make the values excluded values case sensitive */ caseSensitive: boolean = false; @@ -79,39 +114,69 @@ model ValueExclusionPolicy { } /** The abstract base class for RedactionPolicy. */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) @discriminator("policyKind") model BaseRedactionPolicy { /** The entity RedactionPolicy object kind. */ policyKind: RedactionPolicyKind = RedactionPolicyKind.characterMask; + + /** (Optional) describes the PII categories to which the redaction policy will be applied. If not specified, the redaction policy will be applied to all PII categories. */ + @added(Versions.v2025_11_15_preview) + entityTypes?: PiiCategoriesExclude[]; + + /** (Optional) name of the redaction policy for identification purposes. */ + @added(Versions.v2025_11_15_preview) + policyName?: string; + + /** (Optional) flag to indicate whether this redaction policy is the default policy to be applied when no specific policy is defined for a PII category. Only one policy can be marked as default. */ + @added(Versions.v2025_11_15_preview) + isDefaultPolicy?: boolean = false; } /** Represents the policy of redacting with a redaction character */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) model CharacterMaskPolicyType extends BaseRedactionPolicy { /** The entity RedactionPolicy object kind. */ policyKind: RedactionPolicyKind.characterMask; /** Optional parameter to use a Custom Character to be used for redaction in PII responses. Default character will bce * as before. We allow specific ascii characters for redaction. */ redactionCharacter?: redactionCharacter = redactionCharacter.asterisk; + + /** Optional parameter to indicate the length of unmasked characters at the end of the redacted PII entity. Default is 0. */ + @added(Versions.v2025_11_15_preview) + unmaskLength?: int32; + + /** Optional parameter to indicate whether to unmask characters from the end of the redacted PII entity. Default is true. */ + @added(Versions.v2025_11_15_preview) + unmaskFromEnd?: boolean = true; +} + +/** Represents the policy of replacing detected PII with synthetic values. */ +@added(Versions.v2025_11_15_preview) +model SyntheticReplacementPolicyType extends BaseRedactionPolicy { + /** The entity RedactionPolicy object kind. */ + policyKind: RedactionPolicyKind.syntheticReplacement; + + /** Optional flag to indicate whether to preserve the original data format in the synthetic replacement. Default is false. */ + preserveDataFormat?: boolean; } /** Represents the policy of not redacting found PII. */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) model NoMaskPolicyType extends BaseRedactionPolicy { /** The entity RedactionPolicy object kind. */ policyKind: RedactionPolicyKind.noMask; } /** Represents the policy of redacting PII with the entity type. */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) model EntityMaskPolicyType extends BaseRedactionPolicy { /** The entity OverlapPolicy object kind. */ policyKind: RedactionPolicyKind.entityMask; } /** Kinds of redaction policies supported. */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) union RedactionPolicyKind { string, @@ -123,6 +188,10 @@ union RedactionPolicyKind { /** Redact detected entities with entity type. */ entityMask: "entityMask", + + /** Replace detected entities with synthetic values. */ + @added(Versions.v2025_11_15_preview) + syntheticReplacement: "syntheticReplacement", } /** Contains the analyze text PIIEntityRecognition LRO task. */ @@ -149,7 +218,7 @@ model PiiTaskResult extends AnalyzeTextTaskResult { #suppress "@azure-tools/typespec-azure-core/casing-style" model PiiResult is PreBuiltResult { /** Response by document */ - @typeChangedFrom(Versions.v2025_05_15_preview, PiiEntitiesDocumentResult[]) + @typeChangedFrom(Versions.v2025_11_15_preview, PiiEntitiesDocumentResult[]) documents: PiiResultWithDetectedLanguage[]; } @@ -174,15 +243,15 @@ model PiiEntityWithTags is Entity { tags?: EntityTag[]; /** Optional field which will be returned only when using the redaction policy kind “MaskWithEntityType”. This field will contain the exact mask text used to mask the PII entity in the original text */ - @added(Versions.v2025_05_15_preview) + @added(Versions.v2025_11_15_preview) mask?: string; /** Start position of masked text in the redacted text when using the redaction policy kind “MaskWithEntityType”. */ - @added(Versions.v2025_05_15_preview) + @added(Versions.v2025_11_15_preview) maskOffset?: int32; /** The length of the masked text. Will be present when using the redaction policy kind “MaskWithEntityType”. */ - @added(Versions.v2025_05_15_preview) + @added(Versions.v2025_11_15_preview) maskLength?: int32; } @@ -193,7 +262,7 @@ model PiiEntitiesDocumentResult is DocumentResult { redactedText: string; /** Recognized entities in the document. */ - @typeChangedFrom(Versions.v2025_05_15_preview, Entity[]) + @typeChangedFrom(Versions.v2025_11_15_preview, Entity[]) entities: PiiEntityWithTags[]; } @@ -760,7 +829,7 @@ union PiiCategoriesExclude { DriversLicenseNumber: "DriversLicenseNumber", /** Neighborhood */ - @added(Versions.v2025_05_15_preview) + @added(Versions.v2025_11_15_preview) Neighborhood: "Neighborhood", /** Sort Code. 6-digit number used in the UK to identify a specific bank and branch where a bank account is held */ @@ -768,19 +837,81 @@ union PiiCategoriesExclude { SortCode: "SortCode", /** PIN */ - @added(Versions.v2025_05_15_preview) + @added(Versions.v2025_11_15_preview) PIN: "PIN", /** VIN */ - @added(Versions.v2025_05_15_preview) + @added(Versions.v2025_11_15_preview) VIN: "VIN", /** VIN */ @added(Versions.v2025_11_01) - @removed(Versions.v2025_05_15_preview) VehicleIdentificationNumber: "VehicleIdentificationNumber", /** License Plate */ - @added(Versions.v2025_05_15_preview) + @added(Versions.v2025_11_15_preview) LicensePlate: "LicensePlate", + + /** KR Passport Number */ + @added(Versions.v2025_11_15_preview) + KRPassportNumber: "KRPassportNumber", + + /** KR Driver's License Number */ + @added(Versions.v2025_11_15_preview) + KRDriversLicenseNumber: "KRDriversLicenseNumber", + + /** KR Social Security Number */ + @added(Versions.v2025_11_15_preview) + KRSocialSecurityNumber: "KRSocialSecurityNumber", + + /** Government Issued ID */ + @added(Versions.v2025_11_15_preview) + GovernmentIssuedId: "GovernmentIssuedId", + + /** Password */ + @added(Versions.v2025_11_15_preview) + Password: "Password", + + /** National Identification */ + @added(Versions.v2025_11_15_preview) + NationalId: "NationalId", + + /** Zip Code */ + @added(Versions.v2025_11_15_preview) + ZipCode: "ZipCode", + + /** Card Verification Value */ + @added(Versions.v2025_11_15_preview) + CVV: "CVV", + /** Expiration Date */ + @added(Versions.v2025_11_15_preview) + ExpirationDate: "ExpirationDate", + + /** CA Social Identification Number */ + @added(Versions.v2025_11_15_preview) + CASocialIdentificationNumber: "CASocialIdentificationNumber", + + /** Medicare Beneficiary ID */ + @added(Versions.v2025_11_15_preview) + MedicareBeneficiaryId: "USMedicareBeneficiaryId", + + /** Location */ + @added(Versions.v2025_11_15_preview) + Location: "Location", + + /** City */ + @added(Versions.v2025_11_15_preview) + City: "City", + + /** State */ + @added(Versions.v2025_11_15_preview) + State: "State", + + /** Airport */ + @added(Versions.v2025_11_15_preview) + Airport: "Airport", + + /** Geopolitical Entity */ + @added(Versions.v2025_11_15_preview) + GPE: "GPE", } diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/sentiment.analysis.tsp b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/sentiment.analysis.tsp index 61cb593eb7e8..20a894fbd0ea 100644 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/sentiment.analysis.tsp +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/sentiment.analysis.tsp @@ -77,7 +77,7 @@ union TokenSentimentValue { /** Sentiment analysis results for the input documents. */ model SentimentResponse is PreBuiltResult { /** The sentiment analysis results for each document in the input. */ - @typeChangedFrom(Versions.v2025_05_15_preview, SentimentDocumentResult[]) + @typeChangedFrom(Versions.v2025_11_15_preview, SentimentDocumentResult[]) documents: SentimentDocumentResultWithDetectedLanguage[]; } diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/summarization.tsp b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/summarization.tsp index ffd7382096bc..3f52b2512cb8 100644 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/summarization.tsp +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/summarization.tsp @@ -19,7 +19,7 @@ model ExtractiveSummarizationTaskParameters is PreBuiltTaskParameters { stringIndexType?: StringIndexType = StringIndexType.TextElements_v8; /** (Optional) If provided, the query will be used to extract most relevant sentences from the document. */ - @added(Versions.v2025_05_15_preview) + @added(Versions.v2025_11_15_preview) query?: string; } @@ -40,7 +40,7 @@ model ExtractiveSummarizationResult is PreBuiltResult { /** Response by document */ @added(Versions.v2023_04_01) @typeChangedFrom( - Versions.v2025_05_15_preview, + Versions.v2025_11_15_preview, ExtractedSummaryDocumentResult[] ) documents: ExtractedSummaryDocumentResultWithDetectedLanguage[]; @@ -66,7 +66,7 @@ model ExtractedSummaryDocumentResult is DocumentResult { } /** A ranked list of sentences representing the extracted summary. */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) model ExtractedSummaryDocumentResultWithDetectedLanguage is ExtractedSummaryDocumentResult { ...DocumentDetectedLanguage; @@ -116,7 +116,7 @@ model AbstractiveSummarizationTaskParameters is PreBuiltTaskParameters { ...AbstractiveSummarizationTaskParametersBase; /** (Optional) If provided, the query will be used to generate the summary. */ - @added(Versions.v2025_05_15_preview) + @added(Versions.v2025_11_15_preview) instruction?: string; } @@ -137,7 +137,7 @@ model AbstractiveSummarizationResultBase { /** Response by document */ @added(Versions.v2023_04_01) @typeChangedFrom( - Versions.v2025_05_15_preview, + Versions.v2025_11_15_preview, AbstractiveSummaryDocumentResult[] ) documents: AbstractiveSummaryDocumentResultWithDetectedLanguage[]; @@ -157,7 +157,7 @@ model AbstractiveSummaryDocumentResult is DocumentResult { } /** An object representing the Abstractive Summarization result of a single document with detected language. */ -@added(Versions.v2025_05_15_preview) +@added(Versions.v2025_11_15_preview) model AbstractiveSummaryDocumentResultWithDetectedLanguage is AbstractiveSummaryDocumentResult { ...DocumentDetectedLanguage; diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/analyzetext.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/analyzetext.json new file mode 100644 index 000000000000..fb8550f9fd84 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/analyzetext.json @@ -0,0 +1,10149 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft Cognitive Language Service - Text Analysis", + "version": "2025-11-15-preview", + "description": "The language service API is a suite of natural language processing (NLP) skills built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction, language detection and question answering. Further documentation can be found in https://learn.microsoft.com/azure/cognitive-services/language-service/overview.0", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "x-ms-parameterized-host": { + "hostTemplate": "{Endpoint}/language", + "useSchemePrefix": false, + "parameters": [ + { + "name": "Endpoint", + "in": "path", + "description": "Supported Cognitive Services endpoint (e.g., https://.api.cognitiveservices.azure.com).", + "required": true, + "type": "string", + "format": "uri", + "x-ms-skip-url-encoding": true + } + ] + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "ApiKeyAuth": [] + }, + { + "OAuth2Auth": [ + "https://cognitiveservices.azure.com/.default" + ] + } + ], + "securityDefinitions": { + "ApiKeyAuth": { + "type": "apiKey", + "name": "Ocp-Apim-Subscription-Key", + "in": "header" + }, + "OAuth2Auth": { + "type": "oauth2", + "flow": "accessCode", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "https://cognitiveservices.azure.com/.default": "" + }, + "tokenUrl": "https://login.microsoftonline.com/common/oauth2/token" + } + }, + "tags": [], + "paths": { + "/:analyze-text": { + "post": { + "operationId": "AnalyzeText", + "description": "Request text analysis over a collection of documents.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "showStats", + "in": "query", + "description": "(Optional) if set to true, response will contain request and document level statistics.", + "required": false, + "type": "boolean" + }, + { + "name": "body", + "in": "body", + "description": "The input documents to analyze.", + "required": true, + "schema": { + "$ref": "#/definitions/AnalyzeTextTask" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/AnalyzeTextTaskResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + } + } + }, + "/analyze-text/jobs": { + "post": { + "operationId": "AnalyzeTextSubmitJob", + "description": "Submit a collection of text documents for analysis. Specify one or more unique tasks to be executed as a long-running operation.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AnalyzeTextJobsInput" + } + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location for monitoring the operation state." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/analyze-text/jobs/{jobId}": { + "get": { + "operationId": "AnalyzeTextJobStatus", + "summary": "Get analysis status and results", + "description": "Get the status of an analysis job. A job can consist of one or more tasks. After all tasks succeed, the job transitions to the succeeded state and results are available for each task.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "jobId", + "in": "path", + "description": "job ID", + "required": true, + "type": "string", + "format": "uuid" + }, + { + "name": "showStats", + "in": "query", + "description": "(Optional) if set to true, response will contain request and document level statistics.", + "required": false, + "type": "boolean" + }, + { + "name": "top", + "in": "query", + "description": "The maximum number of resources to return from the collection.", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "skip", + "in": "query", + "description": "An offset into the collection of the first resource to be returned.", + "required": false, + "type": "integer", + "format": "int32" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/AnalyzeTextJobState" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + } + } + }, + "/analyze-text/jobs/{jobId}:cancel": { + "post": { + "operationId": "AnalyzeTextCancelJob", + "summary": "Cancel a long-running Text Analysis job.", + "description": "Cancel a long-running Text Analysis job.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "jobId", + "in": "path", + "description": "The job ID to cancel.", + "required": true, + "type": "string", + "format": "uuid" + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location for monitoring the operation state." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "AbstractiveSummarizationLROResult": { + "type": "object", + "description": "An object representing the results for an Abstractive Summarization task.", + "properties": { + "results": { + "$ref": "#/definitions/AbstractiveSummarizationResult", + "description": "Results of the task." + } + }, + "required": [ + "results" + ], + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROResult" + } + ], + "x-ms-discriminator-value": "AbstractiveSummarizationLROResults" + }, + "AbstractiveSummarizationLROTask": { + "type": "object", + "description": "An object representing the task definition for an Abstractive Summarization task.", + "properties": { + "parameters": { + "$ref": "#/definitions/AbstractiveSummarizationTaskParameters", + "description": "Parameters for the Abstractive Summarization task." + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROTask" + } + ], + "x-ms-discriminator-value": "AbstractiveSummarization" + }, + "AbstractiveSummarizationResult": { + "type": "object", + "description": "An object representing the pre-built Abstractive Summarization results of each document.", + "properties": { + "errors": { + "type": "array", + "description": "Errors by document id.", + "items": { + "$ref": "#/definitions/DocumentError" + } + }, + "statistics": { + "$ref": "#/definitions/RequestStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the request payload." + }, + "modelVersion": { + "type": "string", + "description": "This field indicates which model is used for scoring." + }, + "documents": { + "type": "array", + "description": "Response by document", + "items": { + "$ref": "#/definitions/AbstractiveSummaryDocumentResultWithDetectedLanguage" + } + } + }, + "required": [ + "errors", + "modelVersion", + "documents" + ] + }, + "AbstractiveSummarizationTaskParameters": { + "type": "object", + "description": "Supported parameters for the pre-built Abstractive Summarization task.", + "properties": { + "loggingOptOut": { + "type": "boolean", + "description": "logging opt out", + "default": false + }, + "modelVersion": { + "type": "string", + "description": "model version", + "default": "latest" + }, + "sentenceCount": { + "type": "integer", + "format": "int32", + "description": "Controls the approximate number of sentences in the output summaries." + }, + "stringIndexType": { + "type": "string", + "description": "String index type", + "default": "TextElements_v8", + "enum": [ + "TextElements_v8", + "UnicodeCodePoint", + "Utf16CodeUnit" + ], + "x-ms-enum": { + "name": "StringIndexType", + "modelAsString": true, + "values": [ + { + "name": "TextElements_v8", + "value": "TextElements_v8", + "description": "Returned offset and length values will correspond to TextElements (Graphemes and Grapheme clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is written in .Net Framework or .Net Core and you will be using StringInfo." + }, + { + "name": "UnicodeCodePoint", + "value": "UnicodeCodePoint", + "description": "Returned offset and length values will correspond to Unicode code points. Use this option if your application is written in a language that support Unicode, for example Python." + }, + { + "name": "Utf16CodeUnit", + "value": "Utf16CodeUnit", + "description": "Returned offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript." + } + ] + } + }, + "summaryLength": { + "$ref": "#/definitions/SummaryLengthBucket", + "description": "(NOTE: Recommended to use summaryLength over sentenceCount) Controls the approximate length of the output summaries." + }, + "instruction": { + "type": "string", + "description": "(Optional) If provided, the query will be used to generate the summary." + } + } + }, + "AbstractiveSummary": { + "type": "object", + "description": "An object representing a single summary with context for given document.", + "properties": { + "text": { + "type": "string", + "description": "The text of the summary." + }, + "contexts": { + "type": "array", + "description": "The context list of the summary.", + "items": { + "$ref": "#/definitions/SummaryContext" + } + } + }, + "required": [ + "text" + ] + }, + "AbstractiveSummaryDocumentResultWithDetectedLanguage": { + "type": "object", + "description": "An object representing the Abstractive Summarization result of a single document with detected language.", + "properties": { + "id": { + "type": "string", + "description": "Unique, non-empty document identifier." + }, + "warnings": { + "type": "array", + "description": "Warnings encountered while processing document.", + "items": { + "$ref": "#/definitions/DocumentWarning" + } + }, + "statistics": { + "$ref": "#/definitions/DocumentStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the document payload." + }, + "summaries": { + "type": "array", + "description": "A list of abstractive summaries.", + "items": { + "$ref": "#/definitions/AbstractiveSummary" + } + }, + "detectedLanguage": { + "$ref": "#/definitions/DetectedLanguage", + "description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document." + } + }, + "required": [ + "id", + "warnings", + "summaries" + ] + }, + "AddressMetadata": { + "type": "object", + "description": "Represents the Address entity Metadata model.", + "properties": { + "formatedAddress": { + "type": "string", + "description": "The fully formatted address string following postal conventions for the address's country/region." + }, + "addressLines": { + "type": "array", + "description": "The full address string as recognized from the input text.", + "items": { + "type": "string" + } + }, + "city": { + "type": "string", + "description": "The city name of the address." + }, + "state": { + "type": "string", + "description": "The state or province name of the address." + }, + "postalCode": { + "type": "string", + "description": "The postal or ZIP code of the address." + }, + "countryOrRegion": { + "type": "string", + "description": "The country or region name of the address." + } + }, + "required": [ + "formatedAddress", + "addressLines" + ], + "allOf": [ + { + "$ref": "#/definitions/BaseMetadata" + } + ], + "x-ms-discriminator-value": "AddressMetadata" + }, + "AgeMetadata": { + "type": "object", + "description": "Represents the Age entity Metadata model.", + "properties": { + "value": { + "type": "number", + "format": "double", + "description": "The numeric value that the extracted text denotes." + }, + "unit": { + "$ref": "#/definitions/AgeUnit", + "description": "Unit of measure for age." + } + }, + "required": [ + "value", + "unit" + ], + "allOf": [ + { + "$ref": "#/definitions/BaseMetadata" + } + ], + "x-ms-discriminator-value": "AgeMetadata" + }, + "AgeUnit": { + "type": "string", + "description": "The Age Unit of measurement", + "enum": [ + "Unspecified", + "Year", + "Month", + "Week", + "Day" + ], + "x-ms-enum": { + "name": "AgeUnit", + "modelAsString": true, + "values": [ + { + "name": "Unspecified", + "value": "Unspecified", + "description": "Unspecified time period" + }, + { + "name": "Year", + "value": "Year", + "description": "Time period of a year" + }, + { + "name": "Month", + "value": "Month", + "description": "Time period of a month" + }, + { + "name": "Week", + "value": "Week", + "description": "Time period of a week" + }, + { + "name": "Day", + "value": "Day", + "description": "Time period of a day" + } + ] + } + }, + "AllowOverlapEntityPolicyType": { + "type": "object", + "description": "Represents the allow overlap policy. Will apply no post processing logic for the entities. Whatever the model predicts is what will be returned to the user. This allows the user to get a full view of every single model's possible values and apply their own custom logic on entity selection", + "allOf": [ + { + "$ref": "#/definitions/BaseEntityOverlapPolicy" + } + ], + "x-ms-discriminator-value": "allowOverlap" + }, + "AnalyzeTextEntityLinkingInput": { + "type": "object", + "description": "Contains the analyze text Entity linking input.", + "properties": { + "analysisInput": { + "$ref": "#/definitions/MultiLanguageAnalysisInput", + "description": "Contains the analysis input to be handled by the service." + }, + "parameters": { + "$ref": "#/definitions/EntityLinkingTaskParameters", + "description": "Task parameters." + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextTask" + } + ], + "x-ms-discriminator-value": "EntityLinking" + }, + "AnalyzeTextEntityRecognitionInput": { + "type": "object", + "description": "The entity recognition analyze text input task request.", + "properties": { + "analysisInput": { + "$ref": "#/definitions/MultiLanguageAnalysisInput", + "description": "The input to be analyzed." + }, + "parameters": { + "$ref": "#/definitions/EntitiesTaskParameters", + "description": "Task parameters." + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextTask" + } + ], + "x-ms-discriminator-value": "EntityRecognition" + }, + "AnalyzeTextJobState": { + "type": "object", + "description": "The object containing the analyze job LRO job state.", + "properties": { + "displayName": { + "type": "string", + "description": "display name" + }, + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "Date and time job created" + }, + "expirationDateTime": { + "type": "string", + "format": "date-time", + "description": "Date and time job expires" + }, + "jobId": { + "$ref": "#/definitions/Azure.Core.uuid", + "description": "job ID", + "readOnly": true + }, + "lastUpdatedDateTime": { + "type": "string", + "format": "date-time", + "description": "last updated date and time" + }, + "status": { + "$ref": "#/definitions/State", + "description": "status" + }, + "errors": { + "type": "array", + "description": "errors", + "items": { + "$ref": "#/definitions/Error" + } + }, + "nextLink": { + "type": "string", + "description": "next link" + }, + "tasks": { + "$ref": "#/definitions/Tasks", + "description": "List of tasks." + }, + "statistics": { + "$ref": "#/definitions/RequestStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the request payload." + } + }, + "required": [ + "createdDateTime", + "jobId", + "lastUpdatedDateTime", + "status", + "tasks" + ] + }, + "AnalyzeTextJobsInput": { + "type": "object", + "description": "The input object for the analyze text LRO.", + "properties": { + "displayName": { + "type": "string", + "description": "Name for the task." + }, + "analysisInput": { + "$ref": "#/definitions/MultiLanguageAnalysisInput", + "description": "Contains the input to be analyzed." + }, + "tasks": { + "type": "array", + "description": "List of tasks to be performed as part of the LRO.", + "items": { + "$ref": "#/definitions/AnalyzeTextLROTask" + } + }, + "defaultLanguage": { + "type": "string", + "description": "Default language to use for records requesting automatic language detection." + }, + "cancelAfter": { + "type": "number", + "format": "float", + "description": "Optional duration in seconds after which the job will be canceled if not completed." + } + }, + "required": [ + "analysisInput", + "tasks" + ] + }, + "AnalyzeTextKeyPhraseExtractionInput": { + "type": "object", + "description": "Contains the analyze text KeyPhraseExtraction task input.", + "properties": { + "analysisInput": { + "$ref": "#/definitions/MultiLanguageAnalysisInput", + "description": "Contains the input documents." + }, + "parameters": { + "$ref": "#/definitions/KeyPhraseTaskParameters", + "description": "Key phrase extraction task parameters." + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextTask" + } + ], + "x-ms-discriminator-value": "KeyPhraseExtraction" + }, + "AnalyzeTextLROResult": { + "type": "object", + "description": "Contains the AnalyzeText long running operation result object.", + "properties": { + "lastUpdateDateTime": { + "type": "string", + "format": "date-time", + "description": "The last updated time in UTC for the task." + }, + "status": { + "$ref": "#/definitions/State", + "description": "The status of the task at the mentioned last update time." + }, + "taskName": { + "type": "string", + "description": "task name" + }, + "kind": { + "$ref": "#/definitions/AnalyzeTextLROResultsKind", + "description": "Kind of the task." + } + }, + "discriminator": "kind", + "required": [ + "lastUpdateDateTime", + "status", + "kind" + ] + }, + "AnalyzeTextLROResultsKind": { + "type": "string", + "description": "The kind of the response object returned by the analyze-text long running task.", + "enum": [ + "SentimentAnalysisLROResults", + "EntityRecognitionLROResults", + "PiiEntityRecognitionLROResults", + "KeyPhraseExtractionLROResults", + "EntityLinkingLROResults", + "HealthcareLROResults", + "CustomEntityRecognitionLROResults", + "CustomSingleLabelClassificationLROResults", + "CustomMultiLabelClassificationLROResults", + "ExtractiveSummarizationLROResults", + "AbstractiveSummarizationLROResults" + ], + "x-ms-enum": { + "name": "AnalyzeTextLROResultsKind", + "modelAsString": true, + "values": [ + { + "name": "SentimentAnalysisLROResults", + "value": "SentimentAnalysisLROResults", + "description": "Sentiment analysis LRO results" + }, + { + "name": "EntityRecognitionLROResults", + "value": "EntityRecognitionLROResults", + "description": "Entity recognition LRO results" + }, + { + "name": "PiiEntityRecognitionLROResults", + "value": "PiiEntityRecognitionLROResults", + "description": "PII entity recognition LRO results" + }, + { + "name": "KeyPhraseExtractionLROResults", + "value": "KeyPhraseExtractionLROResults", + "description": "Key phrase extraction LRO results" + }, + { + "name": "EntityLinkingLROResults", + "value": "EntityLinkingLROResults", + "description": "Entity linking LRO results" + }, + { + "name": "HealthcareLROResults", + "value": "HealthcareLROResults", + "description": "Healthcare LRO results" + }, + { + "name": "CustomEntityRecognitionLROResults", + "value": "CustomEntityRecognitionLROResults", + "description": "Custom entity recognition LRO results" + }, + { + "name": "CustomSingleLabelClassificationLROResults", + "value": "CustomSingleLabelClassificationLROResults", + "description": "Custom single label classification LRO results" + }, + { + "name": "CustomMultiLabelClassificationLROResults", + "value": "CustomMultiLabelClassificationLROResults", + "description": "Custom multi label classification LRO results" + }, + { + "name": "ExtractiveSummarizationLROResults", + "value": "ExtractiveSummarizationLROResults", + "description": "Extractive summarization LRO results" + }, + { + "name": "AbstractiveSummarizationLROResults", + "value": "AbstractiveSummarizationLROResults", + "description": "Abstractive summarization LRO results" + } + ] + } + }, + "AnalyzeTextLROTask": { + "type": "object", + "description": "The long running task to be performed by the service on the input documents.", + "properties": { + "taskName": { + "type": "string", + "description": "task name" + }, + "kind": { + "$ref": "#/definitions/AnalyzeTextLROTaskKind", + "description": "The kind of task to perform." + } + }, + "discriminator": "kind", + "required": [ + "kind" + ] + }, + "AnalyzeTextLROTaskKind": { + "type": "string", + "description": "The kind of the long running analyze text tasks supported.", + "enum": [ + "SentimentAnalysis", + "EntityRecognition", + "PiiEntityRecognition", + "KeyPhraseExtraction", + "EntityLinking", + "Healthcare", + "CustomEntityRecognition", + "CustomSingleLabelClassification", + "CustomMultiLabelClassification", + "ExtractiveSummarization", + "AbstractiveSummarization" + ], + "x-ms-enum": { + "name": "AnalyzeTextLROTaskKind", + "modelAsString": true, + "values": [ + { + "name": "SentimentAnalysis", + "value": "SentimentAnalysis", + "description": "Sentiment analysis task" + }, + { + "name": "EntityRecognition", + "value": "EntityRecognition", + "description": "Entity recognition task" + }, + { + "name": "PiiEntityRecognition", + "value": "PiiEntityRecognition", + "description": "PII entity recognition task" + }, + { + "name": "KeyPhraseExtraction", + "value": "KeyPhraseExtraction", + "description": "Key phrase extraction task" + }, + { + "name": "EntityLinking", + "value": "EntityLinking", + "description": "Entity linking task" + }, + { + "name": "Healthcare", + "value": "Healthcare", + "description": "Healthcare task" + }, + { + "name": "CustomEntityRecognition", + "value": "CustomEntityRecognition", + "description": "Custom entity recognition task" + }, + { + "name": "CustomSingleLabelClassification", + "value": "CustomSingleLabelClassification", + "description": "Custom single label classification task" + }, + { + "name": "CustomMultiLabelClassification", + "value": "CustomMultiLabelClassification", + "description": "Custom multi label classification task" + }, + { + "name": "ExtractiveSummarization", + "value": "ExtractiveSummarization", + "description": "Extractive summarization task" + }, + { + "name": "AbstractiveSummarization", + "value": "AbstractiveSummarization", + "description": "Abstractive summarization task" + } + ] + } + }, + "AnalyzeTextLanguageDetectionInput": { + "type": "object", + "description": "Contains the language detection document analysis task input.", + "properties": { + "analysisInput": { + "$ref": "#/definitions/LanguageDetectionAnalysisInput", + "description": "Documents to be analyzed." + }, + "parameters": { + "$ref": "#/definitions/LanguageDetectionTaskParameters", + "description": "task parameters." + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextTask" + } + ], + "x-ms-discriminator-value": "LanguageDetection" + }, + "AnalyzeTextPiiEntitiesRecognitionInput": { + "type": "object", + "description": "Contains the analyze text PIIEntityRecognition task input.", + "properties": { + "analysisInput": { + "$ref": "#/definitions/MultiLanguageAnalysisInput", + "description": "Contains the input documents." + }, + "parameters": { + "$ref": "#/definitions/PiiTaskParameters", + "description": "Pii task parameters." + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextTask" + } + ], + "x-ms-discriminator-value": "PiiEntityRecognition" + }, + "AnalyzeTextSentimentAnalysisInput": { + "type": "object", + "description": "Contains the analyze text SentimentAnalysis task input.", + "properties": { + "analysisInput": { + "$ref": "#/definitions/MultiLanguageAnalysisInput", + "description": "Contains the input documents." + }, + "parameters": { + "$ref": "#/definitions/SentimentAnalysisTaskParameters", + "description": "Sentiment Analysis task parameters." + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextTask" + } + ], + "x-ms-discriminator-value": "SentimentAnalysis" + }, + "AnalyzeTextTask": { + "type": "object", + "description": "Collection of documents to analyze and a single task to execute.", + "properties": { + "kind": { + "$ref": "#/definitions/AnalyzeTextTaskKind", + "description": "The kind of task to perform." + } + }, + "discriminator": "kind", + "required": [ + "kind" + ] + }, + "AnalyzeTextTaskKind": { + "type": "string", + "description": "The kind of the analyze-text tasks supported.", + "enum": [ + "SentimentAnalysis", + "EntityRecognition", + "PiiEntityRecognition", + "KeyPhraseExtraction", + "LanguageDetection", + "EntityLinking" + ], + "x-ms-enum": { + "name": "AnalyzeTextTaskKind", + "modelAsString": true, + "values": [ + { + "name": "SentimentAnalysis", + "value": "SentimentAnalysis", + "description": "Sentiment analysis task" + }, + { + "name": "EntityRecognition", + "value": "EntityRecognition", + "description": "Entity recognition task" + }, + { + "name": "PiiEntityRecognition", + "value": "PiiEntityRecognition", + "description": "PII entity recognition task" + }, + { + "name": "KeyPhraseExtraction", + "value": "KeyPhraseExtraction", + "description": "Key phrase extraction task" + }, + { + "name": "LanguageDetection", + "value": "LanguageDetection", + "description": "Language detection task" + }, + { + "name": "EntityLinking", + "value": "EntityLinking", + "description": "Entity linking task" + } + ] + } + }, + "AnalyzeTextTaskResult": { + "type": "object", + "description": "The result object for the analyze task.", + "properties": { + "kind": { + "$ref": "#/definitions/AnalyzeTextTaskResultsKind", + "description": "The kind of task result." + } + }, + "discriminator": "kind", + "required": [ + "kind" + ] + }, + "AnalyzeTextTaskResultsKind": { + "type": "string", + "description": "The kind of the response object returned by the analyze-text task.", + "enum": [ + "SentimentAnalysisResults", + "EntityRecognitionResults", + "PiiEntityRecognitionResults", + "KeyPhraseExtractionResults", + "LanguageDetectionResults", + "EntityLinkingResults" + ], + "x-ms-enum": { + "name": "AnalyzeTextTaskResultsKind", + "modelAsString": true, + "values": [ + { + "name": "SentimentAnalysisResults", + "value": "SentimentAnalysisResults", + "description": "Sentiment analysis results" + }, + { + "name": "EntityRecognitionResults", + "value": "EntityRecognitionResults", + "description": "Entity recognition results" + }, + { + "name": "PiiEntityRecognitionResults", + "value": "PiiEntityRecognitionResults", + "description": "PII entity recognition results" + }, + { + "name": "KeyPhraseExtractionResults", + "value": "KeyPhraseExtractionResults", + "description": "Key phrase extraction results" + }, + { + "name": "LanguageDetectionResults", + "value": "LanguageDetectionResults", + "description": "Language detection results" + }, + { + "name": "EntityLinkingResults", + "value": "EntityLinkingResults", + "description": "Entity linking results" + } + ] + } + }, + "AreaMetadata": { + "type": "object", + "description": "Represents the Area entity Metadata model.", + "properties": { + "value": { + "type": "number", + "format": "double", + "description": "The numeric value that the extracted text denotes." + }, + "unit": { + "$ref": "#/definitions/AreaUnit", + "description": "Unit of measure for area." + } + }, + "required": [ + "value", + "unit" + ], + "allOf": [ + { + "$ref": "#/definitions/BaseMetadata" + } + ], + "x-ms-discriminator-value": "AreaMetadata" + }, + "AreaUnit": { + "type": "string", + "description": "The area unit of measurement.", + "enum": [ + "Unspecified", + "SquareKilometer", + "SquareHectometer", + "SquareDecameter", + "SquareDecimeter", + "SquareMeter", + "SquareCentimeter", + "SquareMillimeter", + "SquareInch", + "SquareFoot", + "SquareMile", + "SquareYard", + "Acre" + ], + "x-ms-enum": { + "name": "AreaUnit", + "modelAsString": true, + "values": [ + { + "name": "Unspecified", + "value": "Unspecified", + "description": "Unspecified area unit" + }, + { + "name": "SquareKilometer", + "value": "SquareKilometer", + "description": "Area unit in square kilometers" + }, + { + "name": "SquareHectometer", + "value": "SquareHectometer", + "description": "Area unit in square hectometers" + }, + { + "name": "SquareDecameter", + "value": "SquareDecameter", + "description": "Area unit in square decameters" + }, + { + "name": "SquareDecimeter", + "value": "SquareDecimeter", + "description": "Area unit in square decimeters" + }, + { + "name": "SquareMeter", + "value": "SquareMeter", + "description": "Area unit in square meters" + }, + { + "name": "SquareCentimeter", + "value": "SquareCentimeter", + "description": "Area unit in square centimeters" + }, + { + "name": "SquareMillimeter", + "value": "SquareMillimeter", + "description": "Area unit in square millimeters" + }, + { + "name": "SquareInch", + "value": "SquareInch", + "description": "Area unit in square inches" + }, + { + "name": "SquareFoot", + "value": "SquareFoot", + "description": "Area unit in square feet" + }, + { + "name": "SquareMile", + "value": "SquareMile", + "description": "Area unit in square miles" + }, + { + "name": "SquareYard", + "value": "SquareYard", + "description": "Area unit in square yards" + }, + { + "name": "Acre", + "value": "Acre", + "description": "Area unit in acres" + } + ] + } + }, + "Association": { + "type": "string", + "description": "Describes if the entity is the subject of the text or if it describes someone else.", + "enum": [ + "subject", + "other" + ], + "x-ms-enum": { + "name": "Association", + "modelAsString": false, + "values": [ + { + "name": "subject", + "value": "subject", + "description": "Subject association" + }, + { + "name": "other", + "value": "other", + "description": "Other association" + } + ] + } + }, + "Azure.Core.uuid": { + "type": "string", + "format": "uuid", + "description": "Universally Unique Identifier" + }, + "BaseEntityOverlapPolicy": { + "type": "object", + "description": "The abstract base class for entity OverlapPolicy.", + "properties": { + "policyKind": { + "type": "string", + "description": "The entity OverlapPolicy object kind.", + "default": "matchLongest", + "enum": [ + "matchLongest", + "allowOverlap" + ], + "x-ms-enum": { + "name": "policyKind", + "modelAsString": true, + "values": [ + { + "name": "matchLongest", + "value": "matchLongest", + "description": "Represents MatchLongestEntityPolicyType" + }, + { + "name": "allowOverlap", + "value": "allowOverlap", + "description": "Represents AllowOverlapEntityPolicyType" + } + ] + } + } + }, + "discriminator": "policyKind", + "required": [ + "policyKind" + ] + }, + "BaseMetadata": { + "type": "object", + "description": "The abstract base class for entity Metadata.", + "properties": { + "metadataKind": { + "$ref": "#/definitions/MetadataKind", + "description": "The entity Metadata object kind." + } + }, + "discriminator": "metadataKind", + "required": [ + "metadataKind" + ] + }, + "BaseRedactionPolicy": { + "type": "object", + "description": "The abstract base class for RedactionPolicy.", + "properties": { + "policyKind": { + "type": "string", + "description": "The entity RedactionPolicy object kind.", + "default": "characterMask", + "enum": [ + "noMask", + "characterMask", + "entityMask", + "syntheticReplacement" + ], + "x-ms-enum": { + "name": "RedactionPolicyKind", + "modelAsString": true, + "values": [ + { + "name": "noMask", + "value": "noMask", + "description": "Do not redact detected entities." + }, + { + "name": "characterMask", + "value": "characterMask", + "description": "React detected entities with redaction character." + }, + { + "name": "entityMask", + "value": "entityMask", + "description": "Redact detected entities with entity type." + }, + { + "name": "syntheticReplacement", + "value": "syntheticReplacement", + "description": "Replace detected entities with synthetic values." + } + ] + } + }, + "entityTypes": { + "type": "array", + "description": "(Optional) describes the PII categories to which the redaction policy will be applied. If not specified, the redaction policy will be applied to all PII categories.", + "items": { + "$ref": "#/definitions/PiiCategoriesExclude" + } + }, + "policyName": { + "type": "string", + "description": "(Optional) name of the redaction policy for identification purposes." + }, + "isDefaultPolicy": { + "type": "boolean", + "description": "(Optional) flag to indicate whether this redaction policy is the default policy to be applied when no specific policy is defined for a PII category. Only one policy can be marked as default.", + "default": false + } + }, + "discriminator": "policyKind", + "required": [ + "policyKind" + ] + }, + "Certainty": { + "type": "string", + "description": "Describes the entities certainty and polarity.", + "enum": [ + "positive", + "positivePossible", + "neutralPossible", + "negativePossible", + "negative" + ], + "x-ms-enum": { + "name": "Certainty", + "modelAsString": false, + "values": [ + { + "name": "positive", + "value": "positive", + "description": "Positive certainty" + }, + { + "name": "positivePossible", + "value": "positivePossible", + "description": "Possibly positive certainty" + }, + { + "name": "neutralPossible", + "value": "neutralPossible", + "description": "Possibly neutral certainty" + }, + { + "name": "negativePossible", + "value": "negativePossible", + "description": "Possibly negative certainty" + }, + { + "name": "negative", + "value": "negative", + "description": "Negative certainty" + } + ] + } + }, + "CharacterMaskPolicyType": { + "type": "object", + "description": "Represents the policy of redacting with a redaction character", + "properties": { + "redactionCharacter": { + "type": "string", + "description": "Optional parameter to use a Custom Character to be used for redaction in PII responses. Default character will bce * as before. We allow specific ascii characters for redaction.", + "default": "*", + "enum": [ + "!", + "#", + "$", + "%", + "&", + "*", + "+", + "-", + "=", + "?", + "@", + "^", + "_", + "~" + ], + "x-ms-enum": { + "name": "redactionCharacter", + "modelAsString": true, + "values": [ + { + "name": "exclamationPoint", + "value": "!", + "description": "Exclamation point character" + }, + { + "name": "numberSign", + "value": "#", + "description": "Number sign character" + }, + { + "name": "dollar", + "value": "$", + "description": "Dollar sign character" + }, + { + "name": "perCent", + "value": "%", + "description": "Percent sign character" + }, + { + "name": "ampersand", + "value": "&", + "description": "Ampersand character" + }, + { + "name": "asterisk", + "value": "*", + "description": "Asterisk character" + }, + { + "name": "plus", + "value": "+", + "description": "Plus sign character" + }, + { + "name": "minus", + "value": "-", + "description": "Minus sign character" + }, + { + "name": "equals", + "value": "=", + "description": "Equals sign character" + }, + { + "name": "questionMark", + "value": "?", + "description": "Question mark character" + }, + { + "name": "atSign", + "value": "@", + "description": "At sign character" + }, + { + "name": "caret", + "value": "^", + "description": "Caret character" + }, + { + "name": "underscore", + "value": "_", + "description": "Underscore character" + }, + { + "name": "tilde", + "value": "~", + "description": "Tilde character" + } + ] + } + }, + "unmaskLength": { + "type": "integer", + "format": "int32", + "description": "Optional parameter to indicate the length of unmasked characters at the end of the redacted PII entity. Default is 0." + }, + "unmaskFromEnd": { + "type": "boolean", + "description": "Optional parameter to indicate whether to unmask characters from the end of the redacted PII entity. Default is true.", + "default": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/BaseRedactionPolicy" + } + ], + "x-ms-discriminator-value": "characterMask" + }, + "ClassificationDocumentResultWithDetectedLanguage": { + "type": "object", + "description": "Contains the classification doc result for the task with detected language.", + "properties": { + "id": { + "type": "string", + "description": "Unique, non-empty document identifier." + }, + "warnings": { + "type": "array", + "description": "Warnings encountered while processing document.", + "items": { + "$ref": "#/definitions/DocumentWarning" + } + }, + "statistics": { + "$ref": "#/definitions/DocumentStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the document payload." + }, + "class": { + "type": "array", + "description": "Contains the classification doc results for all docs.", + "items": { + "$ref": "#/definitions/ClassificationResult" + } + }, + "detectedLanguage": { + "$ref": "#/definitions/DetectedLanguage", + "description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document." + } + }, + "required": [ + "id", + "warnings", + "class" + ] + }, + "ClassificationResult": { + "type": "object", + "description": "Contains the classification result.", + "properties": { + "category": { + "type": "string", + "description": "Classification type." + }, + "confidenceScore": { + "type": "number", + "format": "double", + "description": "Confidence score between 0 and 1 of the recognized class." + } + }, + "required": [ + "category", + "confidenceScore" + ] + }, + "Conditionality": { + "type": "string", + "description": "Describes any conditionality on the entity.", + "enum": [ + "hypothetical", + "conditional" + ], + "x-ms-enum": { + "name": "Conditionality", + "modelAsString": false, + "values": [ + { + "name": "hypothetical", + "value": "hypothetical", + "description": "Hypothetical conditionality" + }, + { + "name": "conditional", + "value": "conditional", + "description": "Conditional conditionality" + } + ] + } + }, + "ConfidenceScoreThreshold": { + "type": "object", + "description": "Configuration for confidence score threshold for PII entity recognition", + "properties": { + "default": { + "type": "number", + "format": "float", + "description": "Minimum confidence score threshold for the PII entities to be returned in the response. Entities with a confidence score below this threshold will be filtered out. Value should be between 0.0 and 1.0", + "default": 0.3 + }, + "overrides": { + "type": "array", + "description": "List of confidence score threshold overrides for specific PII categories", + "items": { + "$ref": "#/definitions/ConfidenceScoreThresholdOverride" + } + } + }, + "required": [ + "default" + ] + }, + "ConfidenceScoreThresholdOverride": { + "type": "object", + "description": "Confidence score threshold override for a specific PII category", + "properties": { + "entity": { + "$ref": "#/definitions/PiiCategoriesExclude", + "description": "The PII category for which to override the confidence score threshold" + }, + "value": { + "type": "number", + "format": "float", + "description": "The confidence score threshold for the specified PII category" + }, + "language": { + "type": "string", + "description": "The 2 letter ISO 639-1 language for which the override applies. If not specified, the override applies to all languages." + } + }, + "required": [ + "entity", + "value", + "language" + ] + }, + "CurrencyMetadata": { + "type": "object", + "description": "Represents the Currency ) entity Metadata model.", + "properties": { + "value": { + "type": "number", + "format": "double", + "description": "The numeric value that the extracted text denotes." + }, + "unit": { + "type": "string", + "description": "Currency unit." + }, + "iso4217": { + "type": "string", + "description": "The alphabetic code based on another ISO standard, ISO 3166, which lists the codes for country names. The first two letters of the ISO 4217 three-letter code are the same as the code for the country name, and, where possible, the third letter corresponds to the first letter of the currency name." + } + }, + "required": [ + "value", + "unit" + ], + "allOf": [ + { + "$ref": "#/definitions/BaseMetadata" + } + ], + "x-ms-discriminator-value": "CurrencyMetadata" + }, + "CustomEntitiesLROTask": { + "type": "object", + "description": "Contains the custom text LRO task.", + "properties": { + "parameters": { + "$ref": "#/definitions/CustomEntitiesTaskParameters", + "description": "task parameters." + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROTask" + } + ], + "x-ms-discriminator-value": "CustomEntityRecognition" + }, + "CustomEntitiesResult": { + "type": "object", + "description": "Contains the list of detected custom entities result for the documents.", + "properties": { + "errors": { + "type": "array", + "description": "Errors by document id.", + "items": { + "$ref": "#/definitions/DocumentError" + } + }, + "statistics": { + "$ref": "#/definitions/RequestStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the request payload." + }, + "projectName": { + "type": "string", + "description": "This field indicates the project name for the model." + }, + "deploymentName": { + "type": "string", + "description": "This field indicates the deployment name for the model." + }, + "documents": { + "type": "array", + "description": "Enumeration of the document results.", + "items": { + "$ref": "#/definitions/EntitiesDocumentResultWithDetectedLanguage" + } + } + }, + "required": [ + "errors", + "projectName", + "deploymentName", + "documents" + ] + }, + "CustomEntitiesTaskParameters": { + "type": "object", + "description": "Supported parameters for a Custom Entities task.", + "properties": { + "loggingOptOut": { + "type": "boolean", + "description": "logging opt out", + "default": false + }, + "projectName": { + "type": "string", + "description": "This field indicates the project name for the model." + }, + "deploymentName": { + "type": "string", + "description": "This field indicates the deployment name for the model." + }, + "stringIndexType": { + "type": "string", + "description": "Optional parameter to provide the string index type used to interpret string offsets. Defaults to TextElements (Graphemes).", + "default": "TextElements_v8", + "enum": [ + "TextElements_v8", + "UnicodeCodePoint", + "Utf16CodeUnit" + ], + "x-ms-enum": { + "name": "StringIndexType", + "modelAsString": true, + "values": [ + { + "name": "TextElements_v8", + "value": "TextElements_v8", + "description": "Returned offset and length values will correspond to TextElements (Graphemes and Grapheme clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is written in .Net Framework or .Net Core and you will be using StringInfo." + }, + { + "name": "UnicodeCodePoint", + "value": "UnicodeCodePoint", + "description": "Returned offset and length values will correspond to Unicode code points. Use this option if your application is written in a language that support Unicode, for example Python." + }, + { + "name": "Utf16CodeUnit", + "value": "Utf16CodeUnit", + "description": "Returned offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript." + } + ] + } + } + }, + "required": [ + "projectName", + "deploymentName" + ] + }, + "CustomEntityRecognitionLROResult": { + "type": "object", + "description": "Contains the custom entity recognition job result.", + "properties": { + "results": { + "$ref": "#/definitions/CustomEntitiesResult", + "description": "List of results." + } + }, + "required": [ + "results" + ], + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROResult" + } + ], + "x-ms-discriminator-value": "CustomEntityRecognitionLROResults" + }, + "CustomLabelClassificationResult": { + "type": "object", + "description": "Contains the custom label classification results.", + "properties": { + "errors": { + "type": "array", + "description": "Errors by document id.", + "items": { + "$ref": "#/definitions/DocumentError" + } + }, + "statistics": { + "$ref": "#/definitions/RequestStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the request payload." + }, + "projectName": { + "type": "string", + "description": "This field indicates the project name for the model." + }, + "deploymentName": { + "type": "string", + "description": "This field indicates the deployment name for the model." + }, + "documents": { + "type": "array", + "description": "Response by document", + "items": { + "$ref": "#/definitions/ClassificationDocumentResultWithDetectedLanguage" + } + } + }, + "required": [ + "errors", + "projectName", + "deploymentName", + "documents" + ] + }, + "CustomMultiLabelClassificationLROResult": { + "type": "object", + "description": "Contains the custom multi label classification job result.", + "properties": { + "results": { + "$ref": "#/definitions/CustomLabelClassificationResult", + "description": "List of results." + } + }, + "required": [ + "results" + ], + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROResult" + } + ], + "x-ms-discriminator-value": "CustomMultiLabelClassificationLROResults" + }, + "CustomMultiLabelClassificationLROTask": { + "type": "object", + "description": "Use custom models to classify text into multi label taxonomy", + "properties": { + "parameters": { + "$ref": "#/definitions/CustomMultiLabelClassificationTaskParameters", + "description": "Task parameters." + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROTask" + } + ], + "x-ms-discriminator-value": "CustomMultiLabelClassification" + }, + "CustomMultiLabelClassificationTaskParameters": { + "type": "object", + "description": "Supported parameters for a Custom Multi Classification task.", + "properties": { + "loggingOptOut": { + "type": "boolean", + "description": "logging opt out", + "default": false + }, + "projectName": { + "type": "string", + "description": "This field indicates the project name for the model." + }, + "deploymentName": { + "type": "string", + "description": "This field indicates the deployment name for the model." + } + }, + "required": [ + "projectName", + "deploymentName" + ] + }, + "CustomSingleLabelClassificationLROResult": { + "type": "object", + "description": "Contains the custom single label classification job result.", + "properties": { + "results": { + "$ref": "#/definitions/CustomLabelClassificationResult", + "description": "List of results." + } + }, + "required": [ + "results" + ], + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROResult" + } + ], + "x-ms-discriminator-value": "CustomSingleLabelClassificationLROResults" + }, + "CustomSingleLabelClassificationLROTask": { + "type": "object", + "description": "Use custom models to classify text into single label taxonomy", + "properties": { + "parameters": { + "$ref": "#/definitions/CustomSingleLabelClassificationTaskParameters", + "description": "Task parameters" + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROTask" + } + ], + "x-ms-discriminator-value": "CustomSingleLabelClassification" + }, + "CustomSingleLabelClassificationTaskParameters": { + "type": "object", + "description": "Supported parameters for a Custom Single Classification task.", + "properties": { + "loggingOptOut": { + "type": "boolean", + "description": "logging opt out", + "default": false + }, + "projectName": { + "type": "string", + "description": "This field indicates the project name for the model." + }, + "deploymentName": { + "type": "string", + "description": "This field indicates the deployment name for the model." + } + }, + "required": [ + "projectName", + "deploymentName" + ] + }, + "DateMetadata": { + "type": "object", + "description": "A Metadata for date entity instances.", + "properties": { + "dateValues": { + "type": "array", + "description": "List of date values.", + "items": { + "$ref": "#/definitions/DateValue" + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/BaseMetadata" + } + ], + "x-ms-discriminator-value": "DateMetadata" + }, + "DateTimeMetadata": { + "type": "object", + "description": "A Metadata for datetime entity instances.", + "properties": { + "dateValues": { + "type": "array", + "description": "List of date values.", + "items": { + "$ref": "#/definitions/DateValue" + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/BaseMetadata" + } + ], + "x-ms-discriminator-value": "DateTimeMetadata" + }, + "DateValue": { + "type": "object", + "description": "Represents the date value.", + "properties": { + "timex": { + "type": "string", + "description": "An extended ISO 8601 date/time representation as described in (https://github.com/Microsoft/Recognizers-Text/blob/master/Patterns/English/English-DateTime.yaml)" + }, + "value": { + "type": "string", + "description": "The actual time that the extracted text denote." + }, + "modifier": { + "$ref": "#/definitions/TemporalModifier", + "description": "Modifier for datetime to indicate point of reference like before, after etc." + } + }, + "required": [ + "timex", + "value" + ] + }, + "DetectedLanguage": { + "type": "object", + "description": "Contains the details of the detected language for the text.", + "properties": { + "name": { + "type": "string", + "description": "Long name of a detected language (e.g. English, French)." + }, + "iso6391Name": { + "type": "string", + "description": "A two letter representation of the detected language according to the ISO 639-1 standard (e.g. en, fr)." + }, + "confidenceScore": { + "type": "number", + "format": "double", + "description": "A confidence score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true." + }, + "scriptName": { + "$ref": "#/definitions/ScriptKind", + "description": "Identifies the script name of the input document according to the ISO 15924 standard." + }, + "scriptIso15924Code": { + "$ref": "#/definitions/ScriptCode", + "description": "Identifies the script code of the input document according to the ISO 15924 standard." + } + }, + "required": [ + "name", + "iso6391Name", + "confidenceScore" + ] + }, + "DocumentError": { + "type": "object", + "description": "Contains details of errors encountered during a job execution.", + "properties": { + "id": { + "type": "string", + "description": "The ID of the input document." + }, + "error": { + "$ref": "#/definitions/Error", + "description": "Error encountered." + } + }, + "required": [ + "id", + "error" + ] + }, + "DocumentSentimentValue": { + "type": "string", + "description": "Predicted sentiment for document (Negative, Neutral, Positive, or Mixed).", + "enum": [ + "positive", + "neutral", + "negative", + "mixed" + ], + "x-ms-enum": { + "name": "DocumentSentimentValue", + "modelAsString": false, + "values": [ + { + "name": "positive", + "value": "positive", + "description": "Positive statement" + }, + { + "name": "neutral", + "value": "neutral", + "description": "Neutral statement" + }, + { + "name": "negative", + "value": "negative", + "description": "Negative statement" + }, + { + "name": "mixed", + "value": "mixed", + "description": "Mixed statement" + } + ] + } + }, + "DocumentStatistics": { + "type": "object", + "description": "if showStats=true was specified in the request this field will contain information about the document payload.", + "properties": { + "charactersCount": { + "type": "integer", + "format": "int32", + "description": "Number of text elements recognized in the document." + }, + "transactionsCount": { + "type": "integer", + "format": "int32", + "description": "Number of transactions for the document." + } + }, + "required": [ + "charactersCount", + "transactionsCount" + ] + }, + "DocumentWarning": { + "type": "object", + "description": "Contains the warnings object with warnings encountered for the processed document.", + "properties": { + "code": { + "$ref": "#/definitions/WarningCodeValue", + "description": "Warning code." + }, + "message": { + "type": "string", + "description": "Warning message." + }, + "targetRef": { + "type": "string", + "description": "A JSON pointer reference indicating the target object." + } + }, + "required": [ + "code", + "message" + ] + }, + "EntitiesDocumentResultWithDetectedLanguage": { + "type": "object", + "description": "Contains the entity recognition task result for the document with detected language.", + "properties": { + "id": { + "type": "string", + "description": "Unique, non-empty document identifier." + }, + "warnings": { + "type": "array", + "description": "Warnings encountered while processing document.", + "items": { + "$ref": "#/definitions/DocumentWarning" + } + }, + "statistics": { + "$ref": "#/definitions/DocumentStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the document payload." + }, + "entities": { + "type": "array", + "description": "Recognized entities in the document.", + "items": { + "$ref": "#/definitions/Entity" + } + }, + "detectedLanguage": { + "$ref": "#/definitions/DetectedLanguage", + "description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document." + } + }, + "required": [ + "id", + "warnings", + "entities" + ] + }, + "EntitiesDocumentResultWithMetadata": { + "type": "object", + "description": "Entity documents result with metadata.", + "properties": { + "id": { + "type": "string", + "description": "Unique, non-empty document identifier." + }, + "warnings": { + "type": "array", + "description": "Warnings encountered while processing document.", + "items": { + "$ref": "#/definitions/DocumentWarning" + } + }, + "statistics": { + "$ref": "#/definitions/DocumentStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the document payload." + }, + "entities": { + "type": "array", + "description": "Recognized entities in the document.", + "items": { + "$ref": "#/definitions/EntityWithMetadata" + } + } + }, + "required": [ + "id", + "warnings", + "entities" + ] + }, + "EntitiesDocumentResultWithMetadataDetectedLanguage": { + "type": "object", + "description": "Contains the entity recognition task result for the document with metadata and detected language.", + "properties": { + "id": { + "type": "string", + "description": "Unique, non-empty document identifier." + }, + "warnings": { + "type": "array", + "description": "Warnings encountered while processing document.", + "items": { + "$ref": "#/definitions/DocumentWarning" + } + }, + "statistics": { + "$ref": "#/definitions/DocumentStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the document payload." + }, + "entities": { + "type": "array", + "description": "Recognized entities in the document.", + "items": { + "$ref": "#/definitions/EntityWithMetadata" + } + }, + "detectedLanguage": { + "$ref": "#/definitions/DetectedLanguage", + "description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document." + } + }, + "required": [ + "id", + "warnings", + "entities" + ] + }, + "EntitiesLROTask": { + "type": "object", + "description": "An object representing the task definition for an Entities Recognition task.", + "properties": { + "parameters": { + "$ref": "#/definitions/EntitiesTaskParameters", + "description": "Task parameters." + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROTask" + } + ], + "x-ms-discriminator-value": "EntityRecognition" + }, + "EntitiesResult": { + "type": "object", + "description": "Contains the entity recognition task result.", + "properties": { + "errors": { + "type": "array", + "description": "Errors by document id.", + "items": { + "$ref": "#/definitions/DocumentError" + } + }, + "statistics": { + "$ref": "#/definitions/RequestStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the request payload." + }, + "modelVersion": { + "type": "string", + "description": "This field indicates which model is used for scoring." + }, + "documents": { + "type": "array", + "description": "Response by document", + "items": { + "$ref": "#/definitions/EntitiesDocumentResultWithMetadata" + } + } + }, + "required": [ + "errors", + "modelVersion", + "documents" + ] + }, + "EntitiesTaskParameters": { + "type": "object", + "description": "Supported parameters for an Entity Recognition task.", + "properties": { + "loggingOptOut": { + "type": "boolean", + "description": "logging opt out", + "default": false + }, + "modelVersion": { + "type": "string", + "description": "model version", + "default": "latest" + }, + "stringIndexType": { + "type": "string", + "description": "(Optional) parameter to provide the string index type used to interpret string offsets. Defaults to TextElements (Graphemes).", + "default": "TextElements_v8", + "enum": [ + "TextElements_v8", + "UnicodeCodePoint", + "Utf16CodeUnit" + ], + "x-ms-enum": { + "name": "StringIndexType", + "modelAsString": true, + "values": [ + { + "name": "TextElements_v8", + "value": "TextElements_v8", + "description": "Returned offset and length values will correspond to TextElements (Graphemes and Grapheme clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is written in .Net Framework or .Net Core and you will be using StringInfo." + }, + { + "name": "UnicodeCodePoint", + "value": "UnicodeCodePoint", + "description": "Returned offset and length values will correspond to Unicode code points. Use this option if your application is written in a language that support Unicode, for example Python." + }, + { + "name": "Utf16CodeUnit", + "value": "Utf16CodeUnit", + "description": "Returned offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript." + } + ] + } + }, + "inclusionList": { + "type": "array", + "description": "(Optional) request parameter that limits the output to the requested entity types included in this list. We will apply inclusionList before exclusionList", + "items": { + "$ref": "#/definitions/EntityCategory" + } + }, + "exclusionList": { + "type": "array", + "description": "(Optional) request parameter that filters out any entities that are included the excludeList. When a user specifies an excludeList, they cannot get a prediction returned with an entity in that list. We will apply inclusionList before exclusionList", + "items": { + "$ref": "#/definitions/EntityCategory" + } + }, + "overlapPolicy": { + "$ref": "#/definitions/BaseEntityOverlapPolicy", + "description": "(Optional) describes the type of overlap policy to apply to the ner output." + }, + "inferenceOptions": { + "$ref": "#/definitions/EntityInferenceOptions", + "description": "(Optional) request parameter that allows the user to provide settings for running the inference." + } + } + }, + "EntitiesTaskResult": { + "type": "object", + "description": "Contains the entity task", + "properties": { + "results": { + "$ref": "#/definitions/EntitiesWithMetadataAutoResult", + "description": "Results for entity recognition." + } + }, + "required": [ + "results" + ], + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextTaskResult" + } + ], + "x-ms-discriminator-value": "EntityRecognitionResults" + }, + "EntitiesWithMetadataAutoResult": { + "type": "object", + "description": "Contains the entity recognition task result.", + "properties": { + "errors": { + "type": "array", + "description": "Errors by document id.", + "items": { + "$ref": "#/definitions/DocumentError" + } + }, + "statistics": { + "$ref": "#/definitions/RequestStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the request payload." + }, + "modelVersion": { + "type": "string", + "description": "This field indicates which model is used for scoring." + }, + "documents": { + "type": "array", + "description": "Response by document", + "items": { + "$ref": "#/definitions/EntitiesDocumentResultWithMetadataDetectedLanguage" + } + } + }, + "required": [ + "errors", + "modelVersion", + "documents" + ] + }, + "Entity": { + "type": "object", + "description": "Defines the detected entity object containing the entity category and entity text detected, etc.", + "properties": { + "text": { + "type": "string", + "description": "Entity text as appears in the request." + }, + "category": { + "type": "string", + "description": "Entity type." + }, + "subcategory": { + "type": "string", + "description": "(Optional) Entity sub type." + }, + "offset": { + "type": "integer", + "format": "int32", + "description": "Start position for the entity text. Use of different 'stringIndexType' values can affect the offset returned." + }, + "length": { + "type": "integer", + "format": "int32", + "description": "Length for the entity text. Use of different 'stringIndexType' values can affect the length returned." + }, + "confidenceScore": { + "type": "number", + "format": "double", + "description": "Confidence score between 0 and 1 of the extracted entity." + } + }, + "required": [ + "text", + "category", + "offset", + "length", + "confidenceScore" + ] + }, + "EntityCategory": { + "type": "string", + "description": "Contains all the entity categories detected by entity recognition.", + "enum": [ + "Address", + "Numeric", + "Age", + "Currency", + "Number", + "NumberRange", + "Percentage", + "Ordinal", + "Temperature", + "Dimension", + "Length", + "Weight", + "Height", + "Speed", + "Area", + "Volume", + "Information", + "Temporal", + "Date", + "Time", + "DateTime", + "DateRange", + "TimeRange", + "DateTimeRange", + "Duration", + "SetTemporal", + "Event", + "SportsEvent", + "CulturalEvent", + "NaturalEvent", + "Location", + "GPE", + "City", + "State", + "CountryRegion", + "Continent", + "Structural", + "Airport", + "Geological", + "Organization", + "OrganizationMedical", + "OrganizationStockExchange", + "OrganizationSports", + "Person", + "PersonType", + "Email", + "URL", + "IP", + "PhoneNumber", + "Product", + "ComputingProduct", + "Skill" + ], + "x-ms-enum": { + "name": "EntityCategory", + "modelAsString": true, + "values": [ + { + "name": "Address", + "value": "Address", + "description": "Specific street-level mentions of locations: house/building numbers, streets, avenues, highways, intersections referenced by name." + }, + { + "name": "Numeric", + "value": "Numeric", + "description": "Numeric values, including digits and number words." + }, + { + "name": "Age", + "value": "Age", + "description": "Age-related values." + }, + { + "name": "Currency", + "value": "Currency", + "description": "Currency-related values." + }, + { + "name": "Number", + "value": "Number", + "description": "Numbers without a unit" + }, + { + "name": "NumberRange", + "value": "NumberRange", + "description": "Range of Numbers" + }, + { + "name": "Percentage", + "value": "Percentage", + "description": "Percentage-related values." + }, + { + "name": "Ordinal", + "value": "Ordinal", + "description": "Ordinal numbers." + }, + { + "name": "Temperature", + "value": "Temperature", + "description": "Temperature-related values." + }, + { + "name": "Dimension", + "value": "Dimension", + "description": "Dimension of measurements" + }, + { + "name": "Length", + "value": "Length", + "description": "Length of an object." + }, + { + "name": "Weight", + "value": "Weight", + "description": "Weight of an object." + }, + { + "name": "Height", + "value": "Height", + "description": "Height of an object." + }, + { + "name": "Speed", + "value": "Speed", + "description": "Speed of an object." + }, + { + "name": "Area", + "value": "Area", + "description": "Area of an object." + }, + { + "name": "Volume", + "value": "Volume", + "description": "Volume of an object." + }, + { + "name": "Information", + "value": "Information", + "description": "Unit of measure for digital information." + }, + { + "name": "Temporal", + "value": "Temporal", + "description": "Items relating to time." + }, + { + "name": "Date", + "value": "Date", + "description": "Calendar dates." + }, + { + "name": "Time", + "value": "Time", + "description": "Times of day." + }, + { + "name": "DateTime", + "value": "DateTime", + "description": "Calendar dates with time." + }, + { + "name": "DateRange", + "value": "DateRange", + "description": "Range of dates." + }, + { + "name": "TimeRange", + "value": "TimeRange", + "description": "Range of times." + }, + { + "name": "DateTimeRange", + "value": "DateTimeRange", + "description": "Range of date and time." + }, + { + "name": "Duration", + "value": "Duration", + "description": "Duration of time." + }, + { + "name": "SetTemporal", + "value": "SetTemporal", + "description": "Set of time-related values." + }, + { + "name": "Event", + "value": "Event", + "description": "Social, sports, business, political, educational, natural, historical, criminal, violent, legal, military events with a timed period." + }, + { + "name": "SportsEvent", + "value": "SportsEvent", + "description": "Sports event-related values." + }, + { + "name": "CulturalEvent", + "value": "CulturalEvent", + "description": "Cultural event-related values." + }, + { + "name": "NaturalEvent", + "value": "NaturalEvent", + "description": "Natural event-related values." + }, + { + "name": "Location", + "value": "Location", + "description": "Particular point or place in physical space." + }, + { + "name": "GPE", + "value": "GPE", + "description": "Cities, countries/regions, states." + }, + { + "name": "City", + "value": "City", + "description": "City-related values." + }, + { + "name": "State", + "value": "State", + "description": "State-related values." + }, + { + "name": "CountryRegion", + "value": "CountryRegion", + "description": "Country or region-related values." + }, + { + "name": "Continent", + "value": "Continent", + "description": "Continent-related values." + }, + { + "name": "Structural", + "value": "Structural", + "description": "Manmade structures." + }, + { + "name": "Airport", + "value": "Airport", + "description": "Airports." + }, + { + "name": "Geological", + "value": "Geological", + "description": "Geographic and natural features such as rivers, oceans, and deserts." + }, + { + "name": "Organization", + "value": "Organization", + "description": "Corporations, agencies, and other groups of people defined by some established organizational structure. These labels can include companies, political parties/movements, musical bands, sport clubs, government bodies, and public organizations. Nationalities or religions are not ORGANIZATION." + }, + { + "name": "OrganizationMedical", + "value": "OrganizationMedical", + "description": "Medical companies and groups." + }, + { + "name": "OrganizationStockExchange", + "value": "OrganizationStockExchange", + "description": "Stock exchange groups." + }, + { + "name": "OrganizationSports", + "value": "OrganizationSports", + "description": "Sports-related organizations." + }, + { + "name": "Person", + "value": "Person", + "description": "First, last, and middle names, names of fictional characters, and aliases. Titles, such as 'Mr.' or 'President', are not considered part of the named entity." + }, + { + "name": "PersonType", + "value": "PersonType", + "description": "Human roles classified by a group membership." + }, + { + "name": "Email", + "value": "Email", + "description": "Email addresses." + }, + { + "name": "URL", + "value": "URL", + "description": "URLs to websites." + }, + { + "name": "IP", + "value": "IP", + "description": "network IP addresses." + }, + { + "name": "PhoneNumber", + "value": "PhoneNumber", + "description": "Phone numbers (US and EU phone numbers only)." + }, + { + "name": "Product", + "value": "Product", + "description": "Single or group of commercial, consumable objects, electronics, vehicles, food groups." + }, + { + "name": "ComputingProduct", + "value": "ComputingProduct", + "description": "Computing products." + }, + { + "name": "Skill", + "value": "Skill", + "description": "A capability, skill, or expertise." + } + ] + } + }, + "EntityInferenceOptions": { + "type": "object", + "description": "The class that houses the inference options allowed for named entity recognition.", + "properties": { + "excludeNormalizedValues": { + "type": "boolean", + "description": "Option to include/exclude the detected entity values to be normalized and included in the metadata. The numeric and temporal entity types support value normalization.", + "default": false + } + } + }, + "EntityLinkingLROResult": { + "type": "object", + "description": "Contains the analyze text Entity linking task LRO result.", + "properties": { + "results": { + "$ref": "#/definitions/EntityLinkingResult", + "description": "Entity linking result." + } + }, + "required": [ + "results" + ], + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROResult" + } + ], + "x-ms-discriminator-value": "EntityLinkingLROResults" + }, + "EntityLinkingLROTask": { + "type": "object", + "description": "Contains the analyze text Entity linking LRO task.", + "properties": { + "parameters": { + "$ref": "#/definitions/EntityLinkingTaskParameters", + "description": "Task parameters." + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROTask" + } + ], + "x-ms-discriminator-value": "EntityLinking" + }, + "EntityLinkingResult": { + "type": "object", + "description": "Entity linking result.", + "properties": { + "errors": { + "type": "array", + "description": "Errors by document id.", + "items": { + "$ref": "#/definitions/DocumentError" + } + }, + "statistics": { + "$ref": "#/definitions/RequestStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the request payload." + }, + "modelVersion": { + "type": "string", + "description": "This field indicates which model is used for scoring." + }, + "documents": { + "type": "array", + "description": "Response by document", + "items": { + "$ref": "#/definitions/EntityLinkingResultWithDetectedLanguage" + } + } + }, + "required": [ + "errors", + "modelVersion", + "documents" + ] + }, + "EntityLinkingResultWithDetectedLanguage": { + "type": "object", + "description": "Entity linking document result with auto language detection.", + "properties": { + "id": { + "type": "string", + "description": "Unique, non-empty document identifier." + }, + "warnings": { + "type": "array", + "description": "Warnings encountered while processing document.", + "items": { + "$ref": "#/definitions/DocumentWarning" + } + }, + "statistics": { + "$ref": "#/definitions/DocumentStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the document payload." + }, + "entities": { + "type": "array", + "description": "Recognized well known entities in the document.", + "items": { + "$ref": "#/definitions/LinkedEntity" + } + }, + "detectedLanguage": { + "$ref": "#/definitions/DetectedLanguage", + "description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document." + } + }, + "required": [ + "id", + "warnings", + "entities" + ] + }, + "EntityLinkingTaskParameters": { + "type": "object", + "description": "Supported parameters for an Entity Linking task.", + "properties": { + "loggingOptOut": { + "type": "boolean", + "description": "logging opt out", + "default": false + }, + "modelVersion": { + "type": "string", + "description": "model version", + "default": "latest" + }, + "stringIndexType": { + "type": "string", + "description": "Optional parameter to provide the string index type used to interpret string offsets. Defaults to TextElements (Graphemes).", + "default": "TextElements_v8", + "enum": [ + "TextElements_v8", + "UnicodeCodePoint", + "Utf16CodeUnit" + ], + "x-ms-enum": { + "name": "StringIndexType", + "modelAsString": true, + "values": [ + { + "name": "TextElements_v8", + "value": "TextElements_v8", + "description": "Returned offset and length values will correspond to TextElements (Graphemes and Grapheme clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is written in .Net Framework or .Net Core and you will be using StringInfo." + }, + { + "name": "UnicodeCodePoint", + "value": "UnicodeCodePoint", + "description": "Returned offset and length values will correspond to Unicode code points. Use this option if your application is written in a language that support Unicode, for example Python." + }, + { + "name": "Utf16CodeUnit", + "value": "Utf16CodeUnit", + "description": "Returned offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript." + } + ] + } + } + } + }, + "EntityLinkingTaskResult": { + "type": "object", + "description": "Contains the analyze text Entity linking task result.", + "properties": { + "results": { + "$ref": "#/definitions/EntityLinkingResult", + "description": "Entity linking result." + } + }, + "required": [ + "results" + ], + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextTaskResult" + } + ], + "x-ms-discriminator-value": "EntityLinkingResults" + }, + "EntityMaskPolicyType": { + "type": "object", + "description": "Represents the policy of redacting PII with the entity type.", + "allOf": [ + { + "$ref": "#/definitions/BaseRedactionPolicy" + } + ], + "x-ms-discriminator-value": "entityMask" + }, + "EntityRecognitionLROResult": { + "type": "object", + "description": "Contains the entity recognition job task result.", + "properties": { + "results": { + "$ref": "#/definitions/EntitiesResult", + "description": "Results for the task." + } + }, + "required": [ + "results" + ], + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROResult" + } + ], + "x-ms-discriminator-value": "EntityRecognitionLROResults" + }, + "EntitySynonym": { + "type": "object", + "description": "The entity synonyms used to enhance pii entity detection", + "properties": { + "synonym": { + "type": "string", + "description": "The synonym to be used for context" + }, + "language": { + "type": "string", + "description": "The 2 letter ISO 639-1 language the synonym" + } + }, + "required": [ + "synonym" + ] + }, + "EntitySynonyms": { + "type": "object", + "description": "Object that allows the user to provide synonyms for context words that to enhance pii entity detection.", + "properties": { + "entityType": { + "$ref": "#/definitions/EntityCategory", + "description": "The entity name" + }, + "synonyms": { + "type": "array", + "description": "The entity synonyms", + "items": { + "$ref": "#/definitions/EntitySynonym" + } + } + }, + "required": [ + "entityType", + "synonyms" + ] + }, + "EntityTag": { + "type": "object", + "description": "Entity tag object which contains the name of the tags abd any associated confidence score. Entity Tags are used to express some similarities/affinity between entities.", + "properties": { + "name": { + "type": "string", + "description": "Name of the tag. Entity Tag names will be unique globally." + }, + "confidenceScore": { + "type": "number", + "format": "double", + "description": "Detection score between 0 and 1 of the extracted entity." + } + }, + "required": [ + "name" + ] + }, + "EntityWithMetadata": { + "type": "object", + "description": "Entity object with tags and metadata.", + "properties": { + "text": { + "type": "string", + "description": "Entity text as appears in the request." + }, + "category": { + "type": "string", + "description": "Entity type." + }, + "subcategory": { + "type": "string", + "description": "(Optional) Entity sub type." + }, + "offset": { + "type": "integer", + "format": "int32", + "description": "Start position for the entity text. Use of different 'stringIndexType' values can affect the offset returned." + }, + "length": { + "type": "integer", + "format": "int32", + "description": "Length for the entity text. Use of different 'stringIndexType' values can affect the length returned." + }, + "confidenceScore": { + "type": "number", + "format": "double", + "description": "Confidence score between 0 and 1 of the extracted entity." + }, + "type": { + "type": "string", + "description": "An entity type is the lowest (or finest) granularity at which the entity has been detected. The type maps to the specific metadata attributes associated with the entity detected." + }, + "tags": { + "type": "array", + "description": "List of entity tags. Tags are to express some similarities/affinity between entities.", + "items": { + "$ref": "#/definitions/EntityTag" + } + }, + "metadata": { + "$ref": "#/definitions/BaseMetadata", + "description": "The entity metadata object." + } + }, + "required": [ + "text", + "category", + "offset", + "length", + "confidenceScore" + ] + }, + "Error": { + "type": "object", + "description": "The error response object returned when the service encounters some errors during processing the request.", + "properties": { + "code": { + "$ref": "#/definitions/ErrorCode", + "description": "One of a server-defined set of error codes." + }, + "message": { + "type": "string", + "description": "A human-readable representation of the error." + }, + "target": { + "type": "string", + "description": "The target of the error." + }, + "details": { + "type": "array", + "description": "An array of details about specific errors that led to this reported error.", + "items": { + "$ref": "#/definitions/Error" + } + }, + "innererror": { + "$ref": "#/definitions/InnerErrorModel", + "description": "An object containing more specific information than the current object about the error." + } + }, + "required": [ + "code", + "message" + ] + }, + "ErrorCode": { + "type": "string", + "description": "Human-readable error code.", + "enum": [ + "InvalidRequest", + "InvalidArgument", + "Unauthorized", + "Forbidden", + "NotFound", + "ProjectNotFound", + "OperationNotFound", + "AzureCognitiveSearchNotFound", + "AzureCognitiveSearchIndexNotFound", + "TooManyRequests", + "AzureCognitiveSearchThrottling", + "AzureCognitiveSearchIndexLimitReached", + "InternalServerError", + "ServiceUnavailable", + "Timeout", + "QuotaExceeded", + "Conflict", + "Warning" + ], + "x-ms-enum": { + "name": "ErrorCode", + "modelAsString": true, + "values": [ + { + "name": "InvalidRequest", + "value": "InvalidRequest", + "description": "Invalid request error" + }, + { + "name": "InvalidArgument", + "value": "InvalidArgument", + "description": "Invalid argument error" + }, + { + "name": "Unauthorized", + "value": "Unauthorized", + "description": "Unauthorized access error" + }, + { + "name": "Forbidden", + "value": "Forbidden", + "description": "Forbidden access error" + }, + { + "name": "NotFound", + "value": "NotFound", + "description": "Not found error" + }, + { + "name": "ProjectNotFound", + "value": "ProjectNotFound", + "description": "Project not found error" + }, + { + "name": "OperationNotFound", + "value": "OperationNotFound", + "description": "Operation not found error" + }, + { + "name": "AzureCognitiveSearchNotFound", + "value": "AzureCognitiveSearchNotFound", + "description": "Azure Cognitive Search not found error" + }, + { + "name": "AzureCognitiveSearchIndexNotFound", + "value": "AzureCognitiveSearchIndexNotFound", + "description": "Azure Cognitive Search index not found error" + }, + { + "name": "TooManyRequests", + "value": "TooManyRequests", + "description": "Too many requests error" + }, + { + "name": "AzureCognitiveSearchThrottling", + "value": "AzureCognitiveSearchThrottling", + "description": "Azure Cognitive Search throttling error" + }, + { + "name": "AzureCognitiveSearchIndexLimitReached", + "value": "AzureCognitiveSearchIndexLimitReached", + "description": "Azure Cognitive Search index limit reached error" + }, + { + "name": "InternalServerError", + "value": "InternalServerError", + "description": "Internal server error" + }, + { + "name": "ServiceUnavailable", + "value": "ServiceUnavailable", + "description": "Service unavailable error" + }, + { + "name": "Timeout", + "value": "Timeout", + "description": "Timeout error" + }, + { + "name": "QuotaExceeded", + "value": "QuotaExceeded", + "description": "Quota exceeded error" + }, + { + "name": "Conflict", + "value": "Conflict", + "description": "Conflict error" + }, + { + "name": "Warning", + "value": "Warning", + "description": "Warning error" + } + ] + } + }, + "ErrorResponse": { + "type": "object", + "description": "Error response.", + "properties": { + "error": { + "$ref": "#/definitions/Error", + "description": "The error object." + } + }, + "required": [ + "error" + ] + }, + "ExtractedSummaryDocumentResultWithDetectedLanguage": { + "type": "object", + "description": "A ranked list of sentences representing the extracted summary.", + "properties": { + "id": { + "type": "string", + "description": "Unique, non-empty document identifier." + }, + "warnings": { + "type": "array", + "description": "Warnings encountered while processing document.", + "items": { + "$ref": "#/definitions/DocumentWarning" + } + }, + "statistics": { + "$ref": "#/definitions/DocumentStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the document payload." + }, + "sentences": { + "type": "array", + "description": "Specifies the the extracted sentences from the input document.", + "items": { + "$ref": "#/definitions/ExtractedSummarySentence" + } + }, + "detectedLanguage": { + "$ref": "#/definitions/DetectedLanguage", + "description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document." + } + }, + "required": [ + "id", + "warnings", + "sentences" + ] + }, + "ExtractedSummarySentence": { + "type": "object", + "description": "Represents an extracted sentences from the input document.", + "properties": { + "text": { + "type": "string", + "description": "The extracted sentence text." + }, + "rankScore": { + "type": "number", + "format": "double", + "description": "A double value representing the relevance of the sentence within the summary. Higher values indicate higher importance." + }, + "offset": { + "type": "integer", + "format": "int32", + "description": "The sentence offset from the start of the document, based on the value of the parameter StringIndexType." + }, + "length": { + "type": "integer", + "format": "int32", + "description": "The length of the sentence." + } + }, + "required": [ + "text", + "rankScore", + "offset", + "length" + ] + }, + "ExtractiveSummarizationLROResult": { + "type": "object", + "description": "An object representing the results for an Extractive Summarization task.", + "properties": { + "results": { + "$ref": "#/definitions/ExtractiveSummarizationResult", + "description": "Results of the task." + } + }, + "required": [ + "results" + ], + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROResult" + } + ], + "x-ms-discriminator-value": "ExtractiveSummarizationLROResults" + }, + "ExtractiveSummarizationLROTask": { + "type": "object", + "description": "An object representing the task definition for an Extractive Summarization task.", + "properties": { + "parameters": { + "$ref": "#/definitions/ExtractiveSummarizationTaskParameters", + "description": "Parameters for the Extractive Summarization task." + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROTask" + } + ], + "x-ms-discriminator-value": "ExtractiveSummarization" + }, + "ExtractiveSummarizationResult": { + "type": "object", + "description": "An object representing the pre-built Extractive Summarization results of each document.", + "properties": { + "errors": { + "type": "array", + "description": "Errors by document id.", + "items": { + "$ref": "#/definitions/DocumentError" + } + }, + "statistics": { + "$ref": "#/definitions/RequestStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the request payload." + }, + "modelVersion": { + "type": "string", + "description": "This field indicates which model is used for scoring." + }, + "documents": { + "type": "array", + "description": "Response by document", + "items": { + "$ref": "#/definitions/ExtractedSummaryDocumentResultWithDetectedLanguage" + } + } + }, + "required": [ + "errors", + "modelVersion", + "documents" + ] + }, + "ExtractiveSummarizationTaskParameters": { + "type": "object", + "description": "Supported parameters for an Extractive Summarization task.", + "properties": { + "loggingOptOut": { + "type": "boolean", + "description": "logging opt out", + "default": false + }, + "modelVersion": { + "type": "string", + "description": "model version", + "default": "latest" + }, + "sentenceCount": { + "type": "integer", + "format": "int64", + "description": "Specifies the number of sentences in the extracted summary.", + "default": 3 + }, + "sortBy": { + "type": "string", + "description": "Specifies how to sort the extracted summaries.", + "default": "Offset", + "enum": [ + "Offset", + "Rank" + ], + "x-ms-enum": { + "name": "ExtractiveSummarizationSortingCriteria", + "modelAsString": true, + "values": [ + { + "name": "Offset", + "value": "Offset", + "description": "Indicates that results should be sorted in order of appearance in the text." + }, + { + "name": "Rank", + "value": "Rank", + "description": "Indicates that results should be sorted in order of importance (i.e. rank score) according to the model." + } + ] + } + }, + "stringIndexType": { + "type": "string", + "description": "Specifies the method used to interpret string offsets.", + "default": "TextElements_v8", + "enum": [ + "TextElements_v8", + "UnicodeCodePoint", + "Utf16CodeUnit" + ], + "x-ms-enum": { + "name": "StringIndexType", + "modelAsString": true, + "values": [ + { + "name": "TextElements_v8", + "value": "TextElements_v8", + "description": "Returned offset and length values will correspond to TextElements (Graphemes and Grapheme clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is written in .Net Framework or .Net Core and you will be using StringInfo." + }, + { + "name": "UnicodeCodePoint", + "value": "UnicodeCodePoint", + "description": "Returned offset and length values will correspond to Unicode code points. Use this option if your application is written in a language that support Unicode, for example Python." + }, + { + "name": "Utf16CodeUnit", + "value": "Utf16CodeUnit", + "description": "Returned offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript." + } + ] + } + }, + "query": { + "type": "string", + "description": "(Optional) If provided, the query will be used to extract most relevant sentences from the document." + } + } + }, + "FhirBundle": { + "type": "object", + "description": "JSON bundle containing a FHIR compatible object for consumption in other Healthcare tools. For additional information see https://www.hl7.org/fhir/overview.html.", + "additionalProperties": {} + }, + "HealthcareAssertion": { + "type": "object", + "description": "Assertion of the entity.", + "properties": { + "conditionality": { + "$ref": "#/definitions/Conditionality", + "description": "Describes any conditionality on the entity." + }, + "certainty": { + "$ref": "#/definitions/Certainty", + "description": "Describes the entities certainty and polarity." + }, + "association": { + "$ref": "#/definitions/Association", + "description": "Describes if the entity is the subject of the text or if it describes someone else." + }, + "temporality": { + "$ref": "#/definitions/Temporality", + "description": "Describes temporal information regarding the entity." + } + } + }, + "HealthcareEntitiesDocumentResultWithDocumentDetectedLanguage": { + "type": "object", + "description": "Result object for the processed Healthcare document with detected language.", + "properties": { + "id": { + "type": "string", + "description": "Unique, non-empty document identifier." + }, + "warnings": { + "type": "array", + "description": "Warnings encountered while processing document.", + "items": { + "$ref": "#/definitions/DocumentWarning" + } + }, + "statistics": { + "$ref": "#/definitions/DocumentStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the document payload." + }, + "entities": { + "type": "array", + "description": "Healthcare entities.", + "items": { + "$ref": "#/definitions/HealthcareEntity" + } + }, + "relations": { + "type": "array", + "description": "Healthcare entity relations.", + "items": { + "$ref": "#/definitions/HealthcareRelation" + } + }, + "fhirBundle": { + "$ref": "#/definitions/FhirBundle", + "description": "JSON bundle containing a FHIR compatible object for consumption in other Healthcare tools. For additional information see https://www.hl7.org/fhir/overview.html." + }, + "detectedLanguage": { + "$ref": "#/definitions/DetectedLanguage", + "description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document." + } + }, + "required": [ + "id", + "warnings", + "entities", + "relations" + ] + }, + "HealthcareEntity": { + "type": "object", + "description": "Healthcare entity extracted from the document", + "properties": { + "text": { + "type": "string", + "description": "Entity text as appears in the request." + }, + "category": { + "$ref": "#/definitions/healthcareEntityCategory", + "description": "Healthcare Entity Category." + }, + "subcategory": { + "type": "string", + "description": "(Optional) Entity sub type." + }, + "offset": { + "type": "integer", + "format": "int32", + "description": "Start position for the entity text. Use of different 'stringIndexType' values can affect the offset returned." + }, + "length": { + "type": "integer", + "format": "int32", + "description": "Length for the entity text. Use of different 'stringIndexType' values can affect the length returned." + }, + "confidenceScore": { + "type": "number", + "format": "double", + "description": "Confidence score between 0 and 1 of the extracted entity." + }, + "assertion": { + "$ref": "#/definitions/HealthcareAssertion", + "description": "Assertion of the entity." + }, + "name": { + "type": "string", + "description": "Preferred name for the entity. Example: 'histologically' would have a 'name' of 'histologic'." + }, + "links": { + "type": "array", + "description": "Entity references in known data sources.", + "items": { + "$ref": "#/definitions/HealthcareEntityLink" + } + } + }, + "required": [ + "text", + "category", + "offset", + "length", + "confidenceScore" + ] + }, + "HealthcareEntityLink": { + "type": "object", + "description": "Reference to an entity in known data sources.", + "properties": { + "dataSource": { + "type": "string", + "description": "Entity Catalog. Examples include: UMLS, CHV, MSH, etc." + }, + "id": { + "type": "string", + "description": "Entity id in the given source catalog." + } + }, + "required": [ + "dataSource", + "id" + ] + }, + "HealthcareLROResult": { + "type": "object", + "description": "Healthcare Analyze Text long tunning operation result object.", + "properties": { + "results": { + "$ref": "#/definitions/HealthcareResult", + "description": "Results of the task." + } + }, + "required": [ + "results" + ], + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROResult" + } + ], + "x-ms-discriminator-value": "HealthcareLROResults" + }, + "HealthcareLROTask": { + "type": "object", + "description": "The long running task to be performed by the service on the Healthcare input documents.", + "properties": { + "parameters": { + "$ref": "#/definitions/HealthcareTaskParameters", + "description": "Parameters for the Healthcare task." + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROTask" + } + ], + "x-ms-discriminator-value": "Healthcare" + }, + "HealthcareRelation": { + "type": "object", + "description": "Every relation is an entity graph of a certain relationType, where all entities are connected and have specific roles within the relation context.", + "properties": { + "relationType": { + "$ref": "#/definitions/relationType", + "description": "Type of relation. Examples include: `DosageOfMedication` or 'FrequencyOfMedication', etc." + }, + "entities": { + "type": "array", + "description": "The entities in the relation.", + "items": { + "$ref": "#/definitions/HealthcareRelationEntity" + } + }, + "confidenceScore": { + "type": "number", + "format": "double", + "description": "Confidence score between 0 and 1 of the extracted relation." + } + }, + "required": [ + "relationType", + "entities" + ] + }, + "HealthcareRelationEntity": { + "type": "object", + "description": "Entity in the relation.", + "properties": { + "ref": { + "type": "string", + "description": "Reference link object, using a JSON pointer RFC 6901 (URI Fragment Identifier Representation), pointing to the entity ." + }, + "role": { + "type": "string", + "description": "Role of entity in the relationship. For example: 'CD20-positive diffuse large B-cell lymphoma' has the following entities with their roles in parenthesis: CD20 (GeneOrProtein), Positive (Expression), diffuse large B-cell lymphoma (Diagnosis)." + } + }, + "required": [ + "ref", + "role" + ] + }, + "HealthcareResult": { + "type": "object", + "description": "Result object for the processed Healthcare task.", + "properties": { + "errors": { + "type": "array", + "description": "Errors by document id.", + "items": { + "$ref": "#/definitions/DocumentError" + } + }, + "statistics": { + "$ref": "#/definitions/RequestStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the request payload." + }, + "modelVersion": { + "type": "string", + "description": "This field indicates which model is used for scoring." + }, + "documents": { + "type": "array", + "description": "List of result objects for the processed Healthcare documents.", + "items": { + "$ref": "#/definitions/HealthcareEntitiesDocumentResultWithDocumentDetectedLanguage" + } + } + }, + "required": [ + "errors", + "modelVersion", + "documents" + ] + }, + "HealthcareTaskParameters": { + "type": "object", + "description": "Supported parameters for a Healthcare task.", + "properties": { + "loggingOptOut": { + "type": "boolean", + "description": "logging opt out", + "default": false + }, + "modelVersion": { + "type": "string", + "description": "model version", + "default": "latest" + }, + "stringIndexType": { + "type": "string", + "description": "Specifies the method used to interpret string offsets.", + "default": "TextElements_v8", + "enum": [ + "TextElements_v8", + "UnicodeCodePoint", + "Utf16CodeUnit" + ], + "x-ms-enum": { + "name": "StringIndexType", + "modelAsString": true, + "values": [ + { + "name": "TextElements_v8", + "value": "TextElements_v8", + "description": "Returned offset and length values will correspond to TextElements (Graphemes and Grapheme clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is written in .Net Framework or .Net Core and you will be using StringInfo." + }, + { + "name": "UnicodeCodePoint", + "value": "UnicodeCodePoint", + "description": "Returned offset and length values will correspond to Unicode code points. Use this option if your application is written in a language that support Unicode, for example Python." + }, + { + "name": "Utf16CodeUnit", + "value": "Utf16CodeUnit", + "description": "Returned offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript." + } + ] + } + }, + "fhirVersion": { + "$ref": "#/definitions/fhirVersion", + "description": "The FHIR Spec version that the result will use to format the fhirBundle. For additional information see https://www.hl7.org/fhir/overview.html." + }, + "documentType": { + "$ref": "#/definitions/healthcareDocumentType", + "description": "Document type that can be provided as input for Fhir Documents. Expect to have fhirVersion provided when used. Behavior of using None enum is the same as not using the documentType parameter." + } + } + }, + "InformationMetadata": { + "type": "object", + "description": "Represents the Information (data) entity Metadata model.", + "properties": { + "value": { + "type": "number", + "format": "double", + "description": "The numeric value that the extracted text denotes." + }, + "unit": { + "$ref": "#/definitions/InformationUnit", + "description": "Unit of measure for information." + } + }, + "required": [ + "value", + "unit" + ], + "allOf": [ + { + "$ref": "#/definitions/BaseMetadata" + } + ], + "x-ms-discriminator-value": "InformationMetadata" + }, + "InformationUnit": { + "type": "string", + "description": "The information (data) Unit of measurement.", + "enum": [ + "Unspecified", + "Bit", + "Kilobit", + "Megabit", + "Gigabit", + "Terabit", + "Petabit", + "Byte", + "Kilobyte", + "Megabyte", + "Gigabyte", + "Terabyte", + "Petabyte" + ], + "x-ms-enum": { + "name": "InformationUnit", + "modelAsString": true, + "values": [ + { + "name": "Unspecified", + "value": "Unspecified", + "description": "Unspecified data size unit" + }, + { + "name": "Bit", + "value": "Bit", + "description": "Data size unit in bits" + }, + { + "name": "Kilobit", + "value": "Kilobit", + "description": "Data size unit in kilobits" + }, + { + "name": "Megabit", + "value": "Megabit", + "description": "Data size unit in megabits" + }, + { + "name": "Gigabit", + "value": "Gigabit", + "description": "Data size unit in gigabits" + }, + { + "name": "Terabit", + "value": "Terabit", + "description": "Data size unit in terabits" + }, + { + "name": "Petabit", + "value": "Petabit", + "description": "Data size unit in petabits" + }, + { + "name": "Byte", + "value": "Byte", + "description": "Data size unit in bytes" + }, + { + "name": "Kilobyte", + "value": "Kilobyte", + "description": "Data size unit in kilobytes" + }, + { + "name": "Megabyte", + "value": "Megabyte", + "description": "Data size unit in megabytes" + }, + { + "name": "Gigabyte", + "value": "Gigabyte", + "description": "Data size unit in gigabytes" + }, + { + "name": "Terabyte", + "value": "Terabyte", + "description": "Data size unit in terabytes" + }, + { + "name": "Petabyte", + "value": "Petabyte", + "description": "Data size unit in petabytes" + } + ] + } + }, + "InnerErrorCode": { + "type": "string", + "description": "Human-readable error code.", + "enum": [ + "InvalidRequest", + "InvalidParameterValue", + "KnowledgeBaseNotFound", + "AzureCognitiveSearchNotFound", + "AzureCognitiveSearchThrottling", + "ExtractionFailure", + "InvalidRequestBodyFormat", + "EmptyRequest", + "MissingInputDocuments", + "InvalidDocument", + "ModelVersionIncorrect", + "InvalidDocumentBatch", + "UnsupportedLanguageCode", + "InvalidCountryHint" + ], + "x-ms-enum": { + "name": "InnerErrorCode", + "modelAsString": true, + "values": [ + { + "name": "InvalidRequest", + "value": "InvalidRequest", + "description": "Invalid request error" + }, + { + "name": "InvalidParameterValue", + "value": "InvalidParameterValue", + "description": "Invalid parameter value error" + }, + { + "name": "KnowledgeBaseNotFound", + "value": "KnowledgeBaseNotFound", + "description": "Knowledge base not found error" + }, + { + "name": "AzureCognitiveSearchNotFound", + "value": "AzureCognitiveSearchNotFound", + "description": "Azure Cognitive Search not found error" + }, + { + "name": "AzureCognitiveSearchThrottling", + "value": "AzureCognitiveSearchThrottling", + "description": "Azure Cognitive Search throttling error" + }, + { + "name": "ExtractionFailure", + "value": "ExtractionFailure", + "description": "Extraction failure error" + }, + { + "name": "InvalidRequestBodyFormat", + "value": "InvalidRequestBodyFormat", + "description": "Invalid request body format error" + }, + { + "name": "EmptyRequest", + "value": "EmptyRequest", + "description": "Empty request error" + }, + { + "name": "MissingInputDocuments", + "value": "MissingInputDocuments", + "description": "Missing input documents error" + }, + { + "name": "InvalidDocument", + "value": "InvalidDocument", + "description": "Invalid document error" + }, + { + "name": "ModelVersionIncorrect", + "value": "ModelVersionIncorrect", + "description": "Model version incorrect error" + }, + { + "name": "InvalidDocumentBatch", + "value": "InvalidDocumentBatch", + "description": "Invalid document batch error" + }, + { + "name": "UnsupportedLanguageCode", + "value": "UnsupportedLanguageCode", + "description": "Unsupported language code error" + }, + { + "name": "InvalidCountryHint", + "value": "InvalidCountryHint", + "description": "Invalid country hint error" + } + ] + } + }, + "InnerErrorModel": { + "type": "object", + "description": "An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.", + "properties": { + "code": { + "$ref": "#/definitions/InnerErrorCode", + "description": "One of a server-defined set of error codes." + }, + "message": { + "type": "string", + "description": "Error message." + }, + "details": { + "type": "object", + "description": "Error details.", + "additionalProperties": { + "type": "string" + } + }, + "target": { + "type": "string", + "description": "Error target." + }, + "innererror": { + "$ref": "#/definitions/InnerErrorModel", + "description": "An object containing more specific information than the current object about the error." + } + }, + "required": [ + "code", + "message" + ] + }, + "KeyPhraseExtractionLROResult": { + "type": "object", + "description": "Contains the analyze text KeyPhraseExtraction LRO task.", + "properties": { + "results": { + "$ref": "#/definitions/KeyPhraseResult", + "description": "The list of Key phrase extraction results" + } + }, + "required": [ + "results" + ], + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROResult" + } + ], + "x-ms-discriminator-value": "KeyPhraseExtractionLROResults" + }, + "KeyPhraseLROTask": { + "type": "object", + "description": "An object representing the task definition for a Key Phrase Extraction task.", + "properties": { + "parameters": { + "$ref": "#/definitions/KeyPhraseTaskParameters", + "description": "Key phrase extraction task parameters." + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROTask" + } + ], + "x-ms-discriminator-value": "KeyPhraseExtraction" + }, + "KeyPhraseResult": { + "type": "object", + "description": "Contains the KeyPhraseResult.", + "properties": { + "errors": { + "type": "array", + "description": "Errors by document id.", + "items": { + "$ref": "#/definitions/DocumentError" + } + }, + "statistics": { + "$ref": "#/definitions/RequestStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the request payload." + }, + "modelVersion": { + "type": "string", + "description": "This field indicates which model is used for scoring." + }, + "documents": { + "type": "array", + "description": "Response by document", + "items": { + "$ref": "#/definitions/KeyPhrasesDocumentResultWithDetectedLanguage" + } + } + }, + "required": [ + "errors", + "modelVersion", + "documents" + ] + }, + "KeyPhraseTaskParameters": { + "type": "object", + "description": "Supported parameters for a Key Phrase Extraction task.", + "properties": { + "loggingOptOut": { + "type": "boolean", + "description": "logging opt out", + "default": false + }, + "modelVersion": { + "type": "string", + "description": "model version", + "default": "latest" + } + } + }, + "KeyPhraseTaskResult": { + "type": "object", + "description": "Contains the analyze text KeyPhraseExtraction task result.", + "properties": { + "results": { + "$ref": "#/definitions/KeyPhraseResult", + "description": "The list of Key phrase extraction results" + } + }, + "required": [ + "results" + ], + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextTaskResult" + } + ], + "x-ms-discriminator-value": "KeyPhraseExtractionResults" + }, + "KeyPhrasesDocumentResultWithDetectedLanguage": { + "type": "object", + "description": "A ranked list of sentences representing the extracted summary.", + "properties": { + "id": { + "type": "string", + "description": "Unique, non-empty document identifier." + }, + "warnings": { + "type": "array", + "description": "Warnings encountered while processing document.", + "items": { + "$ref": "#/definitions/DocumentWarning" + } + }, + "statistics": { + "$ref": "#/definitions/DocumentStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the document payload." + }, + "keyPhrases": { + "type": "array", + "description": "A list of representative words or phrases. The number of key phrases returned is proportional to the number of words in the input document.", + "items": { + "type": "string" + } + }, + "detectedLanguage": { + "$ref": "#/definitions/DetectedLanguage", + "description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document." + } + }, + "required": [ + "id", + "warnings", + "keyPhrases" + ] + }, + "LanguageDetectionAnalysisInput": { + "type": "object", + "description": "Contains the language detection document analysis input.", + "properties": { + "documents": { + "type": "array", + "description": "List of documents to be analyzed.", + "items": { + "$ref": "#/definitions/LanguageInput" + } + } + } + }, + "LanguageDetectionDocumentResult": { + "type": "object", + "description": "Contains the language detection for a document.", + "properties": { + "id": { + "type": "string", + "description": "Unique, non-empty document identifier." + }, + "warnings": { + "type": "array", + "description": "Warnings encountered while processing document.", + "items": { + "$ref": "#/definitions/DocumentWarning" + } + }, + "statistics": { + "$ref": "#/definitions/DocumentStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the document payload." + }, + "detectedLanguage": { + "$ref": "#/definitions/DetectedLanguage", + "description": "Detected Language." + } + }, + "required": [ + "id", + "warnings", + "detectedLanguage" + ] + }, + "LanguageDetectionResult": { + "type": "object", + "description": "Contains the language detection result for the request.", + "properties": { + "errors": { + "type": "array", + "description": "Errors by document id.", + "items": { + "$ref": "#/definitions/DocumentError" + } + }, + "statistics": { + "$ref": "#/definitions/RequestStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the request payload." + }, + "modelVersion": { + "type": "string", + "description": "This field indicates which model is used for scoring." + }, + "documents": { + "type": "array", + "description": "Enumeration of language detection results for each input document.", + "items": { + "$ref": "#/definitions/LanguageDetectionDocumentResult" + } + } + }, + "required": [ + "errors", + "modelVersion", + "documents" + ] + }, + "LanguageDetectionTaskParameters": { + "type": "object", + "description": "Supported parameters for a Language Detection task.", + "properties": { + "loggingOptOut": { + "type": "boolean", + "description": "logging opt out", + "default": false + }, + "modelVersion": { + "type": "string", + "description": "model version", + "default": "latest" + } + } + }, + "LanguageDetectionTaskResult": { + "type": "object", + "description": "Contains the language detection task result for the request.", + "properties": { + "results": { + "$ref": "#/definitions/LanguageDetectionResult", + "description": "Contains the language detection results." + } + }, + "required": [ + "results" + ], + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextTaskResult" + } + ], + "x-ms-discriminator-value": "LanguageDetectionResults" + }, + "LanguageInput": { + "type": "object", + "description": "Contains the language detection input.", + "properties": { + "id": { + "type": "string", + "description": "A unique, non-empty document identifier." + }, + "text": { + "type": "string", + "description": "The input text to process." + }, + "countryHint": { + "type": "string", + "description": "The country hint to help with language detection of the text." + } + }, + "required": [ + "id", + "text" + ] + }, + "LengthMetadata": { + "type": "object", + "description": "Represents the Length entity Metadata model.", + "properties": { + "value": { + "type": "number", + "format": "double", + "description": "The numeric value that the extracted text denotes." + }, + "unit": { + "$ref": "#/definitions/LengthUnit", + "description": "Unit of measure for length." + } + }, + "required": [ + "value", + "unit" + ], + "allOf": [ + { + "$ref": "#/definitions/BaseMetadata" + } + ], + "x-ms-discriminator-value": "LengthMetadata" + }, + "LengthUnit": { + "type": "string", + "description": "The length unit of measurement.", + "enum": [ + "Unspecified", + "Kilometer", + "Hectometer", + "Decameter", + "Meter", + "Decimeter", + "Centimeter", + "Millimeter", + "Micrometer", + "Nanometer", + "Picometer", + "Mile", + "Yard", + "Inch", + "Foot", + "LightYear", + "Point" + ], + "x-ms-enum": { + "name": "LengthUnit", + "modelAsString": true, + "values": [ + { + "name": "Unspecified", + "value": "Unspecified", + "description": "Unspecified length unit." + }, + { + "name": "Kilometer", + "value": "Kilometer", + "description": "Length unit in kilometers." + }, + { + "name": "Hectometer", + "value": "Hectometer", + "description": "Length unit in hectometers." + }, + { + "name": "Decameter", + "value": "Decameter", + "description": "Length unit in decameters." + }, + { + "name": "Meter", + "value": "Meter", + "description": "Length unit in meters." + }, + { + "name": "Decimeter", + "value": "Decimeter", + "description": "Length unit in decimeters." + }, + { + "name": "Centimeter", + "value": "Centimeter", + "description": "Length unit in centimeters." + }, + { + "name": "Millimeter", + "value": "Millimeter", + "description": "Length unit in millimeters." + }, + { + "name": "Micrometer", + "value": "Micrometer", + "description": "Length unit in micrometers." + }, + { + "name": "Nanometer", + "value": "Nanometer", + "description": "Length unit in nanometers." + }, + { + "name": "Picometer", + "value": "Picometer", + "description": "Length unit in picometers." + }, + { + "name": "Mile", + "value": "Mile", + "description": "Length unit in miles." + }, + { + "name": "Yard", + "value": "Yard", + "description": "Length unit in yards." + }, + { + "name": "Inch", + "value": "Inch", + "description": "Length unit in inches." + }, + { + "name": "Foot", + "value": "Foot", + "description": "Length unit in feet." + }, + { + "name": "LightYear", + "value": "LightYear", + "description": "Length unit in light years." + }, + { + "name": "Point", + "value": "Point", + "description": "Length unit in points." + } + ] + } + }, + "LinkedEntity": { + "type": "object", + "description": "The LinkedEntity object containing the detected entity with the associated sources/links.", + "properties": { + "name": { + "type": "string", + "description": "Entity Linking formal name." + }, + "matches": { + "type": "array", + "description": "List of instances this entity appears in the text.", + "items": { + "$ref": "#/definitions/Match" + } + }, + "language": { + "type": "string", + "description": "Language used in the data source." + }, + "id": { + "type": "string", + "description": "Unique identifier of the recognized entity from the data source." + }, + "url": { + "type": "string", + "description": "URL for the entity's page from the data source." + }, + "dataSource": { + "type": "string", + "description": "Data source used to extract entity linking, such as Wiki/Bing etc." + }, + "bingId": { + "type": "string", + "description": "Bing Entity Search API unique identifier of the recognized entity." + } + }, + "required": [ + "name", + "matches", + "language", + "url", + "dataSource" + ] + }, + "Match": { + "type": "object", + "description": "The Match object containing the detected entity text with the offset and the length.", + "properties": { + "confidenceScore": { + "type": "number", + "format": "double", + "description": "If a well known item is recognized, a decimal number denoting the confidence level between 0 and 1 will be returned." + }, + "text": { + "type": "string", + "description": "Entity text as appears in the request." + }, + "offset": { + "type": "integer", + "format": "int32", + "description": "Start position for the entity match text." + }, + "length": { + "type": "integer", + "format": "int32", + "description": "Length for the entity match text." + } + }, + "required": [ + "confidenceScore", + "text", + "offset", + "length" + ] + }, + "MatchLongestEntityPolicyType": { + "type": "object", + "description": "Represents the Match longest overlap policy. No overlapping entities as far as it is possible. 1. If there are overlapping entities, the longest one will be returned. 2. If the set of characters predicted for 2 or more entities are exactly the same, select the entity that has the higher confidence score.3. If the entity scores are identical, return all entities that are still present after applying the previous rules. 3. If there is partial overlap (as in Hello Text Analytics) follow the above steps starting from 1.", + "allOf": [ + { + "$ref": "#/definitions/BaseEntityOverlapPolicy" + } + ], + "x-ms-discriminator-value": "matchLongest" + }, + "MetadataKind": { + "type": "string", + "description": "The entity Metadata object kind.", + "enum": [ + "DateMetadata", + "DateTimeMetadata", + "TimeMetadata", + "TemporalSetMetadata", + "NumberMetadata", + "OrdinalMetadata", + "SpeedMetadata", + "WeightMetadata", + "LengthMetadata", + "VolumeMetadata", + "AreaMetadata", + "AgeMetadata", + "InformationMetadata", + "TemperatureMetadata", + "CurrencyMetadata", + "NumericRangeMetadata", + "TemporalSpanMetadata", + "AddressMetadata" + ], + "x-ms-enum": { + "name": "MetadataKind", + "modelAsString": true, + "values": [ + { + "name": "DateMetadata", + "value": "DateMetadata", + "description": "Metadata for date-related values." + }, + { + "name": "DateTimeMetadata", + "value": "DateTimeMetadata", + "description": "Metadata for date and time-related values." + }, + { + "name": "TimeMetadata", + "value": "TimeMetadata", + "description": "Metadata for time-related values." + }, + { + "name": "TemporalSetMetadata", + "value": "TemporalSetMetadata", + "description": "Metadata for set of time-related values." + }, + { + "name": "NumberMetadata", + "value": "NumberMetadata", + "description": "Metadata for numeric values." + }, + { + "name": "OrdinalMetadata", + "value": "OrdinalMetadata", + "description": "Metadata for ordinal numbers." + }, + { + "name": "SpeedMetadata", + "value": "SpeedMetadata", + "description": "Metadata for speed-related values." + }, + { + "name": "WeightMetadata", + "value": "WeightMetadata", + "description": "Metadata for weight-related values." + }, + { + "name": "LengthMetadata", + "value": "LengthMetadata", + "description": "Metadata for length-related values." + }, + { + "name": "VolumeMetadata", + "value": "VolumeMetadata", + "description": "Metadata for volume-related values." + }, + { + "name": "AreaMetadata", + "value": "AreaMetadata", + "description": "Metadata for area-related values." + }, + { + "name": "AgeMetadata", + "value": "AgeMetadata", + "description": "Metadata for age-related values." + }, + { + "name": "InformationMetadata", + "value": "InformationMetadata", + "description": "Metadata for information-related values." + }, + { + "name": "TemperatureMetadata", + "value": "TemperatureMetadata", + "description": "Metadata for temperature-related values." + }, + { + "name": "CurrencyMetadata", + "value": "CurrencyMetadata", + "description": "Metadata for currency-related values." + }, + { + "name": "NumericRangeMetadata", + "value": "NumericRangeMetadata", + "description": "Metadata for numeric range values." + }, + { + "name": "TemporalSpanMetadata", + "value": "TemporalSpanMetadata", + "description": "Metadata for temporal span values." + }, + { + "name": "AddressMetadata", + "value": "AddressMetadata", + "description": "Metadata for address-related values." + } + ] + } + }, + "MultiLanguageAnalysisInput": { + "type": "object", + "description": "Collection of input documents to be analyzed by the service.", + "properties": { + "documents": { + "type": "array", + "description": "The input documents to be analyzed.", + "items": { + "$ref": "#/definitions/MultiLanguageInput" + } + } + } + }, + "MultiLanguageInput": { + "type": "object", + "description": "Contains an input document to be analyzed by the service.", + "properties": { + "id": { + "type": "string", + "description": "A unique, non-empty document identifier." + }, + "text": { + "type": "string", + "description": "The input text to process." + }, + "language": { + "type": "string", + "description": "(Optional) This is the 2 letter ISO 639-1 representation of a language. For example, use \\\"en\\\" for English; \\\"es\\\" for Spanish etc. If not set, use \\\"en\\\" for English as default. (Following only applies to 2023-04-15-preview and above) For Auto Language Detection, use \\\"auto\\\". If not set, use \\\"en\\\" for English as default." + } + }, + "required": [ + "id", + "text" + ] + }, + "NoMaskPolicyType": { + "type": "object", + "description": "Represents the policy of not redacting found PII.", + "allOf": [ + { + "$ref": "#/definitions/BaseRedactionPolicy" + } + ], + "x-ms-discriminator-value": "noMask" + }, + "NumberKind": { + "type": "string", + "description": "The type of the extracted number entity.", + "enum": [ + "Integer", + "Decimal", + "Power", + "Fraction", + "Percent", + "Unspecified" + ], + "x-ms-enum": { + "name": "NumberKind", + "modelAsString": true, + "values": [ + { + "name": "Integer", + "value": "Integer", + "description": "Integer number" + }, + { + "name": "Decimal", + "value": "Decimal", + "description": "Decimal number" + }, + { + "name": "Power", + "value": "Power", + "description": "Power number" + }, + { + "name": "Fraction", + "value": "Fraction", + "description": "Fraction number" + }, + { + "name": "Percent", + "value": "Percent", + "description": "Percent number" + }, + { + "name": "Unspecified", + "value": "Unspecified", + "description": "Unspecified number kind" + } + ] + } + }, + "NumberMetadata": { + "type": "object", + "description": "A metadata for numeric entity instances.", + "properties": { + "numberKind": { + "$ref": "#/definitions/NumberKind", + "description": "Kind of the number type." + }, + "value": { + "type": "number", + "format": "double", + "description": "A numeric representation of what the extracted text denotes." + } + }, + "required": [ + "numberKind", + "value" + ], + "allOf": [ + { + "$ref": "#/definitions/BaseMetadata" + } + ], + "x-ms-discriminator-value": "NumberMetadata" + }, + "NumericRangeMetadata": { + "type": "object", + "description": "represents the Metadata of numeric intervals.", + "properties": { + "rangeKind": { + "$ref": "#/definitions/RangeKind", + "description": "Kind of numeric ranges supported - like Number, Speed, etc." + }, + "minimum": { + "type": "number", + "format": "double", + "description": "The beginning value of the interval." + }, + "maximum": { + "type": "number", + "format": "double", + "description": "The ending value of the interval." + }, + "rangeInclusivity": { + "$ref": "#/definitions/RangeInclusivity", + "description": "The inclusiveness of this range." + } + }, + "required": [ + "rangeKind", + "minimum", + "maximum" + ], + "allOf": [ + { + "$ref": "#/definitions/BaseMetadata" + } + ], + "x-ms-discriminator-value": "NumericRangeMetadata" + }, + "OrdinalMetadata": { + "type": "object", + "description": "A metadata for numeric entity instances.", + "properties": { + "offset": { + "type": "string", + "description": "The offset with respect to the reference (e.g., offset = -1 indicates the second to last)" + }, + "relativeTo": { + "$ref": "#/definitions/RelativeTo", + "description": "The reference point that the ordinal number denotes." + }, + "value": { + "type": "string", + "description": "A simple arithmetic expression that the ordinal denotes." + } + }, + "required": [ + "offset", + "relativeTo", + "value" + ], + "allOf": [ + { + "$ref": "#/definitions/BaseMetadata" + } + ], + "x-ms-discriminator-value": "OrdinalMetadata" + }, + "PiiCategoriesExclude": { + "type": "string", + "description": "(Optional) describes the PII categories to return", + "enum": [ + "ABARoutingNumber", + "ARNationalIdentityNumber", + "AUBankAccountNumber", + "AUDriversLicenseNumber", + "AUMedicalAccountNumber", + "AUPassportNumber", + "AUTaxFileNumber", + "AUBusinessNumber", + "AUCompanyNumber", + "ATIdentityCard", + "ATTaxIdentificationNumber", + "ATValueAddedTaxNumber", + "AzureDocumentDBAuthKey", + "AzureIAASDatabaseConnectionAndSQLString", + "AzureIoTConnectionString", + "AzurePublishSettingPassword", + "AzureRedisCacheString", + "AzureSAS", + "AzureServiceBusString", + "AzureStorageAccountKey", + "AzureStorageAccountGeneric", + "BENationalNumber", + "BENationalNumberV2", + "BEValueAddedTaxNumber", + "BRCPFNumber", + "BRLegalEntityNumber", + "BRNationalIDRG", + "BGUniformCivilNumber", + "CABankAccountNumber", + "CADriversLicenseNumber", + "CAHealthServiceNumber", + "CAPassportNumber", + "CAPersonalHealthIdentification", + "CASocialInsuranceNumber", + "CLIdentityCardNumber", + "CNResidentIdentityCardNumber", + "CreditCardNumber", + "HRIdentityCardNumber", + "HRNationalIDNumber", + "HRPersonalIdentificationNumber", + "HRPersonalIdentificationOIBNumberV2", + "CYIdentityCard", + "CYTaxIdentificationNumber", + "CZPersonalIdentityNumber", + "CZPersonalIdentityV2", + "DKPersonalIdentificationNumber", + "DKPersonalIdentificationV2", + "DrugEnforcementAgencyNumber", + "EEPersonalIdentificationCode", + "EUDebitCardNumber", + "EUDriversLicenseNumber", + "EUGPSCoordinates", + "EUNationalIdentificationNumber", + "EUPassportNumber", + "EUSocialSecurityNumber", + "EUTaxIdentificationNumber", + "FIEuropeanHealthNumber", + "FINationalID", + "FINationalIDV2", + "FIPassportNumber", + "FRDriversLicenseNumber", + "FRHealthInsuranceNumber", + "FRNationalID", + "FRPassportNumber", + "FRSocialSecurityNumber", + "FRTaxIdentificationNumber", + "FRValueAddedTaxNumber", + "DEDriversLicenseNumber", + "DEPassportNumber", + "DEIdentityCardNumber", + "DETaxIdentificationNumber", + "DEValueAddedNumber", + "GRNationalIDCard", + "GRNationalIDV2", + "GRTaxIdentificationNumber", + "HKIdentityCardNumber", + "HUValueAddedNumber", + "HUPersonalIdentificationNumber", + "HUTaxIdentificationNumber", + "INPermanentAccount", + "INUniqueIdentificationNumber", + "IDIdentityCardNumber", + "InternationalBankingAccountNumber", + "IEPersonalPublicServiceNumber", + "IEPersonalPublicServiceNumberV2", + "ILBankAccountNumber", + "ILNationalID", + "ITDriversLicenseNumber", + "ITFiscalCode", + "ITValueAddedTaxNumber", + "JPBankAccountNumber", + "JPDriversLicenseNumber", + "JPPassportNumber", + "JPResidentRegistrationNumber", + "JPSocialInsuranceNumber", + "JPMyNumberCorporate", + "JPMyNumberPersonal", + "JPResidenceCardNumber", + "LVPersonalCode", + "LTPersonalCode", + "LUNationalIdentificationNumberNatural", + "LUNationalIdentificationNumberNonNatural", + "MYIdentityCardNumber", + "MTIdentityCardNumber", + "MTTaxIDNumber", + "NLCitizensServiceNumber", + "NLCitizensServiceNumberV2", + "NLTaxIdentificationNumber", + "NLValueAddedTaxNumber", + "NZBankAccountNumber", + "NZDriversLicenseNumber", + "NZInlandRevenueNumber", + "NZMinistryOfHealthNumber", + "NZSocialWelfareNumber", + "NOIdentityNumber", + "PHUnifiedMultiPurposeIDNumber", + "PLIdentityCard", + "PLNationalID", + "PLNationalIDV2", + "PLPassportNumber", + "PLTaxIdentificationNumber", + "PLREGONNumber", + "PTCitizenCardNumber", + "PTCitizenCardNumberV2", + "PTTaxIdentificationNumber", + "ROPersonalNumericalCode", + "RUPassportNumberDomestic", + "RUPassportNumberInternational", + "SANationalID", + "SGNationalRegistrationIdentityCardNumber", + "SKPersonalNumber", + "SITaxIdentificationNumber", + "SIUniqueMasterCitizenNumber", + "ZAIdentificationNumber", + "KRResidentRegistrationNumber", + "ESDNI", + "ESSocialSecurityNumber", + "ESTaxIdentificationNumber", + "SQLServerConnectionString", + "SENationalID", + "SENationalIDV2", + "SEPassportNumber", + "SETaxIdentificationNumber", + "SWIFTCode", + "CHSocialSecurityNumber", + "TWNationalID", + "TWPassportNumber", + "TWResidentCertificate", + "THPopulationIdentificationCode", + "TRNationalIdentificationNumber", + "UKDriversLicenseNumber", + "UKElectoralRollNumber", + "UKNationalHealthNumber", + "UKNationalInsuranceNumber", + "UKUniqueTaxpayerNumber", + "USUKPassportNumber", + "USBankAccountNumber", + "USDriversLicenseNumber", + "USIndividualTaxpayerIdentification", + "USSocialSecurityNumber", + "UAPassportNumberDomestic", + "UAPassportNumberInternational", + "Organization", + "Email", + "URL", + "Age", + "PhoneNumber", + "IPAddress", + "Date", + "Person", + "Address", + "DateOfBirth", + "BankAccountNumber", + "PassportNumber", + "DriversLicenseNumber", + "Neighborhood", + "SortCode", + "PIN", + "VIN", + "VehicleIdentificationNumber", + "LicensePlate", + "KRPassportNumber", + "KRDriversLicenseNumber", + "KRSocialSecurityNumber", + "GovernmentIssuedId", + "Password", + "NationalId", + "ZipCode", + "CVV", + "ExpirationDate", + "CASocialIdentificationNumber", + "USMedicareBeneficiaryId", + "Location", + "City", + "State", + "Airport", + "GPE" + ], + "x-ms-enum": { + "name": "PiiCategoriesExclude", + "modelAsString": true, + "values": [ + { + "name": "ABARoutingNumber", + "value": "ABARoutingNumber", + "description": "ABA Routing number" + }, + { + "name": "ARNationalIdentityNumber", + "value": "ARNationalIdentityNumber", + "description": "AR National Identity Number" + }, + { + "name": "AUBankAccountNumber", + "value": "AUBankAccountNumber", + "description": "AT Bank Account Number" + }, + { + "name": "AUDriversLicenseNumber", + "value": "AUDriversLicenseNumber", + "description": "AU Driver's License Number" + }, + { + "name": "AUMedicalAccountNumber", + "value": "AUMedicalAccountNumber", + "description": "AU Medical Account Number" + }, + { + "name": "AUPassportNumber", + "value": "AUPassportNumber", + "description": "AU Passport Number" + }, + { + "name": "AUTaxFileNumber", + "value": "AUTaxFileNumber", + "description": "AU Tax File Number" + }, + { + "name": "AUBusinessNumber", + "value": "AUBusinessNumber", + "description": "AU Business Number" + }, + { + "name": "AUCompanyNumber", + "value": "AUCompanyNumber", + "description": "AU Company Number" + }, + { + "name": "ATIdentityCard", + "value": "ATIdentityCard", + "description": "AT Identity Card" + }, + { + "name": "ATTaxIdentificationNumber", + "value": "ATTaxIdentificationNumber", + "description": "AT Tax Identification Number" + }, + { + "name": "ATValueAddedTaxNumber", + "value": "ATValueAddedTaxNumber", + "description": "AT Value Added Tax Number" + }, + { + "name": "AzureDocumentDBAuthKey", + "value": "AzureDocumentDBAuthKey", + "description": "Azure Document DB Auth Key" + }, + { + "name": "AzureIAASDatabaseConnectionAndSQLString", + "value": "AzureIAASDatabaseConnectionAndSQLString", + "description": "Azure IAAS Database Connection And SQL String" + }, + { + "name": "AzureIoTConnectionString", + "value": "AzureIoTConnectionString", + "description": "Azure IoT Connection String" + }, + { + "name": "AzurePublishSettingPassword", + "value": "AzurePublishSettingPassword", + "description": "Azure Publish Setting Password" + }, + { + "name": "AzureRedisCacheString", + "value": "AzureRedisCacheString", + "description": "Azure Redis Cache String" + }, + { + "name": "AzureSAS", + "value": "AzureSAS", + "description": "Azure SAS" + }, + { + "name": "AzureServiceBusString", + "value": "AzureServiceBusString", + "description": "Azure Service Bus String" + }, + { + "name": "AzureStorageAccountKey", + "value": "AzureStorageAccountKey", + "description": "Azure Storage Account Key" + }, + { + "name": "AzureStorageAccountGeneric", + "value": "AzureStorageAccountGeneric", + "description": "Azure Storage Account Generic" + }, + { + "name": "BENationalNumber", + "value": "BENationalNumber", + "description": "BE National Number" + }, + { + "name": "BENationalNumberV2", + "value": "BENationalNumberV2", + "description": "BE National Number V2" + }, + { + "name": "BEValueAddedTaxNumber", + "value": "BEValueAddedTaxNumber", + "description": "BE Value Added Tax Number" + }, + { + "name": "BRCPFNumber", + "value": "BRCPFNumber", + "description": "BR CPF Number" + }, + { + "name": "BRLegalEntityNumber", + "value": "BRLegalEntityNumber", + "description": "BR Legal Entity Number" + }, + { + "name": "BRNationalIDRG", + "value": "BRNationalIDRG", + "description": "BR National ID RG" + }, + { + "name": "BGUniformCivilNumber", + "value": "BGUniformCivilNumber", + "description": "BG Uniform Civil Number" + }, + { + "name": "CABankAccountNumber", + "value": "CABankAccountNumber", + "description": "CA Bank Account Number" + }, + { + "name": "CADriversLicenseNumber", + "value": "CADriversLicenseNumber", + "description": "CA Driver's License Number" + }, + { + "name": "CAHealthServiceNumber", + "value": "CAHealthServiceNumber", + "description": "CA Health Service Number" + }, + { + "name": "CAPassportNumber", + "value": "CAPassportNumber", + "description": "CA Passport Number" + }, + { + "name": "CAPersonalHealthIdentification", + "value": "CAPersonalHealthIdentification", + "description": "CA Personal Health Identification" + }, + { + "name": "CASocialInsuranceNumber", + "value": "CASocialInsuranceNumber", + "description": "CA Social Insurance Number" + }, + { + "name": "CLIdentityCardNumber", + "value": "CLIdentityCardNumber", + "description": "CL Identity Card Number" + }, + { + "name": "CNResidentIdentityCardNumber", + "value": "CNResidentIdentityCardNumber", + "description": "CN Resident Identity Card Number" + }, + { + "name": "CreditCardNumber", + "value": "CreditCardNumber", + "description": "Credit Card Number" + }, + { + "name": "HRIdentityCardNumber", + "value": "HRIdentityCardNumber", + "description": "HR Identity Card Number" + }, + { + "name": "HRNationalIDNumber", + "value": "HRNationalIDNumber", + "description": "HR National ID Number" + }, + { + "name": "HRPersonalIdentificationNumber", + "value": "HRPersonalIdentificationNumber", + "description": "HR Personal Identification Number" + }, + { + "name": "HRPersonalIdentificationOIBNumberV2", + "value": "HRPersonalIdentificationOIBNumberV2", + "description": "HR Personal Identification OIB Number V2" + }, + { + "name": "CYIdentityCard", + "value": "CYIdentityCard", + "description": "CY Identity Card" + }, + { + "name": "CYTaxIdentificationNumber", + "value": "CYTaxIdentificationNumber", + "description": "CY Tax Identification Number" + }, + { + "name": "CZPersonalIdentityNumber", + "value": "CZPersonalIdentityNumber", + "description": "CZ Personal Identity Number" + }, + { + "name": "CZPersonalIdentityV2", + "value": "CZPersonalIdentityV2", + "description": "CZ Personal Identity V2" + }, + { + "name": "DKPersonalIdentificationNumber", + "value": "DKPersonalIdentificationNumber", + "description": "DK Personal Identification Number" + }, + { + "name": "DKPersonalIdentificationV2", + "value": "DKPersonalIdentificationV2", + "description": "DK Personal Identification V2" + }, + { + "name": "DrugEnforcementAgencyNumber", + "value": "DrugEnforcementAgencyNumber", + "description": "Drug Enforcement Agency Number" + }, + { + "name": "EEPersonalIdentificationCode", + "value": "EEPersonalIdentificationCode", + "description": "EE Personal Identification Code" + }, + { + "name": "EUDebitCardNumber", + "value": "EUDebitCardNumber", + "description": "EU Debit Card Number" + }, + { + "name": "EUDriversLicenseNumber", + "value": "EUDriversLicenseNumber", + "description": "EU Driver's License Number" + }, + { + "name": "EUGPSCoordinates", + "value": "EUGPSCoordinates", + "description": "EU GPS Coordinates" + }, + { + "name": "EUNationalIdentificationNumber", + "value": "EUNationalIdentificationNumber", + "description": "EU National Identification Number" + }, + { + "name": "EUPassportNumber", + "value": "EUPassportNumber", + "description": "EU Passport Number" + }, + { + "name": "EUSocialSecurityNumber", + "value": "EUSocialSecurityNumber", + "description": "EU Social Security Number" + }, + { + "name": "EUTaxIdentificationNumber", + "value": "EUTaxIdentificationNumber", + "description": "EU Tax Identification Number" + }, + { + "name": "FIEuropeanHealthNumber", + "value": "FIEuropeanHealthNumber", + "description": "FI European Health Number" + }, + { + "name": "FINationalID", + "value": "FINationalID", + "description": "FI National ID" + }, + { + "name": "FINationalIDV2", + "value": "FINationalIDV2", + "description": "FI National ID V2" + }, + { + "name": "FIPassportNumber", + "value": "FIPassportNumber", + "description": "FI Passport Number" + }, + { + "name": "FRDriversLicenseNumber", + "value": "FRDriversLicenseNumber", + "description": "FR Driver's License Number" + }, + { + "name": "FRHealthInsuranceNumber", + "value": "FRHealthInsuranceNumber", + "description": "FR Health Insurance Number" + }, + { + "name": "FRNationalID", + "value": "FRNationalID", + "description": "FR National ID" + }, + { + "name": "FRPassportNumber", + "value": "FRPassportNumber", + "description": "FR Passport Number" + }, + { + "name": "FRSocialSecurityNumber", + "value": "FRSocialSecurityNumber", + "description": "FR Social Security Number" + }, + { + "name": "FRTaxIdentificationNumber", + "value": "FRTaxIdentificationNumber", + "description": "FR Tax Identification Number" + }, + { + "name": "FRValueAddedTaxNumber", + "value": "FRValueAddedTaxNumber", + "description": "FR Value Added Tax Number" + }, + { + "name": "DEDriversLicenseNumber", + "value": "DEDriversLicenseNumber", + "description": "DE Driver's License Number" + }, + { + "name": "DEPassportNumber", + "value": "DEPassportNumber", + "description": "DE Passport Number" + }, + { + "name": "DEIdentityCardNumber", + "value": "DEIdentityCardNumber", + "description": "DE Identity Card Number" + }, + { + "name": "DETaxIdentificationNumber", + "value": "DETaxIdentificationNumber", + "description": "DE Tax Identification Number" + }, + { + "name": "DEValueAddedNumber", + "value": "DEValueAddedNumber", + "description": "DE Value Added Number" + }, + { + "name": "GRNationalIDCard", + "value": "GRNationalIDCard", + "description": "GR National ID Card" + }, + { + "name": "GRNationalIDV2", + "value": "GRNationalIDV2", + "description": "GR National ID V2" + }, + { + "name": "GRTaxIdentificationNumber", + "value": "GRTaxIdentificationNumber", + "description": "GR Tax Identification Number" + }, + { + "name": "HKIdentityCardNumber", + "value": "HKIdentityCardNumber", + "description": "HK Identity Card Number" + }, + { + "name": "HUValueAddedNumber", + "value": "HUValueAddedNumber", + "description": "HU Value Added Number" + }, + { + "name": "HUPersonalIdentificationNumber", + "value": "HUPersonalIdentificationNumber", + "description": "HU Personal Identification Number" + }, + { + "name": "HUTaxIdentificationNumber", + "value": "HUTaxIdentificationNumber", + "description": "HU Tax Identification Number" + }, + { + "name": "INPermanentAccount", + "value": "INPermanentAccount", + "description": "IN Permanent Account" + }, + { + "name": "INUniqueIdentificationNumber", + "value": "INUniqueIdentificationNumber", + "description": "IN Unique Identification Number" + }, + { + "name": "IDIdentityCardNumber", + "value": "IDIdentityCardNumber", + "description": "ID Identity Card Number" + }, + { + "name": "InternationalBankingAccountNumber", + "value": "InternationalBankingAccountNumber", + "description": "International Banking Account Number" + }, + { + "name": "IEPersonalPublicServiceNumber", + "value": "IEPersonalPublicServiceNumber", + "description": "IE Personal Public Service Number" + }, + { + "name": "IEPersonalPublicServiceNumberV2", + "value": "IEPersonalPublicServiceNumberV2", + "description": "IE Personal Public Service Number V2" + }, + { + "name": "ILBankAccountNumber", + "value": "ILBankAccountNumber", + "description": "IL Bank Account Number" + }, + { + "name": "ILNationalID", + "value": "ILNationalID", + "description": "IL National ID" + }, + { + "name": "ITDriversLicenseNumber", + "value": "ITDriversLicenseNumber", + "description": "IT Driver's License Number" + }, + { + "name": "ITFiscalCode", + "value": "ITFiscalCode", + "description": "IT Fiscal Code" + }, + { + "name": "ITValueAddedTaxNumber", + "value": "ITValueAddedTaxNumber", + "description": "IT Value Added Tax Number" + }, + { + "name": "JPBankAccountNumber", + "value": "JPBankAccountNumber", + "description": "JP Bank Account Number" + }, + { + "name": "JPDriversLicenseNumber", + "value": "JPDriversLicenseNumber", + "description": "JP Driver's License Number" + }, + { + "name": "JPPassportNumber", + "value": "JPPassportNumber", + "description": "JP Passport Number" + }, + { + "name": "JPResidentRegistrationNumber", + "value": "JPResidentRegistrationNumber", + "description": "JP Resident Registration Number" + }, + { + "name": "JPSocialInsuranceNumber", + "value": "JPSocialInsuranceNumber", + "description": "JP Social Insurance Number" + }, + { + "name": "JPMyNumberCorporate", + "value": "JPMyNumberCorporate", + "description": "JP My Number Corporate" + }, + { + "name": "JPMyNumberPersonal", + "value": "JPMyNumberPersonal", + "description": "JP My Number Personal" + }, + { + "name": "JPResidenceCardNumber", + "value": "JPResidenceCardNumber", + "description": "JP Residence Card Number" + }, + { + "name": "LVPersonalCode", + "value": "LVPersonalCode", + "description": "LV Personal Code" + }, + { + "name": "LTPersonalCode", + "value": "LTPersonalCode", + "description": "LT Personal Code" + }, + { + "name": "LUNationalIdentificationNumberNatural", + "value": "LUNationalIdentificationNumberNatural", + "description": "LU National Identification Number Natural" + }, + { + "name": "LUNationalIdentificationNumberNonNatural", + "value": "LUNationalIdentificationNumberNonNatural", + "description": "LU National Identification Number Non Natural" + }, + { + "name": "MYIdentityCardNumber", + "value": "MYIdentityCardNumber", + "description": "MY Identity Card Number" + }, + { + "name": "MTIdentityCardNumber", + "value": "MTIdentityCardNumber", + "description": "MT Identity Card Number" + }, + { + "name": "MTTaxIDNumber", + "value": "MTTaxIDNumber", + "description": "MT Tax ID Number" + }, + { + "name": "NLCitizensServiceNumber", + "value": "NLCitizensServiceNumber", + "description": "NL Citizens Service Number" + }, + { + "name": "NLCitizensServiceNumberV2", + "value": "NLCitizensServiceNumberV2", + "description": "NL Citizens Service Number V2" + }, + { + "name": "NLTaxIdentificationNumber", + "value": "NLTaxIdentificationNumber", + "description": "NL Tax Identification Number" + }, + { + "name": "NLValueAddedTaxNumber", + "value": "NLValueAddedTaxNumber", + "description": "NL Value Added Tax Number" + }, + { + "name": "NZBankAccountNumber", + "value": "NZBankAccountNumber", + "description": "NZ Bank Account Number" + }, + { + "name": "NZDriversLicenseNumber", + "value": "NZDriversLicenseNumber", + "description": "NZ Driver's License Number" + }, + { + "name": "NZInlandRevenueNumber", + "value": "NZInlandRevenueNumber", + "description": "NZ Inland Revenue Number" + }, + { + "name": "NZMinistryOfHealthNumber", + "value": "NZMinistryOfHealthNumber", + "description": "NZ Ministry Of Health Number" + }, + { + "name": "NZSocialWelfareNumber", + "value": "NZSocialWelfareNumber", + "description": "NZ Social Welfare Number" + }, + { + "name": "NOIdentityNumber", + "value": "NOIdentityNumber", + "description": "NO Identity Number" + }, + { + "name": "PHUnifiedMultiPurposeIDNumber", + "value": "PHUnifiedMultiPurposeIDNumber", + "description": "PH Unified Multi Purpose ID Number" + }, + { + "name": "PLIdentityCard", + "value": "PLIdentityCard", + "description": "PL Identity Card" + }, + { + "name": "PLNationalID", + "value": "PLNationalID", + "description": "PL National ID" + }, + { + "name": "PLNationalIDV2", + "value": "PLNationalIDV2", + "description": "PL National ID V2" + }, + { + "name": "PLPassportNumber", + "value": "PLPassportNumber", + "description": "PL Passport Number" + }, + { + "name": "PLTaxIdentificationNumber", + "value": "PLTaxIdentificationNumber", + "description": "PL Tax Identification Number" + }, + { + "name": "PLREGONNumber", + "value": "PLREGONNumber", + "description": "PL REGON Number" + }, + { + "name": "PTCitizenCardNumber", + "value": "PTCitizenCardNumber", + "description": "PT Citizen Card Number" + }, + { + "name": "PTCitizenCardNumberV2", + "value": "PTCitizenCardNumberV2", + "description": "PT Citizen Card Number V2" + }, + { + "name": "PTTaxIdentificationNumber", + "value": "PTTaxIdentificationNumber", + "description": "PT Tax Identification Number" + }, + { + "name": "ROPersonalNumericalCode", + "value": "ROPersonalNumericalCode", + "description": "RO Personal Numerical Code" + }, + { + "name": "RUPassportNumberDomestic", + "value": "RUPassportNumberDomestic", + "description": "RU Passport Number Domestic" + }, + { + "name": "RUPassportNumberInternational", + "value": "RUPassportNumberInternational", + "description": "RU Passport Number International" + }, + { + "name": "SANationalID", + "value": "SANationalID", + "description": "SA National ID" + }, + { + "name": "SGNationalRegistrationIdentityCardNumber", + "value": "SGNationalRegistrationIdentityCardNumber", + "description": "SG National Registration Identity Card Number" + }, + { + "name": "SKPersonalNumber", + "value": "SKPersonalNumber", + "description": "SK Personal Number" + }, + { + "name": "SITaxIdentificationNumber", + "value": "SITaxIdentificationNumber", + "description": "SI Tax Identification Number" + }, + { + "name": "SIUniqueMasterCitizenNumber", + "value": "SIUniqueMasterCitizenNumber", + "description": "SI Unique Master Citizen Number" + }, + { + "name": "ZAIdentificationNumber", + "value": "ZAIdentificationNumber", + "description": "ZA Identification Number" + }, + { + "name": "KRResidentRegistrationNumber", + "value": "KRResidentRegistrationNumber", + "description": "KR Resident Registration Number" + }, + { + "name": "ESDNI", + "value": "ESDNI", + "description": "ES DNI" + }, + { + "name": "ESSocialSecurityNumber", + "value": "ESSocialSecurityNumber", + "description": "ES Social Security Number" + }, + { + "name": "ESTaxIdentificationNumber", + "value": "ESTaxIdentificationNumber", + "description": "ES Tax Identification Number" + }, + { + "name": "SQLServerConnectionString", + "value": "SQLServerConnectionString", + "description": "SQL Server Connection String" + }, + { + "name": "SENationalID", + "value": "SENationalID", + "description": "SE National ID" + }, + { + "name": "SENationalIDV2", + "value": "SENationalIDV2", + "description": "SE National ID V2" + }, + { + "name": "SEPassportNumber", + "value": "SEPassportNumber", + "description": "SE Passport Number" + }, + { + "name": "SETaxIdentificationNumber", + "value": "SETaxIdentificationNumber", + "description": "SE Tax Identification Number" + }, + { + "name": "SWIFTCode", + "value": "SWIFTCode", + "description": "SWIFT Code" + }, + { + "name": "CHSocialSecurityNumber", + "value": "CHSocialSecurityNumber", + "description": "CH Social Security Number" + }, + { + "name": "TWNationalID", + "value": "TWNationalID", + "description": "TW National ID" + }, + { + "name": "TWPassportNumber", + "value": "TWPassportNumber", + "description": "TW Passport Number" + }, + { + "name": "TWResidentCertificate", + "value": "TWResidentCertificate", + "description": "TW Resident Certificate" + }, + { + "name": "THPopulationIdentificationCode", + "value": "THPopulationIdentificationCode", + "description": "TH Population Identification Code" + }, + { + "name": "TRNationalIdentificationNumber", + "value": "TRNationalIdentificationNumber", + "description": "TR National Identification Number" + }, + { + "name": "UKDriversLicenseNumber", + "value": "UKDriversLicenseNumber", + "description": "UK Driver's License Number" + }, + { + "name": "UKElectoralRollNumber", + "value": "UKElectoralRollNumber", + "description": "UK Electoral Roll Number" + }, + { + "name": "UKNationalHealthNumber", + "value": "UKNationalHealthNumber", + "description": "UK National Health Number" + }, + { + "name": "UKNationalInsuranceNumber", + "value": "UKNationalInsuranceNumber", + "description": "UK National Insurance Number" + }, + { + "name": "UKUniqueTaxpayerNumber", + "value": "UKUniqueTaxpayerNumber", + "description": "UK Unique Taxpayer Number" + }, + { + "name": "USUKPassportNumber", + "value": "USUKPassportNumber", + "description": "US UK Passport Number" + }, + { + "name": "USBankAccountNumber", + "value": "USBankAccountNumber", + "description": "US Bank Account Number" + }, + { + "name": "USDriversLicenseNumber", + "value": "USDriversLicenseNumber", + "description": "US Driver's License Number" + }, + { + "name": "USIndividualTaxpayerIdentification", + "value": "USIndividualTaxpayerIdentification", + "description": "US Individual Taxpayer Identification" + }, + { + "name": "USSocialSecurityNumber", + "value": "USSocialSecurityNumber", + "description": "US Social Security Number" + }, + { + "name": "UAPassportNumberDomestic", + "value": "UAPassportNumberDomestic", + "description": "UA Passport Number Domestic" + }, + { + "name": "UAPassportNumberInternational", + "value": "UAPassportNumberInternational", + "description": "UA Passport Number International" + }, + { + "name": "Organization", + "value": "Organization", + "description": "Organization" + }, + { + "name": "Email", + "value": "Email", + "description": "Email" + }, + { + "name": "URL", + "value": "URL", + "description": "URL" + }, + { + "name": "Age", + "value": "Age", + "description": "Age" + }, + { + "name": "PhoneNumber", + "value": "PhoneNumber", + "description": "Phone Number" + }, + { + "name": "IPAddress", + "value": "IPAddress", + "description": "IP Address" + }, + { + "name": "Date", + "value": "Date", + "description": "Date" + }, + { + "name": "Person", + "value": "Person", + "description": "Person" + }, + { + "name": "Address", + "value": "Address", + "description": "Address" + }, + { + "name": "DateOfBirth", + "value": "DateOfBirth", + "description": "Date Of Birth" + }, + { + "name": "BankAccountNumber", + "value": "BankAccountNumber", + "description": "Bank Account Number" + }, + { + "name": "PassportNumber", + "value": "PassportNumber", + "description": "Passport Number" + }, + { + "name": "DriversLicenseNumber", + "value": "DriversLicenseNumber", + "description": "Drivers License Number" + }, + { + "name": "Neighborhood", + "value": "Neighborhood", + "description": "Neighborhood" + }, + { + "name": "SortCode", + "value": "SortCode", + "description": "Sort Code. 6-digit number used in the UK to identify a specific bank and branch where a bank account is held" + }, + { + "name": "PIN", + "value": "PIN", + "description": "PIN" + }, + { + "name": "VIN", + "value": "VIN", + "description": "VIN" + }, + { + "name": "VehicleIdentificationNumber", + "value": "VehicleIdentificationNumber", + "description": "VIN" + }, + { + "name": "LicensePlate", + "value": "LicensePlate", + "description": "License Plate" + }, + { + "name": "KRPassportNumber", + "value": "KRPassportNumber", + "description": "KR Passport Number" + }, + { + "name": "KRDriversLicenseNumber", + "value": "KRDriversLicenseNumber", + "description": "KR Driver's License Number" + }, + { + "name": "KRSocialSecurityNumber", + "value": "KRSocialSecurityNumber", + "description": "KR Social Security Number" + }, + { + "name": "GovernmentIssuedId", + "value": "GovernmentIssuedId", + "description": "Government Issued ID" + }, + { + "name": "Password", + "value": "Password", + "description": "Password" + }, + { + "name": "NationalId", + "value": "NationalId", + "description": "National Identification" + }, + { + "name": "ZipCode", + "value": "ZipCode", + "description": "Zip Code" + }, + { + "name": "CVV", + "value": "CVV", + "description": "Card Verification Value" + }, + { + "name": "ExpirationDate", + "value": "ExpirationDate", + "description": "Expiration Date" + }, + { + "name": "CASocialIdentificationNumber", + "value": "CASocialIdentificationNumber", + "description": "CA Social Identification Number" + }, + { + "name": "MedicareBeneficiaryId", + "value": "USMedicareBeneficiaryId", + "description": "Medicare Beneficiary ID" + }, + { + "name": "Location", + "value": "Location", + "description": "Location" + }, + { + "name": "City", + "value": "City", + "description": "City" + }, + { + "name": "State", + "value": "State", + "description": "State" + }, + { + "name": "Airport", + "value": "Airport", + "description": "Airport" + }, + { + "name": "GPE", + "value": "GPE", + "description": "Geopolitical Entity" + } + ] + } + }, + "PiiCategory": { + "type": "string", + "description": "(Optional) describes the PII categories to return", + "enum": [ + "ABARoutingNumber", + "ARNationalIdentityNumber", + "AUBankAccountNumber", + "AUDriversLicenseNumber", + "AUMedicalAccountNumber", + "AUPassportNumber", + "AUTaxFileNumber", + "AUBusinessNumber", + "AUCompanyNumber", + "ATIdentityCard", + "ATTaxIdentificationNumber", + "ATValueAddedTaxNumber", + "AzureDocumentDBAuthKey", + "AzureIAASDatabaseConnectionAndSQLString", + "AzureIoTConnectionString", + "AzurePublishSettingPassword", + "AzureRedisCacheString", + "AzureSAS", + "AzureServiceBusString", + "AzureStorageAccountKey", + "AzureStorageAccountGeneric", + "BENationalNumber", + "BENationalNumberV2", + "BEValueAddedTaxNumber", + "BRCPFNumber", + "BRLegalEntityNumber", + "BRNationalIDRG", + "BGUniformCivilNumber", + "CABankAccountNumber", + "CADriversLicenseNumber", + "CAHealthServiceNumber", + "CAPassportNumber", + "CAPersonalHealthIdentification", + "CASocialInsuranceNumber", + "CLIdentityCardNumber", + "CNResidentIdentityCardNumber", + "CreditCardNumber", + "HRIdentityCardNumber", + "HRNationalIDNumber", + "HRPersonalIdentificationNumber", + "HRPersonalIdentificationOIBNumberV2", + "CYIdentityCard", + "CYTaxIdentificationNumber", + "CZPersonalIdentityNumber", + "CZPersonalIdentityV2", + "DKPersonalIdentificationNumber", + "DKPersonalIdentificationV2", + "DrugEnforcementAgencyNumber", + "EEPersonalIdentificationCode", + "EUDebitCardNumber", + "EUDriversLicenseNumber", + "EUGPSCoordinates", + "EUNationalIdentificationNumber", + "EUPassportNumber", + "EUSocialSecurityNumber", + "EUTaxIdentificationNumber", + "FIEuropeanHealthNumber", + "FINationalID", + "FINationalIDV2", + "FIPassportNumber", + "FRDriversLicenseNumber", + "FRHealthInsuranceNumber", + "FRNationalID", + "FRPassportNumber", + "FRSocialSecurityNumber", + "FRTaxIdentificationNumber", + "FRValueAddedTaxNumber", + "DEDriversLicenseNumber", + "DEPassportNumber", + "DEIdentityCardNumber", + "DETaxIdentificationNumber", + "DEValueAddedNumber", + "GRNationalIDCard", + "GRNationalIDV2", + "GRTaxIdentificationNumber", + "HKIdentityCardNumber", + "HUValueAddedNumber", + "HUPersonalIdentificationNumber", + "HUTaxIdentificationNumber", + "INPermanentAccount", + "INUniqueIdentificationNumber", + "IDIdentityCardNumber", + "InternationalBankingAccountNumber", + "IEPersonalPublicServiceNumber", + "IEPersonalPublicServiceNumberV2", + "ILBankAccountNumber", + "ILNationalID", + "ITDriversLicenseNumber", + "ITFiscalCode", + "ITValueAddedTaxNumber", + "JPBankAccountNumber", + "JPDriversLicenseNumber", + "JPPassportNumber", + "JPResidentRegistrationNumber", + "JPSocialInsuranceNumber", + "JPMyNumberCorporate", + "JPMyNumberPersonal", + "JPResidenceCardNumber", + "LVPersonalCode", + "LTPersonalCode", + "LUNationalIdentificationNumberNatural", + "LUNationalIdentificationNumberNonNatural", + "MYIdentityCardNumber", + "MTIdentityCardNumber", + "MTTaxIDNumber", + "NLCitizensServiceNumber", + "NLCitizensServiceNumberV2", + "NLTaxIdentificationNumber", + "NLValueAddedTaxNumber", + "NZBankAccountNumber", + "NZDriversLicenseNumber", + "NZInlandRevenueNumber", + "NZMinistryOfHealthNumber", + "NZSocialWelfareNumber", + "NOIdentityNumber", + "PHUnifiedMultiPurposeIDNumber", + "PLIdentityCard", + "PLNationalID", + "PLNationalIDV2", + "PLPassportNumber", + "PLTaxIdentificationNumber", + "PLREGONNumber", + "PTCitizenCardNumber", + "PTCitizenCardNumberV2", + "PTTaxIdentificationNumber", + "ROPersonalNumericalCode", + "RUPassportNumberDomestic", + "RUPassportNumberInternational", + "SANationalID", + "SGNationalRegistrationIdentityCardNumber", + "SKPersonalNumber", + "SITaxIdentificationNumber", + "SIUniqueMasterCitizenNumber", + "ZAIdentificationNumber", + "KRResidentRegistrationNumber", + "ESDNI", + "ESSocialSecurityNumber", + "ESTaxIdentificationNumber", + "SQLServerConnectionString", + "SENationalID", + "SENationalIDV2", + "SEPassportNumber", + "SETaxIdentificationNumber", + "SWIFTCode", + "CHSocialSecurityNumber", + "TWNationalID", + "TWPassportNumber", + "TWResidentCertificate", + "THPopulationIdentificationCode", + "TRNationalIdentificationNumber", + "UKDriversLicenseNumber", + "UKElectoralRollNumber", + "UKNationalHealthNumber", + "UKNationalInsuranceNumber", + "UKUniqueTaxpayerNumber", + "USUKPassportNumber", + "USBankAccountNumber", + "USDriversLicenseNumber", + "USIndividualTaxpayerIdentification", + "USSocialSecurityNumber", + "UAPassportNumberDomestic", + "UAPassportNumberInternational", + "Organization", + "Email", + "URL", + "Age", + "PhoneNumber", + "IPAddress", + "Date", + "Person", + "Address", + "DateOfBirth", + "BankAccountNumber", + "PassportNumber", + "DriversLicenseNumber", + "Neighborhood", + "SortCode", + "PIN", + "VIN", + "VehicleIdentificationNumber", + "LicensePlate", + "KRPassportNumber", + "KRDriversLicenseNumber", + "KRSocialSecurityNumber", + "GovernmentIssuedId", + "Password", + "NationalId", + "ZipCode", + "CVV", + "ExpirationDate", + "CASocialIdentificationNumber", + "USMedicareBeneficiaryId", + "Location", + "City", + "State", + "Airport", + "GPE", + "All", + "Default" + ], + "x-ms-enum": { + "name": "PiiCategory", + "modelAsString": true, + "values": [ + { + "name": "ABARoutingNumber", + "value": "ABARoutingNumber", + "description": "ABA Routing number" + }, + { + "name": "ARNationalIdentityNumber", + "value": "ARNationalIdentityNumber", + "description": "AR National Identity Number" + }, + { + "name": "AUBankAccountNumber", + "value": "AUBankAccountNumber", + "description": "AT Bank Account Number" + }, + { + "name": "AUDriversLicenseNumber", + "value": "AUDriversLicenseNumber", + "description": "AU Driver's License Number" + }, + { + "name": "AUMedicalAccountNumber", + "value": "AUMedicalAccountNumber", + "description": "AU Medical Account Number" + }, + { + "name": "AUPassportNumber", + "value": "AUPassportNumber", + "description": "AU Passport Number" + }, + { + "name": "AUTaxFileNumber", + "value": "AUTaxFileNumber", + "description": "AU Tax File Number" + }, + { + "name": "AUBusinessNumber", + "value": "AUBusinessNumber", + "description": "AU Business Number" + }, + { + "name": "AUCompanyNumber", + "value": "AUCompanyNumber", + "description": "AU Company Number" + }, + { + "name": "ATIdentityCard", + "value": "ATIdentityCard", + "description": "AT Identity Card" + }, + { + "name": "ATTaxIdentificationNumber", + "value": "ATTaxIdentificationNumber", + "description": "AT Tax Identification Number" + }, + { + "name": "ATValueAddedTaxNumber", + "value": "ATValueAddedTaxNumber", + "description": "AT Value Added Tax Number" + }, + { + "name": "AzureDocumentDBAuthKey", + "value": "AzureDocumentDBAuthKey", + "description": "Azure Document DB Auth Key" + }, + { + "name": "AzureIAASDatabaseConnectionAndSQLString", + "value": "AzureIAASDatabaseConnectionAndSQLString", + "description": "Azure IAAS Database Connection And SQL String" + }, + { + "name": "AzureIoTConnectionString", + "value": "AzureIoTConnectionString", + "description": "Azure IoT Connection String" + }, + { + "name": "AzurePublishSettingPassword", + "value": "AzurePublishSettingPassword", + "description": "Azure Publish Setting Password" + }, + { + "name": "AzureRedisCacheString", + "value": "AzureRedisCacheString", + "description": "Azure Redis Cache String" + }, + { + "name": "AzureSAS", + "value": "AzureSAS", + "description": "Azure SAS" + }, + { + "name": "AzureServiceBusString", + "value": "AzureServiceBusString", + "description": "Azure Service Bus String" + }, + { + "name": "AzureStorageAccountKey", + "value": "AzureStorageAccountKey", + "description": "Azure Storage Account Key" + }, + { + "name": "AzureStorageAccountGeneric", + "value": "AzureStorageAccountGeneric", + "description": "Azure Storage Account Generic" + }, + { + "name": "BENationalNumber", + "value": "BENationalNumber", + "description": "BE National Number" + }, + { + "name": "BENationalNumberV2", + "value": "BENationalNumberV2", + "description": "BE National Number V2" + }, + { + "name": "BEValueAddedTaxNumber", + "value": "BEValueAddedTaxNumber", + "description": "BE Value Added Tax Number" + }, + { + "name": "BRCPFNumber", + "value": "BRCPFNumber", + "description": "BR CPF Number" + }, + { + "name": "BRLegalEntityNumber", + "value": "BRLegalEntityNumber", + "description": "BR Legal Entity Number" + }, + { + "name": "BRNationalIDRG", + "value": "BRNationalIDRG", + "description": "BR National ID RG" + }, + { + "name": "BGUniformCivilNumber", + "value": "BGUniformCivilNumber", + "description": "BG Uniform Civil Number" + }, + { + "name": "CABankAccountNumber", + "value": "CABankAccountNumber", + "description": "CA Bank Account Number" + }, + { + "name": "CADriversLicenseNumber", + "value": "CADriversLicenseNumber", + "description": "CA Driver's License Number" + }, + { + "name": "CAHealthServiceNumber", + "value": "CAHealthServiceNumber", + "description": "CA Health Service Number" + }, + { + "name": "CAPassportNumber", + "value": "CAPassportNumber", + "description": "CA Passport Number" + }, + { + "name": "CAPersonalHealthIdentification", + "value": "CAPersonalHealthIdentification", + "description": "CA Personal Health Identification" + }, + { + "name": "CASocialInsuranceNumber", + "value": "CASocialInsuranceNumber", + "description": "CA Social Insurance Number" + }, + { + "name": "CLIdentityCardNumber", + "value": "CLIdentityCardNumber", + "description": "CL Identity Card Number" + }, + { + "name": "CNResidentIdentityCardNumber", + "value": "CNResidentIdentityCardNumber", + "description": "CN Resident Identity Card Number" + }, + { + "name": "CreditCardNumber", + "value": "CreditCardNumber", + "description": "Credit Card Number" + }, + { + "name": "HRIdentityCardNumber", + "value": "HRIdentityCardNumber", + "description": "HR Identity Card Number" + }, + { + "name": "HRNationalIDNumber", + "value": "HRNationalIDNumber", + "description": "HR National ID Number" + }, + { + "name": "HRPersonalIdentificationNumber", + "value": "HRPersonalIdentificationNumber", + "description": "HR Personal Identification Number" + }, + { + "name": "HRPersonalIdentificationOIBNumberV2", + "value": "HRPersonalIdentificationOIBNumberV2", + "description": "HR Personal Identification OIB Number V2" + }, + { + "name": "CYIdentityCard", + "value": "CYIdentityCard", + "description": "CY Identity Card" + }, + { + "name": "CYTaxIdentificationNumber", + "value": "CYTaxIdentificationNumber", + "description": "CY Tax Identification Number" + }, + { + "name": "CZPersonalIdentityNumber", + "value": "CZPersonalIdentityNumber", + "description": "CZ Personal Identity Number" + }, + { + "name": "CZPersonalIdentityV2", + "value": "CZPersonalIdentityV2", + "description": "CZ Personal Identity V2" + }, + { + "name": "DKPersonalIdentificationNumber", + "value": "DKPersonalIdentificationNumber", + "description": "DK Personal Identification Number" + }, + { + "name": "DKPersonalIdentificationV2", + "value": "DKPersonalIdentificationV2", + "description": "DK Personal Identification V2" + }, + { + "name": "DrugEnforcementAgencyNumber", + "value": "DrugEnforcementAgencyNumber", + "description": "Drug Enforcement Agency Number" + }, + { + "name": "EEPersonalIdentificationCode", + "value": "EEPersonalIdentificationCode", + "description": "EE Personal Identification Code" + }, + { + "name": "EUDebitCardNumber", + "value": "EUDebitCardNumber", + "description": "EU Debit Card Number" + }, + { + "name": "EUDriversLicenseNumber", + "value": "EUDriversLicenseNumber", + "description": "EU Driver's License Number" + }, + { + "name": "EUGPSCoordinates", + "value": "EUGPSCoordinates", + "description": "EU GPS Coordinates" + }, + { + "name": "EUNationalIdentificationNumber", + "value": "EUNationalIdentificationNumber", + "description": "EU National Identification Number" + }, + { + "name": "EUPassportNumber", + "value": "EUPassportNumber", + "description": "EU Passport Number" + }, + { + "name": "EUSocialSecurityNumber", + "value": "EUSocialSecurityNumber", + "description": "EU Social Security Number" + }, + { + "name": "EUTaxIdentificationNumber", + "value": "EUTaxIdentificationNumber", + "description": "EU Tax Identification Number" + }, + { + "name": "FIEuropeanHealthNumber", + "value": "FIEuropeanHealthNumber", + "description": "FI European Health Number" + }, + { + "name": "FINationalID", + "value": "FINationalID", + "description": "FI National ID" + }, + { + "name": "FINationalIDV2", + "value": "FINationalIDV2", + "description": "FI National ID V2" + }, + { + "name": "FIPassportNumber", + "value": "FIPassportNumber", + "description": "FI Passport Number" + }, + { + "name": "FRDriversLicenseNumber", + "value": "FRDriversLicenseNumber", + "description": "FR Driver's License Number" + }, + { + "name": "FRHealthInsuranceNumber", + "value": "FRHealthInsuranceNumber", + "description": "FR Health Insurance Number" + }, + { + "name": "FRNationalID", + "value": "FRNationalID", + "description": "FR National ID" + }, + { + "name": "FRPassportNumber", + "value": "FRPassportNumber", + "description": "FR Passport Number" + }, + { + "name": "FRSocialSecurityNumber", + "value": "FRSocialSecurityNumber", + "description": "FR Social Security Number" + }, + { + "name": "FRTaxIdentificationNumber", + "value": "FRTaxIdentificationNumber", + "description": "FR Tax Identification Number" + }, + { + "name": "FRValueAddedTaxNumber", + "value": "FRValueAddedTaxNumber", + "description": "FR Value Added Tax Number" + }, + { + "name": "DEDriversLicenseNumber", + "value": "DEDriversLicenseNumber", + "description": "DE Driver's License Number" + }, + { + "name": "DEPassportNumber", + "value": "DEPassportNumber", + "description": "DE Passport Number" + }, + { + "name": "DEIdentityCardNumber", + "value": "DEIdentityCardNumber", + "description": "DE Identity Card Number" + }, + { + "name": "DETaxIdentificationNumber", + "value": "DETaxIdentificationNumber", + "description": "DE Tax Identification Number" + }, + { + "name": "DEValueAddedNumber", + "value": "DEValueAddedNumber", + "description": "DE Value Added Number" + }, + { + "name": "GRNationalIDCard", + "value": "GRNationalIDCard", + "description": "GR National ID Card" + }, + { + "name": "GRNationalIDV2", + "value": "GRNationalIDV2", + "description": "GR National ID V2" + }, + { + "name": "GRTaxIdentificationNumber", + "value": "GRTaxIdentificationNumber", + "description": "GR Tax Identification Number" + }, + { + "name": "HKIdentityCardNumber", + "value": "HKIdentityCardNumber", + "description": "HK Identity Card Number" + }, + { + "name": "HUValueAddedNumber", + "value": "HUValueAddedNumber", + "description": "HU Value Added Number" + }, + { + "name": "HUPersonalIdentificationNumber", + "value": "HUPersonalIdentificationNumber", + "description": "HU Personal Identification Number" + }, + { + "name": "HUTaxIdentificationNumber", + "value": "HUTaxIdentificationNumber", + "description": "HU Tax Identification Number" + }, + { + "name": "INPermanentAccount", + "value": "INPermanentAccount", + "description": "IN Permanent Account" + }, + { + "name": "INUniqueIdentificationNumber", + "value": "INUniqueIdentificationNumber", + "description": "IN Unique Identification Number" + }, + { + "name": "IDIdentityCardNumber", + "value": "IDIdentityCardNumber", + "description": "ID Identity Card Number" + }, + { + "name": "InternationalBankingAccountNumber", + "value": "InternationalBankingAccountNumber", + "description": "International Banking Account Number" + }, + { + "name": "IEPersonalPublicServiceNumber", + "value": "IEPersonalPublicServiceNumber", + "description": "IE Personal Public Service Number" + }, + { + "name": "IEPersonalPublicServiceNumberV2", + "value": "IEPersonalPublicServiceNumberV2", + "description": "IE Personal Public Service Number V2" + }, + { + "name": "ILBankAccountNumber", + "value": "ILBankAccountNumber", + "description": "IL Bank Account Number" + }, + { + "name": "ILNationalID", + "value": "ILNationalID", + "description": "IL National ID" + }, + { + "name": "ITDriversLicenseNumber", + "value": "ITDriversLicenseNumber", + "description": "IT Driver's License Number" + }, + { + "name": "ITFiscalCode", + "value": "ITFiscalCode", + "description": "IT Fiscal Code" + }, + { + "name": "ITValueAddedTaxNumber", + "value": "ITValueAddedTaxNumber", + "description": "IT Value Added Tax Number" + }, + { + "name": "JPBankAccountNumber", + "value": "JPBankAccountNumber", + "description": "JP Bank Account Number" + }, + { + "name": "JPDriversLicenseNumber", + "value": "JPDriversLicenseNumber", + "description": "JP Driver's License Number" + }, + { + "name": "JPPassportNumber", + "value": "JPPassportNumber", + "description": "JP Passport Number" + }, + { + "name": "JPResidentRegistrationNumber", + "value": "JPResidentRegistrationNumber", + "description": "JP Resident Registration Number" + }, + { + "name": "JPSocialInsuranceNumber", + "value": "JPSocialInsuranceNumber", + "description": "JP Social Insurance Number" + }, + { + "name": "JPMyNumberCorporate", + "value": "JPMyNumberCorporate", + "description": "JP My Number Corporate" + }, + { + "name": "JPMyNumberPersonal", + "value": "JPMyNumberPersonal", + "description": "JP My Number Personal" + }, + { + "name": "JPResidenceCardNumber", + "value": "JPResidenceCardNumber", + "description": "JP Residence Card Number" + }, + { + "name": "LVPersonalCode", + "value": "LVPersonalCode", + "description": "LV Personal Code" + }, + { + "name": "LTPersonalCode", + "value": "LTPersonalCode", + "description": "LT Personal Code" + }, + { + "name": "LUNationalIdentificationNumberNatural", + "value": "LUNationalIdentificationNumberNatural", + "description": "LU National Identification Number Natural" + }, + { + "name": "LUNationalIdentificationNumberNonNatural", + "value": "LUNationalIdentificationNumberNonNatural", + "description": "LU National Identification Number Non Natural" + }, + { + "name": "MYIdentityCardNumber", + "value": "MYIdentityCardNumber", + "description": "MY Identity Card Number" + }, + { + "name": "MTIdentityCardNumber", + "value": "MTIdentityCardNumber", + "description": "MT Identity Card Number" + }, + { + "name": "MTTaxIDNumber", + "value": "MTTaxIDNumber", + "description": "MT Tax ID Number" + }, + { + "name": "NLCitizensServiceNumber", + "value": "NLCitizensServiceNumber", + "description": "NL Citizens Service Number" + }, + { + "name": "NLCitizensServiceNumberV2", + "value": "NLCitizensServiceNumberV2", + "description": "NL Citizens Service Number V2" + }, + { + "name": "NLTaxIdentificationNumber", + "value": "NLTaxIdentificationNumber", + "description": "NL Tax Identification Number" + }, + { + "name": "NLValueAddedTaxNumber", + "value": "NLValueAddedTaxNumber", + "description": "NL Value Added Tax Number" + }, + { + "name": "NZBankAccountNumber", + "value": "NZBankAccountNumber", + "description": "NZ Bank Account Number" + }, + { + "name": "NZDriversLicenseNumber", + "value": "NZDriversLicenseNumber", + "description": "NZ Driver's License Number" + }, + { + "name": "NZInlandRevenueNumber", + "value": "NZInlandRevenueNumber", + "description": "NZ Inland Revenue Number" + }, + { + "name": "NZMinistryOfHealthNumber", + "value": "NZMinistryOfHealthNumber", + "description": "NZ Ministry Of Health Number" + }, + { + "name": "NZSocialWelfareNumber", + "value": "NZSocialWelfareNumber", + "description": "NZ Social Welfare Number" + }, + { + "name": "NOIdentityNumber", + "value": "NOIdentityNumber", + "description": "NO Identity Number" + }, + { + "name": "PHUnifiedMultiPurposeIDNumber", + "value": "PHUnifiedMultiPurposeIDNumber", + "description": "PH Unified Multi Purpose ID Number" + }, + { + "name": "PLIdentityCard", + "value": "PLIdentityCard", + "description": "PL Identity Card" + }, + { + "name": "PLNationalID", + "value": "PLNationalID", + "description": "PL National ID" + }, + { + "name": "PLNationalIDV2", + "value": "PLNationalIDV2", + "description": "PL National ID V2" + }, + { + "name": "PLPassportNumber", + "value": "PLPassportNumber", + "description": "PL Passport Number" + }, + { + "name": "PLTaxIdentificationNumber", + "value": "PLTaxIdentificationNumber", + "description": "PL Tax Identification Number" + }, + { + "name": "PLREGONNumber", + "value": "PLREGONNumber", + "description": "PL REGON Number" + }, + { + "name": "PTCitizenCardNumber", + "value": "PTCitizenCardNumber", + "description": "PT Citizen Card Number" + }, + { + "name": "PTCitizenCardNumberV2", + "value": "PTCitizenCardNumberV2", + "description": "PT Citizen Card Number V2" + }, + { + "name": "PTTaxIdentificationNumber", + "value": "PTTaxIdentificationNumber", + "description": "PT Tax Identification Number" + }, + { + "name": "ROPersonalNumericalCode", + "value": "ROPersonalNumericalCode", + "description": "RO Personal Numerical Code" + }, + { + "name": "RUPassportNumberDomestic", + "value": "RUPassportNumberDomestic", + "description": "RU Passport Number Domestic" + }, + { + "name": "RUPassportNumberInternational", + "value": "RUPassportNumberInternational", + "description": "RU Passport Number International" + }, + { + "name": "SANationalID", + "value": "SANationalID", + "description": "SA National ID" + }, + { + "name": "SGNationalRegistrationIdentityCardNumber", + "value": "SGNationalRegistrationIdentityCardNumber", + "description": "SG National Registration Identity Card Number" + }, + { + "name": "SKPersonalNumber", + "value": "SKPersonalNumber", + "description": "SK Personal Number" + }, + { + "name": "SITaxIdentificationNumber", + "value": "SITaxIdentificationNumber", + "description": "SI Tax Identification Number" + }, + { + "name": "SIUniqueMasterCitizenNumber", + "value": "SIUniqueMasterCitizenNumber", + "description": "SI Unique Master Citizen Number" + }, + { + "name": "ZAIdentificationNumber", + "value": "ZAIdentificationNumber", + "description": "ZA Identification Number" + }, + { + "name": "KRResidentRegistrationNumber", + "value": "KRResidentRegistrationNumber", + "description": "KR Resident Registration Number" + }, + { + "name": "ESDNI", + "value": "ESDNI", + "description": "ES DNI" + }, + { + "name": "ESSocialSecurityNumber", + "value": "ESSocialSecurityNumber", + "description": "ES Social Security Number" + }, + { + "name": "ESTaxIdentificationNumber", + "value": "ESTaxIdentificationNumber", + "description": "ES Tax Identification Number" + }, + { + "name": "SQLServerConnectionString", + "value": "SQLServerConnectionString", + "description": "SQL Server Connection String" + }, + { + "name": "SENationalID", + "value": "SENationalID", + "description": "SE National ID" + }, + { + "name": "SENationalIDV2", + "value": "SENationalIDV2", + "description": "SE National ID V2" + }, + { + "name": "SEPassportNumber", + "value": "SEPassportNumber", + "description": "SE Passport Number" + }, + { + "name": "SETaxIdentificationNumber", + "value": "SETaxIdentificationNumber", + "description": "SE Tax Identification Number" + }, + { + "name": "SWIFTCode", + "value": "SWIFTCode", + "description": "SWIFT Code" + }, + { + "name": "CHSocialSecurityNumber", + "value": "CHSocialSecurityNumber", + "description": "CH Social Security Number" + }, + { + "name": "TWNationalID", + "value": "TWNationalID", + "description": "TW National ID" + }, + { + "name": "TWPassportNumber", + "value": "TWPassportNumber", + "description": "TW Passport Number" + }, + { + "name": "TWResidentCertificate", + "value": "TWResidentCertificate", + "description": "TW Resident Certificate" + }, + { + "name": "THPopulationIdentificationCode", + "value": "THPopulationIdentificationCode", + "description": "TH Population Identification Code" + }, + { + "name": "TRNationalIdentificationNumber", + "value": "TRNationalIdentificationNumber", + "description": "TR National Identification Number" + }, + { + "name": "UKDriversLicenseNumber", + "value": "UKDriversLicenseNumber", + "description": "UK Driver's License Number" + }, + { + "name": "UKElectoralRollNumber", + "value": "UKElectoralRollNumber", + "description": "UK Electoral Roll Number" + }, + { + "name": "UKNationalHealthNumber", + "value": "UKNationalHealthNumber", + "description": "UK National Health Number" + }, + { + "name": "UKNationalInsuranceNumber", + "value": "UKNationalInsuranceNumber", + "description": "UK National Insurance Number" + }, + { + "name": "UKUniqueTaxpayerNumber", + "value": "UKUniqueTaxpayerNumber", + "description": "UK Unique Taxpayer Number" + }, + { + "name": "USUKPassportNumber", + "value": "USUKPassportNumber", + "description": "US UK Passport Number" + }, + { + "name": "USBankAccountNumber", + "value": "USBankAccountNumber", + "description": "US Bank Account Number" + }, + { + "name": "USDriversLicenseNumber", + "value": "USDriversLicenseNumber", + "description": "US Driver's License Number" + }, + { + "name": "USIndividualTaxpayerIdentification", + "value": "USIndividualTaxpayerIdentification", + "description": "US Individual Taxpayer Identification" + }, + { + "name": "USSocialSecurityNumber", + "value": "USSocialSecurityNumber", + "description": "US Social Security Number" + }, + { + "name": "UAPassportNumberDomestic", + "value": "UAPassportNumberDomestic", + "description": "UA Passport Number Domestic" + }, + { + "name": "UAPassportNumberInternational", + "value": "UAPassportNumberInternational", + "description": "UA Passport Number International" + }, + { + "name": "Organization", + "value": "Organization", + "description": "Organization" + }, + { + "name": "Email", + "value": "Email", + "description": "Email" + }, + { + "name": "URL", + "value": "URL", + "description": "URL" + }, + { + "name": "Age", + "value": "Age", + "description": "Age" + }, + { + "name": "PhoneNumber", + "value": "PhoneNumber", + "description": "Phone Number" + }, + { + "name": "IPAddress", + "value": "IPAddress", + "description": "IP Address" + }, + { + "name": "Date", + "value": "Date", + "description": "Date" + }, + { + "name": "Person", + "value": "Person", + "description": "Person" + }, + { + "name": "Address", + "value": "Address", + "description": "Address" + }, + { + "name": "DateOfBirth", + "value": "DateOfBirth", + "description": "Date Of Birth" + }, + { + "name": "BankAccountNumber", + "value": "BankAccountNumber", + "description": "Bank Account Number" + }, + { + "name": "PassportNumber", + "value": "PassportNumber", + "description": "Passport Number" + }, + { + "name": "DriversLicenseNumber", + "value": "DriversLicenseNumber", + "description": "Drivers License Number" + }, + { + "name": "Neighborhood", + "value": "Neighborhood", + "description": "Neighborhood" + }, + { + "name": "SortCode", + "value": "SortCode", + "description": "Sort Code. 6-digit number used in the UK to identify a specific bank and branch where a bank account is held" + }, + { + "name": "PIN", + "value": "PIN", + "description": "PIN" + }, + { + "name": "VIN", + "value": "VIN", + "description": "VIN" + }, + { + "name": "VehicleIdentificationNumber", + "value": "VehicleIdentificationNumber", + "description": "VIN" + }, + { + "name": "LicensePlate", + "value": "LicensePlate", + "description": "License Plate" + }, + { + "name": "KRPassportNumber", + "value": "KRPassportNumber", + "description": "KR Passport Number" + }, + { + "name": "KRDriversLicenseNumber", + "value": "KRDriversLicenseNumber", + "description": "KR Driver's License Number" + }, + { + "name": "KRSocialSecurityNumber", + "value": "KRSocialSecurityNumber", + "description": "KR Social Security Number" + }, + { + "name": "GovernmentIssuedId", + "value": "GovernmentIssuedId", + "description": "Government Issued ID" + }, + { + "name": "Password", + "value": "Password", + "description": "Password" + }, + { + "name": "NationalId", + "value": "NationalId", + "description": "National Identification" + }, + { + "name": "ZipCode", + "value": "ZipCode", + "description": "Zip Code" + }, + { + "name": "CVV", + "value": "CVV", + "description": "Card Verification Value" + }, + { + "name": "ExpirationDate", + "value": "ExpirationDate", + "description": "Expiration Date" + }, + { + "name": "CASocialIdentificationNumber", + "value": "CASocialIdentificationNumber", + "description": "CA Social Identification Number" + }, + { + "name": "MedicareBeneficiaryId", + "value": "USMedicareBeneficiaryId", + "description": "Medicare Beneficiary ID" + }, + { + "name": "Location", + "value": "Location", + "description": "Location" + }, + { + "name": "City", + "value": "City", + "description": "City" + }, + { + "name": "State", + "value": "State", + "description": "State" + }, + { + "name": "Airport", + "value": "Airport", + "description": "Airport" + }, + { + "name": "GPE", + "value": "GPE", + "description": "Geopolitical Entity" + }, + { + "name": "All", + "value": "All", + "description": "All PII categories." + }, + { + "name": "Default", + "value": "Default", + "description": "Default PII categories for the language." + } + ] + } + }, + "PiiEntityRecognitionLROResult": { + "type": "object", + "description": "Contains the PII LRO results.", + "properties": { + "results": { + "$ref": "#/definitions/PiiResult", + "description": "The list of pii results" + } + }, + "required": [ + "results" + ], + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROResult" + } + ], + "x-ms-discriminator-value": "PiiEntityRecognitionLROResults" + }, + "PiiEntityWithTags": { + "type": "object", + "description": "Entity object with tags.", + "properties": { + "text": { + "type": "string", + "description": "Entity text as appears in the request." + }, + "category": { + "type": "string", + "description": "Entity type." + }, + "subcategory": { + "type": "string", + "description": "(Optional) Entity sub type." + }, + "offset": { + "type": "integer", + "format": "int32", + "description": "Start position for the entity text. Use of different 'stringIndexType' values can affect the offset returned." + }, + "length": { + "type": "integer", + "format": "int32", + "description": "Length for the entity text. Use of different 'stringIndexType' values can affect the length returned." + }, + "confidenceScore": { + "type": "number", + "format": "double", + "description": "Confidence score between 0 and 1 of the extracted entity." + }, + "type": { + "type": "string", + "description": "An entity type is the lowest (or finest) granularity at which the entity has been detected. The type maps to the specific metadata attributes associated with the entity detected." + }, + "tags": { + "type": "array", + "description": "List of entity tags. Tags are to express some similarities/affinity between entities.", + "items": { + "$ref": "#/definitions/EntityTag" + } + }, + "mask": { + "type": "string", + "description": "Optional field which will be returned only when using the redaction policy kind “MaskWithEntityType”. This field will contain the exact mask text used to mask the PII entity in the original text" + }, + "maskOffset": { + "type": "integer", + "format": "int32", + "description": "Start position of masked text in the redacted text when using the redaction policy kind “MaskWithEntityType”." + }, + "maskLength": { + "type": "integer", + "format": "int32", + "description": "The length of the masked text. Will be present when using the redaction policy kind “MaskWithEntityType”." + } + }, + "required": [ + "text", + "category", + "offset", + "length", + "confidenceScore" + ] + }, + "PiiLROTask": { + "type": "object", + "description": "Contains the analyze text PIIEntityRecognition LRO task.", + "properties": { + "parameters": { + "$ref": "#/definitions/PiiTaskParameters", + "description": "Pii task parameters." + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROTask" + } + ], + "x-ms-discriminator-value": "PiiEntityRecognition" + }, + "PiiResult": { + "type": "object", + "description": "Contains the PiiResult.", + "properties": { + "errors": { + "type": "array", + "description": "Errors by document id.", + "items": { + "$ref": "#/definitions/DocumentError" + } + }, + "statistics": { + "$ref": "#/definitions/RequestStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the request payload." + }, + "modelVersion": { + "type": "string", + "description": "This field indicates which model is used for scoring." + }, + "documents": { + "type": "array", + "description": "Response by document", + "items": { + "$ref": "#/definitions/PiiResultWithDetectedLanguage" + } + } + }, + "required": [ + "errors", + "modelVersion", + "documents" + ] + }, + "PiiResultWithDetectedLanguage": { + "type": "object", + "description": "Contains the PII results with detected language.", + "properties": { + "id": { + "type": "string", + "description": "Unique, non-empty document identifier." + }, + "warnings": { + "type": "array", + "description": "Warnings encountered while processing document.", + "items": { + "$ref": "#/definitions/DocumentWarning" + } + }, + "statistics": { + "$ref": "#/definitions/DocumentStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the document payload." + }, + "redactedText": { + "type": "string", + "description": "Returns redacted text." + }, + "entities": { + "type": "array", + "description": "Recognized entities in the document.", + "items": { + "$ref": "#/definitions/PiiEntityWithTags" + } + }, + "detectedLanguage": { + "$ref": "#/definitions/DetectedLanguage", + "description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document." + } + }, + "required": [ + "id", + "warnings", + "redactedText", + "entities" + ] + }, + "PiiTaskParameters": { + "type": "object", + "description": "Supported parameters for a PII Entities Recognition task.", + "properties": { + "loggingOptOut": { + "type": "boolean", + "description": "logging opt out", + "default": true + }, + "modelVersion": { + "type": "string", + "description": "model version", + "default": "latest" + }, + "domain": { + "type": "string", + "description": "Domain for PII task", + "default": "none", + "enum": [ + "phi", + "none" + ], + "x-ms-enum": { + "name": "PiiDomain", + "modelAsString": true, + "values": [ + { + "name": "phi", + "value": "phi", + "description": "Indicates that entities in the Personal Health Information domain should be redacted." + }, + { + "name": "none", + "value": "none", + "description": "Indicates that no domain is specified." + } + ] + } + }, + "piiCategories": { + "type": "array", + "description": "Enumeration of PII categories to be returned in the response.", + "items": { + "$ref": "#/definitions/PiiCategory" + } + }, + "stringIndexType": { + "type": "string", + "description": "StringIndexType to be used for analysis.", + "default": "TextElements_v8", + "enum": [ + "TextElements_v8", + "UnicodeCodePoint", + "Utf16CodeUnit" + ], + "x-ms-enum": { + "name": "StringIndexType", + "modelAsString": true, + "values": [ + { + "name": "TextElements_v8", + "value": "TextElements_v8", + "description": "Returned offset and length values will correspond to TextElements (Graphemes and Grapheme clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is written in .Net Framework or .Net Core and you will be using StringInfo." + }, + { + "name": "UnicodeCodePoint", + "value": "UnicodeCodePoint", + "description": "Returned offset and length values will correspond to Unicode code points. Use this option if your application is written in a language that support Unicode, for example Python." + }, + { + "name": "Utf16CodeUnit", + "value": "Utf16CodeUnit", + "description": "Returned offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript." + } + ] + } + }, + "excludePiiCategories": { + "type": "array", + "description": "Enumeration of PII categories to be excluded in the response.", + "items": { + "$ref": "#/definitions/PiiCategoriesExclude" + } + }, + "redactionPolicy": { + "$ref": "#/definitions/BaseRedactionPolicy", + "description": "RedactionPolicy to be used on the input." + }, + "valueExclusionPolicy": { + "$ref": "#/definitions/ValueExclusionPolicy", + "description": "Policy for specific words and terms that should be excluded from detection by the PII detection service" + }, + "entitySynonyms": { + "type": "array", + "description": "(Optional) request parameter that allows the user to provide synonyms for context words that to enhance pii entity detection.", + "items": { + "$ref": "#/definitions/EntitySynonyms" + } + }, + "redactionPolicies": { + "type": "array", + "description": "List of RedactionPolicies to be used on the input.", + "items": { + "$ref": "#/definitions/BaseRedactionPolicy" + } + }, + "confidenceScoreThreshold": { + "$ref": "#/definitions/ConfidenceScoreThreshold", + "description": "Confidence score threshold configuration for PII entity recognition" + }, + "disableEntityValidation": { + "type": "boolean", + "description": "Disable entity validation for PII entity recognition", + "default": false + } + } + }, + "PiiTaskResult": { + "type": "object", + "description": "Contains the analyze text PIIEntityRecognition LRO task.", + "properties": { + "results": { + "$ref": "#/definitions/PiiResult", + "description": "The list of pii results" + } + }, + "required": [ + "results" + ], + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextTaskResult" + } + ], + "x-ms-discriminator-value": "PiiEntityRecognitionResults" + }, + "RangeInclusivity": { + "type": "string", + "description": "The range inclusiveness of this property property.", + "enum": [ + "NoneInclusive", + "LeftInclusive", + "RightInclusive", + "LeftRightInclusive" + ], + "x-ms-enum": { + "name": "RangeInclusivity", + "modelAsString": true, + "values": [ + { + "name": "NoneInclusive", + "value": "NoneInclusive", + "description": "No inclusivity" + }, + { + "name": "LeftInclusive", + "value": "LeftInclusive", + "description": "Left side inclusive" + }, + { + "name": "RightInclusive", + "value": "RightInclusive", + "description": "Right side inclusive" + }, + { + "name": "LeftRightInclusive", + "value": "LeftRightInclusive", + "description": "Both sides inclusive" + } + ] + } + }, + "RangeKind": { + "type": "string", + "description": "The kind of the number range entity.", + "enum": [ + "Number", + "Speed", + "Weight", + "Length", + "Volume", + "Area", + "Age", + "Information", + "Temperature", + "Currency" + ], + "x-ms-enum": { + "name": "RangeKind", + "modelAsString": true, + "values": [ + { + "name": "Number", + "value": "Number", + "description": "Number range" + }, + { + "name": "Speed", + "value": "Speed", + "description": "Speed range" + }, + { + "name": "Weight", + "value": "Weight", + "description": "Weight range" + }, + { + "name": "Length", + "value": "Length", + "description": "Length range" + }, + { + "name": "Volume", + "value": "Volume", + "description": "Volume range" + }, + { + "name": "Area", + "value": "Area", + "description": "Area range" + }, + { + "name": "Age", + "value": "Age", + "description": "Age range" + }, + { + "name": "Information", + "value": "Information", + "description": "Information range" + }, + { + "name": "Temperature", + "value": "Temperature", + "description": "Temperature range" + }, + { + "name": "Currency", + "value": "Currency", + "description": "Currency range" + } + ] + } + }, + "RelativeTo": { + "type": "string", + "description": "The reference point that the ordinal number denotes.", + "enum": [ + "Current", + "End", + "Start" + ], + "x-ms-enum": { + "name": "RelativeTo", + "modelAsString": true, + "values": [ + { + "name": "Current", + "value": "Current", + "description": "Current state or position" + }, + { + "name": "End", + "value": "End", + "description": "End state or position" + }, + { + "name": "Start", + "value": "Start", + "description": "Start state or position" + } + ] + } + }, + "RequestStatistics": { + "type": "object", + "description": "if showStats=true was specified in the request this field will contain information about the request payload.", + "properties": { + "documentsCount": { + "type": "integer", + "format": "int32", + "description": "Number of documents submitted in the request." + }, + "validDocumentsCount": { + "type": "integer", + "format": "int32", + "description": "Number of valid documents. This excludes empty, over-size limit or non-supported languages documents." + }, + "erroneousDocumentsCount": { + "type": "integer", + "format": "int32", + "description": "Number of invalid documents. This includes empty, over-size limit or non-supported languages documents." + }, + "transactionsCount": { + "type": "integer", + "format": "int64", + "description": "Number of transactions for the request." + } + }, + "required": [ + "documentsCount", + "validDocumentsCount", + "erroneousDocumentsCount", + "transactionsCount" + ] + }, + "ScriptCode": { + "type": "string", + "description": "Identifies the script of the input document. Maps to the ISO 15924 standard script code.", + "enum": [ + "Arab", + "Armn", + "Beng", + "Cans", + "Cyrl", + "Deva", + "Ethi", + "Geor", + "Grek", + "Gujr", + "Guru", + "Hang", + "Hani", + "Hans", + "Hant", + "Hebr", + "Jpan", + "Khmr", + "Knda", + "Laoo", + "Latn", + "Mlym", + "Mong", + "Mtei", + "Mymr", + "Olck", + "Orya", + "Sinh", + "Shrd", + "Taml", + "Telu", + "Thaa", + "Thai", + "Tibt" + ], + "x-ms-enum": { + "name": "ScriptCode", + "modelAsString": true, + "values": [ + { + "name": "Arab", + "value": "Arab", + "description": "Script code for the Arabic script." + }, + { + "name": "Armn", + "value": "Armn", + "description": "Script code for the Armenian script." + }, + { + "name": "Beng", + "value": "Beng", + "description": "Script code for the Bangla script." + }, + { + "name": "Cans", + "value": "Cans", + "description": "Script code for the UnifiedCanadianAboriginalSyllabics script." + }, + { + "name": "Cyrl", + "value": "Cyrl", + "description": "Script code for the Cyrillic script." + }, + { + "name": "Deva", + "value": "Deva", + "description": "Script code for the Devanagari script." + }, + { + "name": "Ethi", + "value": "Ethi", + "description": "Script code for the Ethiopic script." + }, + { + "name": "Geor", + "value": "Geor", + "description": "Script code for the Georgian script." + }, + { + "name": "Grek", + "value": "Grek", + "description": "Script code for the Greek script." + }, + { + "name": "Gujr", + "value": "Gujr", + "description": "Script code for the Gujarati script." + }, + { + "name": "Guru", + "value": "Guru", + "description": "Script code for the Gurmukhi script." + }, + { + "name": "Hang", + "value": "Hang", + "description": "Script code for the Hangul script." + }, + { + "name": "Hani", + "value": "Hani", + "description": "Script code for the HanLiteral script." + }, + { + "name": "Hans", + "value": "Hans", + "description": "Script code for the HanSimplified script." + }, + { + "name": "Hant", + "value": "Hant", + "description": "Script code for the HanTraditional script." + }, + { + "name": "Hebr", + "value": "Hebr", + "description": "Script code for the Hebrew script." + }, + { + "name": "Jpan", + "value": "Jpan", + "description": "Script code for the Japanese script." + }, + { + "name": "Khmr", + "value": "Khmr", + "description": "Script code for the Khmer script." + }, + { + "name": "Knda", + "value": "Knda", + "description": "Script code for the Kannada script." + }, + { + "name": "Laoo", + "value": "Laoo", + "description": "Script code for the Lao script." + }, + { + "name": "Latn", + "value": "Latn", + "description": "Script code for the Latin script." + }, + { + "name": "Mlym", + "value": "Mlym", + "description": "Script code for the Malayalam script." + }, + { + "name": "Mong", + "value": "Mong", + "description": "Script code for the Mongolian script." + }, + { + "name": "Mtei", + "value": "Mtei", + "description": "Script code for the Meitei script." + }, + { + "name": "Mymr", + "value": "Mymr", + "description": "Script code for the Myanmar script." + }, + { + "name": "Olck", + "value": "Olck", + "description": "Script code for the Santali script." + }, + { + "name": "Orya", + "value": "Orya", + "description": "Script code for the Odia script." + }, + { + "name": "Sinh", + "value": "Sinh", + "description": "Script code for the Sinhala script." + }, + { + "name": "Shrd", + "value": "Shrd", + "description": "Script code for the Sharada script." + }, + { + "name": "Taml", + "value": "Taml", + "description": "Script code for the Tamil script." + }, + { + "name": "Telu", + "value": "Telu", + "description": "Script code for the Telugu script." + }, + { + "name": "Thaa", + "value": "Thaa", + "description": "Script code for the Thaana script." + }, + { + "name": "Thai", + "value": "Thai", + "description": "Script code for the Thai script." + }, + { + "name": "Tibt", + "value": "Tibt", + "description": "Script code for the Tibetan script." + } + ] + } + }, + "ScriptKind": { + "type": "string", + "description": "Identifies the script of the input document. Maps to the ISO 15924 standard formal name.", + "enum": [ + "Arabic", + "Armenian", + "Bangla", + "UnifiedCanadianAboriginalSyllabics", + "Cyrillic", + "Devanagari", + "Ethiopic", + "Georgian", + "Greek", + "Gujarati", + "Gurmukhi", + "Hangul", + "HanLiteral", + "HanSimplified", + "HanTraditional", + "Hebrew", + "Japanese", + "Khmer", + "Kannada", + "Lao", + "Latin", + "Malayalam", + "Meitei", + "Mongolian", + "Myanmar", + "Odia", + "Santali", + "Sharada", + "Sinhala", + "Tamil", + "Telugu", + "Thaana", + "Thai", + "Tibetan" + ], + "x-ms-enum": { + "name": "ScriptKind", + "modelAsString": true, + "values": [ + { + "name": "Arabic", + "value": "Arabic", + "description": "Script name for the Arabic script." + }, + { + "name": "Armenian", + "value": "Armenian", + "description": "Script name for the Armenian script." + }, + { + "name": "Bangla", + "value": "Bangla", + "description": "Script name for the Bangla script." + }, + { + "name": "UnifiedCanadianAboriginalSyllabics", + "value": "UnifiedCanadianAboriginalSyllabics", + "description": "Script name for the UnifiedCanadianAboriginalSyllabics script." + }, + { + "name": "Cyrillic", + "value": "Cyrillic", + "description": "Script name for the Cyrillic script." + }, + { + "name": "Devanagari", + "value": "Devanagari", + "description": "Script name for the Devanagari script." + }, + { + "name": "Ethiopic", + "value": "Ethiopic", + "description": "Script name for the Ethiopic script." + }, + { + "name": "Georgian", + "value": "Georgian", + "description": "Script name for the Georgian script." + }, + { + "name": "Greek", + "value": "Greek", + "description": "Script name for the Greek script." + }, + { + "name": "Gujarati", + "value": "Gujarati", + "description": "Script name for the Gujarati script." + }, + { + "name": "Gurmukhi", + "value": "Gurmukhi", + "description": "Script name for the Gurmukhi script." + }, + { + "name": "Hangul", + "value": "Hangul", + "description": "Script name for the Hangul script." + }, + { + "name": "HanLiteral", + "value": "HanLiteral", + "description": "Script name for the HanLiteral script." + }, + { + "name": "HanSimplified", + "value": "HanSimplified", + "description": "Script name for the HanSimplified script." + }, + { + "name": "HanTraditional", + "value": "HanTraditional", + "description": "Script name for the HanTraditional script." + }, + { + "name": "Hebrew", + "value": "Hebrew", + "description": "Script name for the Hebrew script." + }, + { + "name": "Japanese", + "value": "Japanese", + "description": "Script name for the Japanese script." + }, + { + "name": "Khmer", + "value": "Khmer", + "description": "Script name for the Khmer script." + }, + { + "name": "Kannada", + "value": "Kannada", + "description": "Script name for the Kannada script." + }, + { + "name": "Lao", + "value": "Lao", + "description": "Script name for the Lao script." + }, + { + "name": "Latin", + "value": "Latin", + "description": "Script name for the Latin script." + }, + { + "name": "Malayalam", + "value": "Malayalam", + "description": "Script name for the Malayalam script." + }, + { + "name": "Meitei", + "value": "Meitei", + "description": "Script name for the Meitei script." + }, + { + "name": "Mongolian", + "value": "Mongolian", + "description": "Script name for the Mongolian script." + }, + { + "name": "Myanmar", + "value": "Myanmar", + "description": "Script name for the Myanmar script." + }, + { + "name": "Odia", + "value": "Odia", + "description": "Script name for the Odia script." + }, + { + "name": "Santali", + "value": "Santali", + "description": "Script name for the Santali script." + }, + { + "name": "Sharada", + "value": "Sharada", + "description": "Script name for the Sharada script." + }, + { + "name": "Sinhala", + "value": "Sinhala", + "description": "Script name for the Sinhala script." + }, + { + "name": "Tamil", + "value": "Tamil", + "description": "Script name for the Tamil script." + }, + { + "name": "Telugu", + "value": "Telugu", + "description": "Script name for the Telugu script." + }, + { + "name": "Thaana", + "value": "Thaana", + "description": "Script name for the Thaana script." + }, + { + "name": "Thai", + "value": "Thai", + "description": "Script name for the Thai script." + }, + { + "name": "Tibetan", + "value": "Tibetan", + "description": "Script name for the Tibetan script." + } + ] + } + }, + "SentenceAssessment": { + "type": "object", + "description": "Represents a sentence assessment and the assessments or target objects related to it.", + "properties": { + "sentiment": { + "$ref": "#/definitions/TokenSentimentValue", + "description": "The sentiment of the sentence." + }, + "confidenceScores": { + "$ref": "#/definitions/TargetConfidenceScoreLabel", + "description": "Represents the confidence scores across all sentiment classes: positive and negative." + }, + "offset": { + "type": "integer", + "format": "int32", + "description": "The target offset from the start of the sentence." + }, + "length": { + "type": "integer", + "format": "int32", + "description": "The length of the target." + }, + "text": { + "type": "string", + "description": "The target text detected." + }, + "isNegated": { + "type": "boolean", + "description": "The indicator representing if the assessment is negated." + } + }, + "required": [ + "sentiment", + "confidenceScores", + "offset", + "length", + "text", + "isNegated" + ] + }, + "SentenceSentiment": { + "type": "object", + "description": "A document's sentence sentiment.", + "properties": { + "text": { + "type": "string", + "description": "The sentence text." + }, + "sentiment": { + "$ref": "#/definitions/SentenceSentimentValue", + "description": "The predicted Sentiment for the sentence." + }, + "confidenceScores": { + "$ref": "#/definitions/SentimentConfidenceScores", + "description": "The sentiment confidence score between 0 and 1 for the sentence for all classes." + }, + "offset": { + "type": "integer", + "format": "int32", + "description": "The target offset from the start of the sentence." + }, + "length": { + "type": "integer", + "format": "int32", + "description": "The length of the target." + }, + "targets": { + "type": "array", + "description": "The array of sentence targets for the sentence.", + "items": { + "$ref": "#/definitions/SentenceTarget" + } + }, + "assessments": { + "type": "array", + "description": "The array of assessments for the sentence.", + "items": { + "$ref": "#/definitions/SentenceAssessment" + } + } + }, + "required": [ + "text", + "sentiment", + "confidenceScores", + "offset", + "length" + ] + }, + "SentenceSentimentValue": { + "type": "string", + "description": "The predicted Sentiment for the sentence.", + "enum": [ + "positive", + "neutral", + "negative" + ], + "x-ms-enum": { + "name": "SentenceSentimentValue", + "modelAsString": false, + "values": [ + { + "name": "positive", + "value": "positive", + "description": "Positive sentiment" + }, + { + "name": "neutral", + "value": "neutral", + "description": "Neutral sentiment" + }, + { + "name": "negative", + "value": "negative", + "description": "Negative sentiment" + } + ] + } + }, + "SentenceTarget": { + "type": "object", + "description": "Represents a sentence target and the assessments or target objects related to it.", + "properties": { + "sentiment": { + "$ref": "#/definitions/TokenSentimentValue", + "description": "The sentiment of the sentence." + }, + "confidenceScores": { + "$ref": "#/definitions/TargetConfidenceScoreLabel", + "description": "Represents the confidence scores across all sentiment classes: positive and negative." + }, + "offset": { + "type": "integer", + "format": "int32", + "description": "The target offset from the start of the sentence." + }, + "length": { + "type": "integer", + "format": "int32", + "description": "The length of the target." + }, + "text": { + "type": "string", + "description": "The target text detected." + }, + "relations": { + "type": "array", + "description": "The array of either assessment or target objects which is related to the target.", + "items": { + "$ref": "#/definitions/TargetRelation" + } + } + }, + "required": [ + "sentiment", + "confidenceScores", + "offset", + "length", + "text", + "relations" + ] + }, + "SentimentAnalysisLROTask": { + "type": "object", + "description": "An object representing the task definition for a Sentiment Analysis task.", + "properties": { + "parameters": { + "$ref": "#/definitions/SentimentAnalysisTaskParameters", + "description": "Parameters for the Sentiment Analysis task." + } + }, + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROTask" + } + ], + "x-ms-discriminator-value": "SentimentAnalysis" + }, + "SentimentAnalysisTaskParameters": { + "type": "object", + "description": "Supported parameters for a Sentiment Analysis task.", + "properties": { + "loggingOptOut": { + "type": "boolean", + "description": "logging opt out", + "default": false + }, + "modelVersion": { + "type": "string", + "description": "model version", + "default": "latest" + }, + "opinionMining": { + "type": "boolean", + "description": "Whether to use opinion mining in the request or not.", + "default": false + }, + "stringIndexType": { + "type": "string", + "description": "Specifies the method used to interpret string offsets.", + "default": "TextElements_v8", + "enum": [ + "TextElements_v8", + "UnicodeCodePoint", + "Utf16CodeUnit" + ], + "x-ms-enum": { + "name": "StringIndexType", + "modelAsString": true, + "values": [ + { + "name": "TextElements_v8", + "value": "TextElements_v8", + "description": "Returned offset and length values will correspond to TextElements (Graphemes and Grapheme clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is written in .Net Framework or .Net Core and you will be using StringInfo." + }, + { + "name": "UnicodeCodePoint", + "value": "UnicodeCodePoint", + "description": "Returned offset and length values will correspond to Unicode code points. Use this option if your application is written in a language that support Unicode, for example Python." + }, + { + "name": "Utf16CodeUnit", + "value": "Utf16CodeUnit", + "description": "Returned offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript." + } + ] + } + } + } + }, + "SentimentConfidenceScores": { + "type": "object", + "description": "Represents the confidence scores between 0 and 1 across all sentiment classes: positive, neutral, negative.", + "properties": { + "positive": { + "type": "number", + "format": "double", + "description": "Confidence score for positive sentiment" + }, + "neutral": { + "type": "number", + "format": "double", + "description": "Confidence score for neutral sentiment" + }, + "negative": { + "type": "number", + "format": "double", + "description": "Confidence score for negative sentiment" + } + }, + "required": [ + "positive", + "neutral", + "negative" + ] + }, + "SentimentDocumentResultWithDetectedLanguage": { + "type": "object", + "description": "Sentiment analysis per document.", + "properties": { + "id": { + "type": "string", + "description": "Unique, non-empty document identifier." + }, + "warnings": { + "type": "array", + "description": "Warnings encountered while processing document.", + "items": { + "$ref": "#/definitions/DocumentWarning" + } + }, + "statistics": { + "$ref": "#/definitions/DocumentStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the document payload." + }, + "sentiment": { + "$ref": "#/definitions/DocumentSentimentValue", + "description": "Predicted sentiment for document (Negative, Neutral, Positive, or Mixed)." + }, + "confidenceScores": { + "$ref": "#/definitions/SentimentConfidenceScores", + "description": "The sentiment confidence score between 0 and 1 for the sentence for all classes." + }, + "sentences": { + "type": "array", + "description": "The document's sentences sentiment.", + "items": { + "$ref": "#/definitions/SentenceSentiment" + } + }, + "detectedLanguage": { + "$ref": "#/definitions/DetectedLanguage", + "description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document." + } + }, + "required": [ + "id", + "warnings", + "sentiment", + "confidenceScores", + "sentences" + ] + }, + "SentimentLROResult": { + "type": "object", + "description": "Contains the Sentiment Analysis LRO results.", + "properties": { + "results": { + "$ref": "#/definitions/SentimentResponse", + "description": "The sentiment analysis results" + } + }, + "required": [ + "results" + ], + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextLROResult" + } + ], + "x-ms-discriminator-value": "SentimentAnalysisLROResults" + }, + "SentimentResponse": { + "type": "object", + "description": "Sentiment analysis results for the input documents.", + "properties": { + "errors": { + "type": "array", + "description": "Errors by document id.", + "items": { + "$ref": "#/definitions/DocumentError" + } + }, + "statistics": { + "$ref": "#/definitions/RequestStatistics", + "description": "if showStats=true was specified in the request this field will contain information about the request payload." + }, + "modelVersion": { + "type": "string", + "description": "This field indicates which model is used for scoring." + }, + "documents": { + "type": "array", + "description": "The sentiment analysis results for each document in the input.", + "items": { + "$ref": "#/definitions/SentimentDocumentResultWithDetectedLanguage" + } + } + }, + "required": [ + "errors", + "modelVersion", + "documents" + ] + }, + "SentimentTaskResult": { + "type": "object", + "description": "Contains the analyze text SentimentAnalysis LRO task result.", + "properties": { + "results": { + "$ref": "#/definitions/SentimentResponse", + "description": "The sentiment analysis results" + } + }, + "required": [ + "results" + ], + "allOf": [ + { + "$ref": "#/definitions/AnalyzeTextTaskResult" + } + ], + "x-ms-discriminator-value": "SentimentAnalysisResults" + }, + "SpeedMetadata": { + "type": "object", + "description": "Represents the Speed entity Metadata model.", + "properties": { + "value": { + "type": "number", + "format": "double", + "description": "The numeric value that the extracted text denotes." + }, + "unit": { + "$ref": "#/definitions/SpeedUnit", + "description": "Unit of measure for speed." + } + }, + "required": [ + "value", + "unit" + ], + "allOf": [ + { + "$ref": "#/definitions/BaseMetadata" + } + ], + "x-ms-discriminator-value": "SpeedMetadata" + }, + "SpeedUnit": { + "type": "string", + "description": "The speed Unit of measurement", + "enum": [ + "Unspecified", + "MetersPerSecond", + "KilometersPerHour", + "KilometersPerMinute", + "KilometersPerSecond", + "MilesPerHour", + "Knots", + "FeetPerSecond", + "FeetPerMinute", + "YardsPerMinute", + "YardsPerSecond", + "MetersPerMillisecond", + "CentimetersPerMillisecond", + "KilometersPerMillisecond" + ], + "x-ms-enum": { + "name": "SpeedUnit", + "modelAsString": true, + "values": [ + { + "name": "Unspecified", + "value": "Unspecified", + "description": "Unspecified speed unit." + }, + { + "name": "MetersPerSecond", + "value": "MetersPerSecond", + "description": "Speed unit in meters per second." + }, + { + "name": "KilometersPerHour", + "value": "KilometersPerHour", + "description": "Speed unit in kilometers per hour." + }, + { + "name": "KilometersPerMinute", + "value": "KilometersPerMinute", + "description": "Speed unit in kilometers per minute." + }, + { + "name": "KilometersPerSecond", + "value": "KilometersPerSecond", + "description": "Speed unit in kilometers per second." + }, + { + "name": "MilesPerHour", + "value": "MilesPerHour", + "description": "Speed unit in miles per hour." + }, + { + "name": "Knots", + "value": "Knots", + "description": "Speed unit in knots." + }, + { + "name": "FeetPerSecond", + "value": "FeetPerSecond", + "description": "Speed unit in feet per second." + }, + { + "name": "FeetPerMinute", + "value": "FeetPerMinute", + "description": "Speed unit in feet per minute." + }, + { + "name": "YardsPerMinute", + "value": "YardsPerMinute", + "description": "Speed unit in yards per minute." + }, + { + "name": "YardsPerSecond", + "value": "YardsPerSecond", + "description": "Speed unit in yards per second." + }, + { + "name": "MetersPerMillisecond", + "value": "MetersPerMillisecond", + "description": "Speed unit in meters per millisecond." + }, + { + "name": "CentimetersPerMillisecond", + "value": "CentimetersPerMillisecond", + "description": "Speed unit in centimeters per millisecond." + }, + { + "name": "KilometersPerMillisecond", + "value": "KilometersPerMillisecond", + "description": "Speed unit in Kilometers per millisecond." + } + ] + } + }, + "State": { + "type": "string", + "description": "The status of the task at the mentioned last update time.", + "enum": [ + "notStarted", + "running", + "succeeded", + "partiallyCompleted", + "failed", + "cancelled", + "cancelling" + ], + "x-ms-enum": { + "name": "State", + "modelAsString": true, + "values": [ + { + "name": "notStarted", + "value": "notStarted", + "description": "Not started status" + }, + { + "name": "running", + "value": "running", + "description": "Running status" + }, + { + "name": "succeeded", + "value": "succeeded", + "description": "Succeeded status" + }, + { + "name": "partiallyCompleted", + "value": "partiallyCompleted", + "description": "Partially completed status" + }, + { + "name": "failed", + "value": "failed", + "description": "Failed status" + }, + { + "name": "cancelled", + "value": "cancelled", + "description": "Cancelled status" + }, + { + "name": "cancelling", + "value": "cancelling", + "description": "Cancelling status" + } + ] + } + }, + "SummaryContext": { + "type": "object", + "description": "The context of the summary.", + "properties": { + "offset": { + "type": "integer", + "format": "int32", + "description": "Start position for the context. Use of different 'stringIndexType' values can affect the offset returned." + }, + "length": { + "type": "integer", + "format": "int32", + "description": "The length of the context. Use of different 'stringIndexType' values can affect the length returned." + } + }, + "required": [ + "offset", + "length" + ] + }, + "SummaryLengthBucket": { + "type": "string", + "description": "Enum that defines the length of the output summaries.", + "enum": [ + "short", + "medium", + "long" + ], + "x-ms-enum": { + "name": "SummaryLengthBucket", + "modelAsString": true, + "values": [ + { + "name": "short", + "value": "short", + "description": "Instructs model to generate shorter length summaries." + }, + { + "name": "medium", + "value": "medium", + "description": "Instructs model to generate medium length summaries." + }, + { + "name": "long", + "value": "long", + "description": "Instructs model to generate longer length summaries." + } + ] + } + }, + "SyntheticReplacementPolicyType": { + "type": "object", + "description": "Represents the policy of replacing detected PII with synthetic values.", + "properties": { + "preserveDataFormat": { + "type": "boolean", + "description": "Optional flag to indicate whether to preserve the original data format in the synthetic replacement. Default is false." + } + }, + "allOf": [ + { + "$ref": "#/definitions/BaseRedactionPolicy" + } + ], + "x-ms-discriminator-value": "syntheticReplacement" + }, + "TargetConfidenceScoreLabel": { + "type": "object", + "description": "Represents the confidence scores across all sentiment classes: positive and negative.", + "properties": { + "positive": { + "type": "number", + "format": "double", + "description": "Confidence score for positive sentiment" + }, + "negative": { + "type": "number", + "format": "double", + "description": "Confidence score for negative sentiment" + } + }, + "required": [ + "positive", + "negative" + ] + }, + "TargetRelation": { + "type": "object", + "description": "Represents the relation between assessments and/or targets.", + "properties": { + "ref": { + "type": "string", + "description": "The JSON pointer indicating the linked object." + }, + "relationType": { + "$ref": "#/definitions/TargetRelationType", + "description": "The type related to the target." + } + }, + "required": [ + "ref", + "relationType" + ] + }, + "TargetRelationType": { + "type": "string", + "description": "The type related to the target.", + "enum": [ + "assessment", + "target" + ], + "x-ms-enum": { + "name": "TargetRelationType", + "modelAsString": false, + "values": [ + { + "name": "assessment", + "value": "assessment", + "description": "Assessment relation." + }, + { + "name": "target", + "value": "target", + "description": "Target relation." + } + ] + } + }, + "Tasks": { + "type": "object", + "description": "Container for the tasks status for the LRO job.", + "properties": { + "completed": { + "type": "integer", + "format": "int32", + "description": "Count of completed tasks." + }, + "failed": { + "type": "integer", + "format": "int32", + "description": "Count of failed tasks." + }, + "inProgress": { + "type": "integer", + "format": "int32", + "description": "Count of inprogress tasks." + }, + "total": { + "type": "integer", + "format": "int32", + "description": "Count of total tasks." + }, + "items": { + "type": "array", + "description": "Enumerable of Analyze text job results.", + "items": { + "$ref": "#/definitions/AnalyzeTextLROResult" + } + } + }, + "required": [ + "completed", + "failed", + "inProgress", + "total" + ] + }, + "TemperatureMetadata": { + "type": "object", + "description": "Represents the Information entity Metadata model.", + "properties": { + "value": { + "type": "number", + "format": "double", + "description": "The numeric value that the extracted text denotes." + }, + "unit": { + "$ref": "#/definitions/TemperatureUnit", + "description": "Unit of measure for temperature." + } + }, + "required": [ + "value", + "unit" + ], + "allOf": [ + { + "$ref": "#/definitions/BaseMetadata" + } + ], + "x-ms-discriminator-value": "TemperatureMetadata" + }, + "TemperatureUnit": { + "type": "string", + "description": "The temperature Unit of measurement.", + "enum": [ + "Unspecified", + "Fahrenheit", + "Kelvin", + "Rankine", + "Celsius" + ], + "x-ms-enum": { + "name": "TemperatureUnit", + "modelAsString": true, + "values": [ + { + "name": "Unspecified", + "value": "Unspecified", + "description": "Unspecified temperature unit" + }, + { + "name": "Fahrenheit", + "value": "Fahrenheit", + "description": "Temperature unit in Fahrenheit" + }, + { + "name": "Kelvin", + "value": "Kelvin", + "description": "Temperature unit in Kelvin" + }, + { + "name": "Rankine", + "value": "Rankine", + "description": "Temperature unit in Rankine" + }, + { + "name": "Celsius", + "value": "Celsius", + "description": "Temperature unit in Celsius" + } + ] + } + }, + "TemporalModifier": { + "type": "string", + "description": "An optional modifier of a date/time instance.", + "enum": [ + "AfterApprox", + "Before", + "BeforeStart", + "Approx", + "ReferenceUndefined", + "SinceEnd", + "AfterMid", + "Start", + "After", + "BeforeEnd", + "Until", + "End", + "Less", + "Since", + "AfterStart", + "BeforeApprox", + "Mid", + "More" + ], + "x-ms-enum": { + "name": "TemporalModifier", + "modelAsString": true, + "values": [ + { + "name": "AfterApprox", + "value": "AfterApprox", + "description": "After an approximate time" + }, + { + "name": "Before", + "value": "Before", + "description": "Before a specific time" + }, + { + "name": "BeforeStart", + "value": "BeforeStart", + "description": "Before the start of a time period" + }, + { + "name": "Approx", + "value": "Approx", + "description": "Approximately at a specific time" + }, + { + "name": "ReferenceUndefined", + "value": "ReferenceUndefined", + "description": "Reference to an undefined time" + }, + { + "name": "SinceEnd", + "value": "SinceEnd", + "description": "Since the end of a time period" + }, + { + "name": "AfterMid", + "value": "AfterMid", + "description": "After the middle of a time period" + }, + { + "name": "Start", + "value": "Start", + "description": "At the start of a time period" + }, + { + "name": "After", + "value": "After", + "description": "After a specific time" + }, + { + "name": "BeforeEnd", + "value": "BeforeEnd", + "description": "Before the end of a time period" + }, + { + "name": "Until", + "value": "Until", + "description": "Until a specific time" + }, + { + "name": "End", + "value": "End", + "description": "At the end of a time period" + }, + { + "name": "Less", + "value": "Less", + "description": "Less than a specific time" + }, + { + "name": "Since", + "value": "Since", + "description": "Since a specific time" + }, + { + "name": "AfterStart", + "value": "AfterStart", + "description": "After the start of a time period" + }, + { + "name": "BeforeApprox", + "value": "BeforeApprox", + "description": "Before an approximate time" + }, + { + "name": "Mid", + "value": "Mid", + "description": "In the middle of a time period" + }, + { + "name": "More", + "value": "More", + "description": "More than a specific time" + } + ] + } + }, + "TemporalSetMetadata": { + "type": "object", + "description": "A Metadata for temporal set entity instances.", + "properties": { + "dateValues": { + "type": "array", + "description": "List of date values.", + "items": { + "$ref": "#/definitions/DateValue" + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/BaseMetadata" + } + ], + "x-ms-discriminator-value": "TemporalSetMetadata" + }, + "TemporalSpanMetadata": { + "type": "object", + "description": "represents the Metadata of a date and/or time span.", + "properties": { + "spanValues": { + "type": "array", + "description": "List of temporal spans detected.", + "items": { + "$ref": "#/definitions/TemporalSpanValues" + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/BaseMetadata" + } + ], + "x-ms-discriminator-value": "TemporalSpanMetadata" + }, + "TemporalSpanValues": { + "type": "object", + "description": "Temporal span object.", + "properties": { + "begin": { + "type": "string", + "description": "Start value for the span." + }, + "end": { + "type": "string", + "description": "End value for the span." + }, + "duration": { + "type": "string", + "description": "An optional duration value formatted based on the ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601#Durations)" + }, + "modifier": { + "$ref": "#/definitions/TemporalModifier", + "description": "Modifier for datetime to indicate point of reference like before, after etc." + }, + "timex": { + "type": "string", + "description": "An optional triplet containing the beginning, the end, and the duration all stated as ISO 8601 formatted strings." + } + } + }, + "Temporality": { + "type": "string", + "description": "Describes temporal information regarding the entity.", + "enum": [ + "current", + "past", + "future" + ], + "x-ms-enum": { + "name": "Temporality", + "modelAsString": false, + "values": [ + { + "name": "current", + "value": "current", + "description": "Current temporality" + }, + { + "name": "past", + "value": "past", + "description": "Past temporality" + }, + { + "name": "future", + "value": "future", + "description": "Future temporality" + } + ] + } + }, + "TimeMetadata": { + "type": "object", + "description": "A Metadata for time entity instances.", + "properties": { + "dateValues": { + "type": "array", + "description": "List of date values.", + "items": { + "$ref": "#/definitions/DateValue" + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/BaseMetadata" + } + ], + "x-ms-discriminator-value": "TimeMetadata" + }, + "TokenSentimentValue": { + "type": "string", + "description": "The predicted Sentiment for the sentence.", + "enum": [ + "positive", + "mixed", + "negative" + ], + "x-ms-enum": { + "name": "TokenSentimentValue", + "modelAsString": false, + "values": [ + { + "name": "positive", + "value": "positive", + "description": "Positive sentiment" + }, + { + "name": "mixed", + "value": "mixed", + "description": "Mixed sentiment" + }, + { + "name": "negative", + "value": "negative", + "description": "Negative sentiment" + } + ] + } + }, + "ValueExclusionPolicy": { + "type": "object", + "description": "Policy for specific words and terms that should be excluded from detection by the PII detection service", + "properties": { + "caseSensitive": { + "type": "boolean", + "description": "Option to make the values excluded values case sensitive", + "default": false + }, + "excludedValues": { + "type": "array", + "description": "List of words and terms that should be excluded from detection by the PII detection service", + "items": { + "type": "string" + } + } + }, + "required": [ + "caseSensitive", + "excludedValues" + ] + }, + "VolumeMetadata": { + "type": "object", + "description": "Represents the Volume entity Metadata model.", + "properties": { + "value": { + "type": "number", + "format": "double", + "description": "The numeric value that the extracted text denotes." + }, + "unit": { + "$ref": "#/definitions/VolumeUnit", + "description": "Unit of measure for volume." + } + }, + "required": [ + "value", + "unit" + ], + "allOf": [ + { + "$ref": "#/definitions/BaseMetadata" + } + ], + "x-ms-discriminator-value": "VolumeMetadata" + }, + "VolumeUnit": { + "type": "string", + "description": "The Volume Unit of measurement", + "enum": [ + "Unspecified", + "CubicMeter", + "CubicCentimeter", + "CubicMillimeter", + "Hectoliter", + "Decaliter", + "Liter", + "Centiliter", + "Milliliter", + "CubicYard", + "CubicInch", + "CubicFoot", + "CubicMile", + "FluidOunce", + "Teaspoon", + "Tablespoon", + "Pint", + "Quart", + "Cup", + "Gill", + "Pinch", + "FluidDram", + "Barrel", + "Minim", + "Cord", + "Peck", + "Bushel", + "Hogshead" + ], + "x-ms-enum": { + "name": "VolumeUnit", + "modelAsString": true, + "values": [ + { + "name": "Unspecified", + "value": "Unspecified", + "description": "Unspecified volume unit." + }, + { + "name": "CubicMeter", + "value": "CubicMeter", + "description": "Volume unit in cubic meters." + }, + { + "name": "CubicCentimeter", + "value": "CubicCentimeter", + "description": "Volume unit in cubic centimeters." + }, + { + "name": "CubicMillimeter", + "value": "CubicMillimeter", + "description": "Volume unit in cubic millimeters." + }, + { + "name": "Hectoliter", + "value": "Hectoliter", + "description": "Volume unit in hectoliters." + }, + { + "name": "Decaliter", + "value": "Decaliter", + "description": "Volume unit in decaliters." + }, + { + "name": "Liter", + "value": "Liter", + "description": "Volume unit in liters." + }, + { + "name": "Centiliter", + "value": "Centiliter", + "description": "Volume unit in centiliters." + }, + { + "name": "Milliliter", + "value": "Milliliter", + "description": "Volume unit in milliliters." + }, + { + "name": "CubicYard", + "value": "CubicYard", + "description": "Volume unit in cubic yards." + }, + { + "name": "CubicInch", + "value": "CubicInch", + "description": "Volume unit in cubic inches." + }, + { + "name": "CubicFoot", + "value": "CubicFoot", + "description": "Volume unit in cubic feet." + }, + { + "name": "CubicMile", + "value": "CubicMile", + "description": "Volume unit in cubic miles." + }, + { + "name": "FluidOunce", + "value": "FluidOunce", + "description": "Volume unit in fluid ounces." + }, + { + "name": "Teaspoon", + "value": "Teaspoon", + "description": "Volume unit in teaspoons." + }, + { + "name": "Tablespoon", + "value": "Tablespoon", + "description": "Volume unit in tablespoons." + }, + { + "name": "Pint", + "value": "Pint", + "description": "Volume unit in pints." + }, + { + "name": "Quart", + "value": "Quart", + "description": "Volume unit in quarts." + }, + { + "name": "Cup", + "value": "Cup", + "description": "Volume unit in cups." + }, + { + "name": "Gill", + "value": "Gill", + "description": "Volume unit in gills." + }, + { + "name": "Pinch", + "value": "Pinch", + "description": "Volume unit in pinches." + }, + { + "name": "FluidDram", + "value": "FluidDram", + "description": "Volume unit in fluid drams." + }, + { + "name": "Barrel", + "value": "Barrel", + "description": "Volume unit in barrels." + }, + { + "name": "Minim", + "value": "Minim", + "description": "Volume unit in minims." + }, + { + "name": "Cord", + "value": "Cord", + "description": "Volume unit in cords." + }, + { + "name": "Peck", + "value": "Peck", + "description": "Volume unit in pecks." + }, + { + "name": "Bushel", + "value": "Bushel", + "description": "Volume unit in bushels." + }, + { + "name": "Hogshead", + "value": "Hogshead", + "description": "Volume unit in hogsheads." + } + ] + } + }, + "WarningCodeValue": { + "type": "string", + "description": "Defines the list of the warning codes.", + "enum": [ + "LongWordsInDocument", + "DocumentTruncated" + ], + "x-ms-enum": { + "name": "WarningCodeValue", + "modelAsString": true, + "values": [ + { + "name": "LongWordsInDocument", + "value": "LongWordsInDocument", + "description": "Long words in document warning" + }, + { + "name": "DocumentTruncated", + "value": "DocumentTruncated", + "description": "Document truncated warning" + } + ] + } + }, + "WeightMetadata": { + "type": "object", + "description": "Represents the Weight ) entity Metadata model.", + "properties": { + "value": { + "type": "number", + "format": "double", + "description": "The numeric value that the extracted text denotes." + }, + "unit": { + "$ref": "#/definitions/WeightUnit", + "description": "Unit of measure for weight." + } + }, + "required": [ + "value", + "unit" + ], + "allOf": [ + { + "$ref": "#/definitions/BaseMetadata" + } + ], + "x-ms-discriminator-value": "WeightMetadata" + }, + "WeightUnit": { + "type": "string", + "description": "The weight Unit of measurement.", + "enum": [ + "Unspecified", + "Kilogram", + "Gram", + "Milligram", + "Gallon", + "MetricTon", + "Ton", + "Pound", + "Ounce", + "Grain", + "PennyWeight", + "LongTonBritish", + "ShortTonUS", + "ShortHundredWeightUS", + "Stone", + "Dram" + ], + "x-ms-enum": { + "name": "WeightUnit", + "modelAsString": true, + "values": [ + { + "name": "Unspecified", + "value": "Unspecified", + "description": "Unspecified weight unit" + }, + { + "name": "Kilogram", + "value": "Kilogram", + "description": "Weight unit in kilograms" + }, + { + "name": "Gram", + "value": "Gram", + "description": "Weight unit in grams" + }, + { + "name": "Milligram", + "value": "Milligram", + "description": "Weight unit in milligrams" + }, + { + "name": "Gallon", + "value": "Gallon", + "description": "Volume unit in gallons" + }, + { + "name": "MetricTon", + "value": "MetricTon", + "description": "Weight unit in metric tons" + }, + { + "name": "Ton", + "value": "Ton", + "description": "Weight unit in tons" + }, + { + "name": "Pound", + "value": "Pound", + "description": "Weight unit in pounds" + }, + { + "name": "Ounce", + "value": "Ounce", + "description": "Weight unit in ounces" + }, + { + "name": "Grain", + "value": "Grain", + "description": "Weight unit in grains" + }, + { + "name": "PennyWeight", + "value": "PennyWeight", + "description": "Weight unit in pennyweights" + }, + { + "name": "LongTonBritish", + "value": "LongTonBritish", + "description": "Weight unit in long tons (British)" + }, + { + "name": "ShortTonUS", + "value": "ShortTonUS", + "description": "Weight unit in short tons (US)" + }, + { + "name": "ShortHundredWeightUS", + "value": "ShortHundredWeightUS", + "description": "Weight unit in short hundredweights (US)" + }, + { + "name": "Stone", + "value": "Stone", + "description": "Weight unit in stones" + }, + { + "name": "Dram", + "value": "Dram", + "description": "Weight unit in drams" + } + ] + } + }, + "fhirVersion": { + "type": "string", + "description": "The FHIR Spec version.", + "enum": [ + "4.0.1" + ], + "x-ms-enum": { + "name": "fhirVersion", + "modelAsString": true, + "values": [ + { + "name": "4.0.1", + "value": "4.0.1", + "description": "Version 4.0.1" + } + ] + } + }, + "healthcareDocumentType": { + "type": "string", + "description": "Document type.", + "enum": [ + "None", + "ClinicalTrial", + "DischargeSummary", + "ProgressNote", + "HistoryAndPhysical", + "Consult", + "Imaging", + "Pathology", + "ProcedureNote" + ], + "x-ms-enum": { + "name": "healthcareDocumentType", + "modelAsString": true, + "values": [ + { + "name": "None", + "value": "None", + "description": "None document type" + }, + { + "name": "ClinicalTrial", + "value": "ClinicalTrial", + "description": "Clinical trial document type" + }, + { + "name": "DischargeSummary", + "value": "DischargeSummary", + "description": "Discharge summary document type" + }, + { + "name": "ProgressNote", + "value": "ProgressNote", + "description": "Progress note document type" + }, + { + "name": "HistoryAndPhysical", + "value": "HistoryAndPhysical", + "description": "History and physical document type" + }, + { + "name": "Consult", + "value": "Consult", + "description": "Consult document type" + }, + { + "name": "Imaging", + "value": "Imaging", + "description": "Imaging document type" + }, + { + "name": "Pathology", + "value": "Pathology", + "description": "Pathology document type" + }, + { + "name": "ProcedureNote", + "value": "ProcedureNote", + "description": "Procedure note document type" + } + ] + } + }, + "healthcareEntityCategory": { + "type": "string", + "description": "Healthcare Entity Category.", + "enum": [ + "BodyStructure", + "Age", + "Gender", + "ExaminationName", + "Date", + "Direction", + "Frequency", + "MeasurementValue", + "MeasurementUnit", + "RelationalOperator", + "Time", + "GeneOrProtein", + "Variant", + "AdministrativeEvent", + "CareEnvironment", + "HealthcareProfession", + "Diagnosis", + "SymptomOrSign", + "ConditionQualifier", + "MedicationClass", + "MedicationName", + "Dosage", + "MedicationForm", + "MedicationRoute", + "FamilyRelation", + "TreatmentName", + "Ethnicity", + "Course", + "Expression", + "MutationType", + "ConditionScale", + "Allergen", + "Employment", + "LivingStatus", + "SubstanceUse", + "SubstanceUseAmount" + ], + "x-ms-enum": { + "name": "healthcareEntityCategory", + "modelAsString": true, + "values": [ + { + "name": "BodyStructure", + "value": "BodyStructure", + "description": "Body structure" + }, + { + "name": "Age", + "value": "Age", + "description": "Age" + }, + { + "name": "Gender", + "value": "Gender", + "description": "Gender" + }, + { + "name": "ExaminationName", + "value": "ExaminationName", + "description": "Examination name" + }, + { + "name": "Date", + "value": "Date", + "description": "Date" + }, + { + "name": "Direction", + "value": "Direction", + "description": "Direction" + }, + { + "name": "Frequency", + "value": "Frequency", + "description": "Frequency" + }, + { + "name": "MeasurementValue", + "value": "MeasurementValue", + "description": "Measurement value" + }, + { + "name": "MeasurementUnit", + "value": "MeasurementUnit", + "description": "Measurement unit" + }, + { + "name": "RelationalOperator", + "value": "RelationalOperator", + "description": "Relational operator" + }, + { + "name": "Time", + "value": "Time", + "description": "Time" + }, + { + "name": "GeneOrProtein", + "value": "GeneOrProtein", + "description": "Gene or protein" + }, + { + "name": "Variant", + "value": "Variant", + "description": "Variant" + }, + { + "name": "AdministrativeEvent", + "value": "AdministrativeEvent", + "description": "Administrative event" + }, + { + "name": "CareEnvironment", + "value": "CareEnvironment", + "description": "Care environment" + }, + { + "name": "HealthcareProfession", + "value": "HealthcareProfession", + "description": "Healthcare profession" + }, + { + "name": "Diagnosis", + "value": "Diagnosis", + "description": "Diagnosis" + }, + { + "name": "SymptomOrSign", + "value": "SymptomOrSign", + "description": "Symptom or sign" + }, + { + "name": "ConditionQualifier", + "value": "ConditionQualifier", + "description": "Condition qualifier" + }, + { + "name": "MedicationClass", + "value": "MedicationClass", + "description": "Medication class" + }, + { + "name": "MedicationName", + "value": "MedicationName", + "description": "Medication name" + }, + { + "name": "Dosage", + "value": "Dosage", + "description": "Dosage" + }, + { + "name": "MedicationForm", + "value": "MedicationForm", + "description": "Medication form" + }, + { + "name": "MedicationRoute", + "value": "MedicationRoute", + "description": "Medication route" + }, + { + "name": "FamilyRelation", + "value": "FamilyRelation", + "description": "Family relation" + }, + { + "name": "TreatmentName", + "value": "TreatmentName", + "description": "Treatment name" + }, + { + "name": "Ethnicity", + "value": "Ethnicity", + "description": "Ethnicity" + }, + { + "name": "Course", + "value": "Course", + "description": "Course" + }, + { + "name": "Expression", + "value": "Expression", + "description": "Expression" + }, + { + "name": "MutationType", + "value": "MutationType", + "description": "Mutation type" + }, + { + "name": "ConditionScale", + "value": "ConditionScale", + "description": "Condition scale" + }, + { + "name": "Allergen", + "value": "Allergen", + "description": "Allergen" + }, + { + "name": "Employment", + "value": "Employment", + "description": "Employment" + }, + { + "name": "LivingStatus", + "value": "LivingStatus", + "description": "Living status" + }, + { + "name": "SubstanceUse", + "value": "SubstanceUse", + "description": "Substance use" + }, + { + "name": "SubstanceUseAmount", + "value": "SubstanceUseAmount", + "description": "Substance use amount" + } + ] + } + }, + "relationType": { + "type": "string", + "description": "Type of relation. Examples include: `DosageOfMedication` or 'FrequencyOfMedication', etc.", + "enum": [ + "Abbreviation", + "DirectionOfBodyStructure", + "DirectionOfCondition", + "DirectionOfExamination", + "DirectionOfTreatment", + "DosageOfMedication", + "FormOfMedication", + "FrequencyOfMedication", + "FrequencyOfTreatment", + "QualifierOfCondition", + "RelationOfExamination", + "RouteOfMedication", + "TimeOfCondition", + "TimeOfEvent", + "TimeOfExamination", + "TimeOfMedication", + "TimeOfTreatment", + "UnitOfCondition", + "UnitOfExamination", + "ValueOfCondition", + "ValueOfExamination", + "BodySiteOfCondition", + "BodySiteOfTreatment", + "CourseOfCondition", + "CourseOfExamination", + "CourseOfMedication", + "CourseOfTreatment", + "ExaminationFindsCondition", + "ExpressionOfGene", + "ExpressionOfVariant", + "FrequencyOfCondition", + "MutationTypeOfGene", + "MutationTypeOfVariant", + "ScaleOfCondition", + "VariantOfGene" + ], + "x-ms-enum": { + "name": "relationType", + "modelAsString": true, + "values": [ + { + "name": "Abbreviation", + "value": "Abbreviation", + "description": "Abbreviation" + }, + { + "name": "DirectionOfBodyStructure", + "value": "DirectionOfBodyStructure", + "description": "Direction of body structure" + }, + { + "name": "DirectionOfCondition", + "value": "DirectionOfCondition", + "description": "Direction of condition" + }, + { + "name": "DirectionOfExamination", + "value": "DirectionOfExamination", + "description": "Direction of examination" + }, + { + "name": "DirectionOfTreatment", + "value": "DirectionOfTreatment", + "description": "Direction of treatment" + }, + { + "name": "DosageOfMedication", + "value": "DosageOfMedication", + "description": "Dosage of medication" + }, + { + "name": "FormOfMedication", + "value": "FormOfMedication", + "description": "Form of medication" + }, + { + "name": "FrequencyOfMedication", + "value": "FrequencyOfMedication", + "description": "Frequency of medication" + }, + { + "name": "FrequencyOfTreatment", + "value": "FrequencyOfTreatment", + "description": "Frequency of treatment" + }, + { + "name": "QualifierOfCondition", + "value": "QualifierOfCondition", + "description": "Qualifier of condition" + }, + { + "name": "RelationOfExamination", + "value": "RelationOfExamination", + "description": "Relation of examination" + }, + { + "name": "RouteOfMedication", + "value": "RouteOfMedication", + "description": "Route of medication" + }, + { + "name": "TimeOfCondition", + "value": "TimeOfCondition", + "description": "Time of condition" + }, + { + "name": "TimeOfEvent", + "value": "TimeOfEvent", + "description": "Time of event" + }, + { + "name": "TimeOfExamination", + "value": "TimeOfExamination", + "description": "Time of examination" + }, + { + "name": "TimeOfMedication", + "value": "TimeOfMedication", + "description": "Time of medication" + }, + { + "name": "TimeOfTreatment", + "value": "TimeOfTreatment", + "description": "Time of treatment" + }, + { + "name": "UnitOfCondition", + "value": "UnitOfCondition", + "description": "Unit of condition" + }, + { + "name": "UnitOfExamination", + "value": "UnitOfExamination", + "description": "Unit of examination" + }, + { + "name": "ValueOfCondition", + "value": "ValueOfCondition", + "description": "Value of condition" + }, + { + "name": "ValueOfExamination", + "value": "ValueOfExamination", + "description": "Value of examination" + }, + { + "name": "BodySiteOfCondition", + "value": "BodySiteOfCondition", + "description": "Body site of condition" + }, + { + "name": "BodySiteOfTreatment", + "value": "BodySiteOfTreatment", + "description": "Body site of treatment" + }, + { + "name": "CourseOfCondition", + "value": "CourseOfCondition", + "description": "Course of condition" + }, + { + "name": "CourseOfExamination", + "value": "CourseOfExamination", + "description": "Course of examination" + }, + { + "name": "CourseOfMedication", + "value": "CourseOfMedication", + "description": "Course of medication" + }, + { + "name": "CourseOfTreatment", + "value": "CourseOfTreatment", + "description": "Course of treatment" + }, + { + "name": "ExaminationFindsCondition", + "value": "ExaminationFindsCondition", + "description": "Examination finds condition" + }, + { + "name": "ExpressionOfGene", + "value": "ExpressionOfGene", + "description": "Expression of gene" + }, + { + "name": "ExpressionOfVariant", + "value": "ExpressionOfVariant", + "description": "Expression of variant" + }, + { + "name": "FrequencyOfCondition", + "value": "FrequencyOfCondition", + "description": "Frequency of condition" + }, + { + "name": "MutationTypeOfGene", + "value": "MutationTypeOfGene", + "description": "Mutation type of gene" + }, + { + "name": "MutationTypeOfVariant", + "value": "MutationTypeOfVariant", + "description": "Mutation type of variant" + }, + { + "name": "ScaleOfCondition", + "value": "ScaleOfCondition", + "description": "Scale of condition" + }, + { + "name": "VariantOfGene", + "value": "VariantOfGene", + "description": "Variant of gene" + } + ] + } + } + }, + "parameters": { + "Azure.Core.Foundations.ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "The API version to use for this operation.", + "required": true, + "type": "string", + "minLength": 1, + "x-ms-parameter-location": "method", + "x-ms-client-name": "apiVersion" + } + } +} From 947f686c92b4de336fe50d8c9017132449415d7d Mon Sep 17 00:00:00 2001 From: "Amber Chen (Centific Technologies Inc)" Date: Wed, 15 Oct 2025 15:06:39 -0700 Subject: [PATCH 2/6] added examples --- ...rizationSummaryLengthPromptTaskResult.json | 58 ++ ...rizationSummaryLengthPromptTaskSubmit.json | 39 ++ ...fulAbstractiveSummarizationTaskResult.json | 58 ++ ...fulAbstractiveSummarizationTaskSubmit.json | 38 ++ ...uccessfulAnalyzeTextJobsCancelRequest.json | 17 + ...lyzeTextJobsMultipleTaskStatusRequest.json | 180 ++++++ ...lyzeTextJobsMultipleTaskSubmitRequest.json | 51 ++ .../SuccessfulEntityLinkingRequest.json | 130 ++++ ...sfulEntityRecognitionExclusionRequest.json | 136 +++++ ...sfulEntityRecognitionInclusionRequest.json | 133 +++++ ...ityRecognitionInferenceOptionsRequest.json | 83 +++ ...cessfulEntityRecognitionOverlapPolicy.json | 79 +++ .../SuccessfulEntityRecognitionRequest.json | 339 +++++++++++ ...sfulHealthcareDocumentTypePostRequest.json | 38 ++ ...althcareDocumentTypeTaskStatusRequest.json | 554 ++++++++++++++++++ .../SuccessfulHealthcarePostRequest.json | 36 ++ ...SuccessfulHealthcareTaskStatusRequest.json | 222 +++++++ .../SuccessfulKeyPhraseExtractionRequest.json | 73 +++ .../SuccessfulLanguageDetectionRequest.json | 93 +++ ...lPiiEntityRecognitionExclusionRequest.json | 101 ++++ ...fulPiiEntityRecognitionMaskedEntities.json | 84 +++ ...tityRecognitionRedactionPolicyRequest.json | 129 ++++ ...SuccessfulPiiEntityRecognitionRequest.json | 123 ++++ .../SuccessfulSentimentAnalysisRequest.json | 150 +++++ .../2025-11-15-preview/analyzetext.json | 80 +++ ...rizationSummaryLengthPromptTaskResult.json | 58 ++ ...rizationSummaryLengthPromptTaskSubmit.json | 39 ++ ...fulAbstractiveSummarizationTaskResult.json | 58 ++ ...fulAbstractiveSummarizationTaskSubmit.json | 38 ++ ...uccessfulAnalyzeTextJobsCancelRequest.json | 17 + ...lyzeTextJobsMultipleTaskStatusRequest.json | 180 ++++++ ...lyzeTextJobsMultipleTaskSubmitRequest.json | 51 ++ .../SuccessfulEntityLinkingRequest.json | 130 ++++ ...sfulEntityRecognitionExclusionRequest.json | 136 +++++ ...sfulEntityRecognitionInclusionRequest.json | 133 +++++ ...ityRecognitionInferenceOptionsRequest.json | 83 +++ ...cessfulEntityRecognitionOverlapPolicy.json | 79 +++ .../SuccessfulEntityRecognitionRequest.json | 339 +++++++++++ ...sfulHealthcareDocumentTypePostRequest.json | 38 ++ ...althcareDocumentTypeTaskStatusRequest.json | 554 ++++++++++++++++++ .../SuccessfulHealthcarePostRequest.json | 36 ++ ...SuccessfulHealthcareTaskStatusRequest.json | 222 +++++++ .../SuccessfulKeyPhraseExtractionRequest.json | 73 +++ .../SuccessfulLanguageDetectionRequest.json | 93 +++ ...lPiiEntityRecognitionExclusionRequest.json | 101 ++++ ...fulPiiEntityRecognitionMaskedEntities.json | 84 +++ ...tityRecognitionRedactionPolicyRequest.json | 129 ++++ ...SuccessfulPiiEntityRecognitionRequest.json | 123 ++++ .../SuccessfulSentimentAnalysisRequest.json | 150 +++++ 49 files changed, 5968 insertions(+) create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAbstractiveSummarizationTaskResult.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAbstractiveSummarizationTaskSubmit.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAnalyzeTextJobsCancelRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityLinkingRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityRecognitionExclusionRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityRecognitionInclusionRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityRecognitionInferenceOptionsRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityRecognitionOverlapPolicy.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityRecognitionRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulHealthcareDocumentTypePostRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulHealthcareDocumentTypeTaskStatusRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulHealthcarePostRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulHealthcareTaskStatusRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulKeyPhraseExtractionRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulLanguageDetectionRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulPiiEntityRecognitionExclusionRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulPiiEntityRecognitionMaskedEntities.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulPiiEntityRecognitionRedactionPolicyRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulPiiEntityRecognitionRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulSentimentAnalysisRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAbstractiveSummarizationTaskResult.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAbstractiveSummarizationTaskSubmit.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAnalyzeTextJobsCancelRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityLinkingRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityRecognitionExclusionRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityRecognitionInclusionRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityRecognitionInferenceOptionsRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityRecognitionOverlapPolicy.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityRecognitionRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulHealthcareDocumentTypePostRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulHealthcareDocumentTypeTaskStatusRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulHealthcarePostRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulHealthcareTaskStatusRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulKeyPhraseExtractionRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulLanguageDetectionRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulPiiEntityRecognitionExclusionRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulPiiEntityRecognitionMaskedEntities.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulPiiEntityRecognitionRedactionPolicyRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulPiiEntityRecognitionRequest.json create mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulSentimentAnalysisRequest.json diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult.json new file mode 100644 index 000000000000..8691b50233d4 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult.json @@ -0,0 +1,58 @@ +{ + "operationId": "AnalyzeTextJobStatus", + "title": "SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "createdDateTime": "2020-10-01T15:00:45Z", + "displayName": "Document Abstractive Summarization Task Example", + "expirationDateTime": "2020-10-03T15:01:03Z", + "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18", + "lastUpdatedDateTime": "2020-10-01T15:01:03Z", + "status": "succeeded", + "tasks": { + "completed": 1, + "failed": 0, + "inProgress": 0, + "total": 1, + "items": [ + { + "kind": "AbstractiveSummarizationLROResults", + "taskName": "Document Abstractive Summarization Task 1", + "lastUpdateDateTime": "2020-10-01T15:01:03Z", + "status": "succeeded", + "results": { + "documents": [ + { + "summaries": [ + { + "text": "XYZ-code is a joint representation of human cognition and language, which Microsoft aims to develop for cross-domain transfer learning. Learn how XYz-code can help Microsoft achieve cross-sensory and multilingual learning with human-centric approach.", + "contexts": [ + { + "offset": 0, + "length": 1619 + } + ] + } + ], + "id": "1", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "latest" + } + } + ] + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit.json new file mode 100644 index 000000000000..4648c203dcaf --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit.json @@ -0,0 +1,39 @@ +{ + "operationId": "AnalyzeTextSubmitJob", + "title": "SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "{Job ID}", + "body": { + "displayName": "Document Abstractive Summarization Task Example", + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there is magic—what we call XYZ-code as illustrated in Figure 1—a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pre-trained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multi-sensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks." + } + ] + }, + "tasks": [ + { + "kind": "AbstractiveSummarization", + "taskName": "Document Abstractive Summarization Task 1", + "parameters": { + "summaryLength": "medium", + "instruction": "XYZ-code" + } + } + ] + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "{endpoint}/language/analyze-text/jobs/{jobId}?api-version=2025-11-15-preview" + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAbstractiveSummarizationTaskResult.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAbstractiveSummarizationTaskResult.json new file mode 100644 index 000000000000..85f56d9496af --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAbstractiveSummarizationTaskResult.json @@ -0,0 +1,58 @@ +{ + "operationId": "AnalyzeTextJobStatus", + "title": "SuccessfulAbstractiveSummarizationTaskResult", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "createdDateTime": "2020-10-01T15:00:45Z", + "displayName": "Document Abstractive Summarization Task Example", + "expirationDateTime": "2020-10-03T15:01:03Z", + "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18", + "lastUpdatedDateTime": "2020-10-01T15:01:03Z", + "status": "succeeded", + "tasks": { + "completed": 1, + "failed": 0, + "inProgress": 0, + "total": 1, + "items": [ + { + "kind": "AbstractiveSummarizationLROResults", + "taskName": "Document Abstractive Summarization Task 1", + "lastUpdateDateTime": "2020-10-01T15:01:03Z", + "status": "succeeded", + "results": { + "documents": [ + { + "summaries": [ + { + "text": "Microsoft have been on a quest to advance AI beyond existing techniques.", + "contexts": [ + { + "offset": 0, + "length": 1629 + } + ] + } + ], + "id": "1", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "latest" + } + } + ] + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAbstractiveSummarizationTaskSubmit.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAbstractiveSummarizationTaskSubmit.json new file mode 100644 index 000000000000..a4a0462a1afb --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAbstractiveSummarizationTaskSubmit.json @@ -0,0 +1,38 @@ +{ + "operationId": "AnalyzeTextSubmitJob", + "title": "SuccessfulAbstractiveSummarizationTaskSubmit", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "{Job ID}", + "body": { + "displayName": "Document Abstractive Summarization Task Example", + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there is magic—what we call XYZ-code as illustrated in Figure 1—a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pre-trained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multi-sensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks." + } + ] + }, + "tasks": [ + { + "kind": "AbstractiveSummarization", + "taskName": "Document Abstractive Summarization Task 1", + "parameters": { + "sentenceCount": 1 + } + } + ] + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "{endpoint}/language/analyze-text/jobs/{jobId}?api-version=2025-11-15-preview" + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAnalyzeTextJobsCancelRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAnalyzeTextJobsCancelRequest.json new file mode 100644 index 000000000000..a5e2907049cf --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAnalyzeTextJobsCancelRequest.json @@ -0,0 +1,17 @@ +{ + "operationId": "AnalyzeTextCancelJob", + "title": "SuccessfulAnalyzeTextJobsCancelRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18" + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}?api-version=2023-11-15-preview" + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json new file mode 100644 index 000000000000..9f381ea354f9 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json @@ -0,0 +1,180 @@ +{ + "operationId": "AnalyzeTextJobStatus", + "title": "SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "createdDateTime": "2020-10-01T15:00:45Z", + "displayName": "Extracting Location & US Region", + "expirationDateTime": "2020-10-03T15:01:03Z", + "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18", + "lastUpdatedDateTime": "2020-10-01T15:01:03Z", + "status": "succeeded", + "tasks": { + "completed": 2, + "failed": 0, + "inProgress": 0, + "total": 2, + "items": [ + { + "kind": "EntityRecognitionLROResults", + "taskName": "Recognize Entities", + "lastUpdateDateTime": "2020-10-01T15:01:03Z", + "status": "succeeded", + "results": { + "documents": [ + { + "entities": [ + { + "category": "Event", + "type": "Event", + "confidenceScore": 0.61, + "length": 4, + "offset": 18, + "text": "trip", + "tags": [ + { + "name": "Event", + "confidenceScore": 0.61 + } + ] + }, + { + "category": "Location", + "type": "GPE", + "confidenceScore": 0.82, + "length": 7, + "offset": 26, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.82 + }, + { + "name": "GPE", + "confidenceScore": 0.82 + } + ], + "text": "Seattle" + }, + { + "category": "Temporal", + "type": "DateRange", + "confidenceScore": 0.8, + "length": 9, + "offset": 34, + "text": "last week", + "tags": [ + { + "name": "DateRange", + "confidenceScore": 0.8 + }, + { + "name": "Temporal", + "confidenceScore": 0.8 + } + ] + } + ], + "id": "1", + "warnings": [] + }, + { + "entities": [ + { + "category": "Location", + "type": "GPE", + "confidenceScore": 0.52, + "length": 3, + "offset": 14, + "text": "NYC", + "tags": [ + { + "name": "Location", + "confidenceScore": 0.82 + }, + { + "name": "GPE", + "confidenceScore": 0.82 + } + ] + }, + { + "category": "Temporal", + "type": "Date", + "confidenceScore": 0.8, + "length": 8, + "offset": 18, + "text": "tomorrow", + "tags": [ + { + "name": "Date", + "confidenceScore": 0.8 + }, + { + "name": "Temporal", + "confidenceScore": 0.8 + } + ] + } + ], + "id": "2", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + }, + { + "kind": "CustomEntityRecognitionLROResults", + "taskName": "Recognize US Regions", + "lastUpdateDateTime": "2020-10-01T15:01:03Z", + "status": "succeeded", + "results": { + "documents": [ + { + "entities": [ + { + "category": "USRegion", + "confidenceScore": 0.85, + "length": 17, + "offset": 45, + "text": "Pacific Northwest" + } + ], + "id": "1", + "warnings": [] + }, + { + "entities": [ + { + "category": "USRegion", + "confidenceScore": 0.88, + "length": 10, + "offset": 63, + "text": "East Coast" + } + ], + "id": "2", + "warnings": [] + } + ], + "errors": [], + "projectName": "MyProject", + "deploymentName": "MyDeployment" + } + } + ] + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json new file mode 100644 index 000000000000..d8cd0e03fd5b --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json @@ -0,0 +1,51 @@ +{ + "operationId": "AnalyzeTextSubmitJob", + "title": "SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "{Job ID}", + "body": { + "displayName": "Extracting Location & US Region", + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "I had a wonderful trip to Seattle last week." + }, + { + "id": "2", + "language": "en", + "text": "I'm flying to NYC tomorrow. See you there." + } + ] + }, + "tasks": [ + { + "kind": "EntityRecognition", + "taskName": "Recognize Entities", + "parameters": { + "modelVersion": "latest" + } + }, + { + "kind": "CustomEntityRecognition", + "taskName": "Recognize US Regions", + "parameters": { + "projectName": "MyProject", + "deploymentName": "MyDeployment" + } + } + ] + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "{endpoint}/language/analyze-text/jobs/{jobId}?api-version=2025-11-15-preview" + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityLinkingRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityLinkingRequest.json new file mode 100644 index 000000000000..1f449ea663cf --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityLinkingRequest.json @@ -0,0 +1,130 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulEntityLinkingRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "EntityLinking", + "parameters": { + "modelVersion": "latest" + }, + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "Microsoft was founded by Bill Gates and Paul Allen." + }, + { + "id": "2", + "language": "en", + "text": "Pike place market is my favorite Seattle attraction." + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "EntityLinkingResults", + "results": { + "documents": [ + { + "entities": [ + { + "dataSource": "Wikipedia", + "id": "Bill Gates", + "language": "en", + "matches": [ + { + "confidenceScore": 0.52, + "length": 10, + "offset": 25, + "text": "Bill Gates" + } + ], + "name": "Bill Gates", + "url": "https://en.wikipedia.org/wiki/Bill_Gates" + }, + { + "dataSource": "Wikipedia", + "id": "Paul Allen", + "language": "en", + "matches": [ + { + "confidenceScore": 0.54, + "length": 10, + "offset": 40, + "text": "Paul Allen" + } + ], + "name": "Paul Allen", + "url": "https://en.wikipedia.org/wiki/Paul_Allen" + }, + { + "dataSource": "Wikipedia", + "id": "Microsoft", + "language": "en", + "matches": [ + { + "confidenceScore": 0.49, + "length": 9, + "offset": 0, + "text": "Microsoft" + } + ], + "name": "Microsoft", + "url": "https://en.wikipedia.org/wiki/Microsoft" + } + ], + "id": "1", + "warnings": [] + }, + { + "entities": [ + { + "dataSource": "Wikipedia", + "id": "Pike Place Market", + "language": "en", + "matches": [ + { + "confidenceScore": 0.86, + "length": 17, + "offset": 0, + "text": "Pike place market" + } + ], + "name": "Pike Place Market", + "url": "https://en.wikipedia.org/wiki/Pike_Place_Market" + }, + { + "dataSource": "Wikipedia", + "id": "Seattle", + "language": "en", + "matches": [ + { + "confidenceScore": 0.27, + "length": 7, + "offset": 33, + "text": "Seattle" + } + ], + "name": "Seattle", + "url": "https://en.wikipedia.org/wiki/Seattle" + } + ], + "id": "2", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityRecognitionExclusionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityRecognitionExclusionRequest.json new file mode 100644 index 000000000000..c373dd738e78 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityRecognitionExclusionRequest.json @@ -0,0 +1,136 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulEntityRecognitionExclusionRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "EntityRecognition", + "parameters": { + "modelVersion": "latest", + "exclusionList": [ + "Numeric" + ], + "overlapPolicy": { + "policyKind": "allowOverlap" + } + }, + "analysisInput": { + "documents": [ + { + "id": "2", + "language": "en", + "text": "When I was 5 years old I had $90.00 dollars to my name." + }, + { + "id": "3", + "language": "en", + "text": "When we flew from LAX it seemed like we were moving at 10 meters per second. I was lucky to see Amsterdam, Effile Tower, and the Nile." + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "EntityRecognitionResults", + "results": { + "documents": [ + { + "entities": [], + "id": "2", + "warnings": [] + }, + { + "entities": [ + { + "text": "LAX", + "category": "Location", + "type": "Airport", + "offset": 18, + "length": 3, + "confidenceScore": 0.72, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.9 + }, + { + "name": "Structural", + "confidenceScore": 0.72 + } + ] + }, + { + "text": "Amsterdam", + "category": "Location", + "type": "City", + "offset": 96, + "length": 9, + "confidenceScore": 0.8, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.84 + }, + { + "name": "GPE", + "confidenceScore": 0.84 + }, + { + "name": "City", + "confidenceScore": 0.8 + } + ] + }, + { + "text": "Eiffel Tower", + "category": "Location", + "type": "Structural", + "offset": 107, + "length": 12, + "confidenceScore": 0.9, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.9 + }, + { + "name": "Structural", + "confidenceScore": 0.9 + } + ] + }, + { + "text": "Nile", + "category": "Location", + "type": "Geological", + "offset": 129, + "length": 4, + "confidenceScore": 0.63, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.9 + }, + { + "name": "Geological", + "confidenceScore": 0.63 + } + ] + } + ], + "id": "3", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-06-01" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityRecognitionInclusionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityRecognitionInclusionRequest.json new file mode 100644 index 000000000000..fe6a8c90a10d --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityRecognitionInclusionRequest.json @@ -0,0 +1,133 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulEntityRecognitionInclusionRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "EntityRecognition", + "parameters": { + "modelVersion": "latest", + "inclusionList": [ + "Location" + ] + }, + "analysisInput": { + "documents": [ + { + "id": "2", + "language": "en", + "text": "When I was 5 years old I had $90.00 dollars to my name." + }, + { + "id": "3", + "language": "en", + "text": "When we flew from LAX it seemed like we were moving at 10 meters per second. I was lucky to see Amsterdam, Effile Tower, and the Nile." + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "EntityRecognitionResults", + "results": { + "documents": [ + { + "entities": [], + "id": "2", + "warnings": [] + }, + { + "entities": [ + { + "text": "LAX", + "category": "Location", + "type": "Structural", + "offset": 18, + "length": 3, + "confidenceScore": 0.72, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.9 + }, + { + "name": "Structural", + "confidenceScore": 0.72 + } + ] + }, + { + "text": "Amsterdam", + "category": "Location", + "type": "City", + "offset": 96, + "length": 9, + "confidenceScore": 0.8, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.84 + }, + { + "name": "GPE", + "confidenceScore": 0.84 + }, + { + "name": "City", + "confidenceScore": 0.8 + } + ] + }, + { + "text": "Eiffel Tower", + "category": "Location", + "type": "Structural", + "offset": 107, + "length": 12, + "confidenceScore": 0.9, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.9 + }, + { + "name": "Structural", + "confidenceScore": 0.9 + } + ] + }, + { + "text": "Nile", + "category": "Location", + "type": "Geological", + "offset": 129, + "length": 4, + "confidenceScore": 0.63, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.9 + }, + { + "name": "Geological", + "confidenceScore": 0.63 + } + ] + } + ], + "id": "3", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-06-01" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityRecognitionInferenceOptionsRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityRecognitionInferenceOptionsRequest.json new file mode 100644 index 000000000000..ea7598b3f798 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityRecognitionInferenceOptionsRequest.json @@ -0,0 +1,83 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulEntityRecognitionInferenceOptionsRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "EntityRecognition", + "parameters": { + "modelVersion": "latest", + "inferenceOptions": { + "excludeNormalizedValues": true + } + }, + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "When I was 5 years old I had $90.00 dollars to my name." + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "EntityRecognitionResults", + "results": { + "documents": [ + { + "entities": [ + { + "text": "5 years old", + "category": "Numeric", + "type": "Age", + "offset": 11, + "length": 11, + "confidenceScore": 0.99, + "tags": [ + { + "name": "Numeric", + "confidenceScore": 0.99 + }, + { + "name": "Age", + "confidenceScore": 0.99 + } + ] + }, + { + "text": "$90.00", + "category": "Numeric", + "type": "Currency", + "offset": 29, + "length": 14, + "confidenceScore": 0.99, + "tags": [ + { + "name": "Numeric", + "confidenceScore": 0.99 + }, + { + "name": "Currency", + "confidenceScore": 0.99 + } + ] + } + ], + "id": "1", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2023-09-01" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityRecognitionOverlapPolicy.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityRecognitionOverlapPolicy.json new file mode 100644 index 000000000000..ca8e051e2129 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityRecognitionOverlapPolicy.json @@ -0,0 +1,79 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulEntityRecognitionOverlapPolicy", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "EntityRecognition", + "parameters": { + "modelVersion": "latest", + "overlapPolicy": { + "policyKind": "matchLongest" + } + }, + "analysisInput": { + "documents": [ + { + "id": "4", + "language": "en", + "text": "25th April Meeting was an intresting one. At least we gont to experience the WorldCup" + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "EntityRecognitionResults", + "results": { + "documents": [ + { + "entities": [ + { + "text": "25th April Meeting", + "category": "Event", + "type": "Event", + "offset": 0, + "length": 18, + "confidenceScore": 0.59, + "tags": [ + { + "name": "Event", + "confidenceScore": 0.59 + } + ] + }, + { + "text": "Worldcup", + "category": "Event", + "type": "SportsEvent", + "offset": 0, + "length": 8, + "confidenceScore": 0.51, + "tags": [ + { + "name": "Event", + "confidenceScore": 0.55 + }, + { + "name": "SportsEvent", + "confidenceScore": 0.51 + } + ] + } + ], + "id": "4", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-06-01" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityRecognitionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityRecognitionRequest.json new file mode 100644 index 000000000000..2d66323b9dad --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulEntityRecognitionRequest.json @@ -0,0 +1,339 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulEntityRecognitionRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "EntityRecognition", + "parameters": { + "modelVersion": "latest", + "overlapPolicy": { + "policyKind": "allowOverlap" + } + }, + "analysisInput": { + "documents": [ + { + "id": "2", + "language": "en", + "text": "When I was 5 years old I had $90.00 dollars to my name." + }, + { + "id": "3", + "language": "en", + "text": "When we flew from LAX it seemed like we were moving at 10 meters per second. I was lucky to see Amsterdam, Effile Tower, and the Nile." + }, + { + "id": "4", + "language": "en", + "text": "25th April Meeting was an intresting one. At least we gont to experience the WorldCup" + }, + { + "id": "5", + "language": "en", + "text": "My IP is 127.12.1.1 and my phone number is 5555555555" + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "EntityRecognitionResults", + "results": { + "documents": [ + { + "entities": [ + { + "text": "5 years old", + "category": "Numeric", + "type": "Age", + "offset": 11, + "length": 11, + "confidenceScore": 0.99, + "tags": [ + { + "name": "Numeric", + "confidenceScore": 0.99 + }, + { + "name": "Age", + "confidenceScore": 0.99 + } + ], + "metadata": { + "metadataKind": "AgeMetadata", + "unit": "Year", + "value": 5.0 + } + }, + { + "text": "$90.00", + "category": "Numeric", + "type": "Currency", + "offset": 29, + "length": 14, + "confidenceScore": 0.99, + "tags": [ + { + "name": "Numeric", + "confidenceScore": 0.99 + }, + { + "name": "Currency", + "confidenceScore": 0.99 + } + ], + "metadata": { + "metadataKind": "CurrencyMetadata", + "unit": "Dollar", + "iso4217": "USD", + "value": 90.0 + } + } + ], + "id": "2", + "warnings": [] + }, + { + "entities": [ + { + "text": "LAX", + "category": "Location", + "type": "Structural", + "offset": 18, + "length": 3, + "confidenceScore": 0.72, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.9 + }, + { + "name": "Structural", + "confidenceScore": 0.72 + } + ] + }, + { + "text": "10 meters per second", + "category": "Numeric", + "type": "Speed", + "offset": 55, + "length": 20, + "confidenceScore": 0.8, + "tags": [ + { + "name": "Dimension", + "confidenceScore": 0.84 + }, + { + "name": "Numeric", + "confidenceScore": 0.84 + }, + { + "name": "Speed", + "confidenceScore": 0.8 + } + ], + "metadata": { + "metadataKind": "SpeedMetadata", + "unit": "MetersPerSecond", + "value": 10.0 + } + }, + { + "text": "Amsterdam", + "category": "Location", + "type": "City", + "offset": 96, + "length": 9, + "confidenceScore": 0.8, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.84 + }, + { + "name": "GPE", + "confidenceScore": 0.84 + }, + { + "name": "City", + "confidenceScore": 0.8 + } + ] + }, + { + "text": "Eiffel Tower", + "category": "Location", + "type": "Structural", + "offset": 107, + "length": 12, + "confidenceScore": 0.9, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.9 + }, + { + "name": "Structural", + "confidenceScore": 0.9 + } + ] + }, + { + "text": "Nile", + "category": "Location", + "type": "Geological", + "offset": 129, + "length": 4, + "confidenceScore": 0.63, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.9 + }, + { + "name": "Geological", + "confidenceScore": 0.63 + } + ] + } + ], + "id": "3", + "warnings": [] + }, + { + "entities": [ + { + "text": "25th April", + "category": "Temporal", + "type": "Date", + "offset": 0, + "length": 10, + "confidenceScore": 0.58, + "tags": [ + { + "name": "Temporal", + "confidenceScore": 0.9 + }, + { + "name": "Date", + "confidenceScore": 0.58 + } + ], + "metadata": { + "metadataKind": "DateMetadata", + "dateValues": [ + { + "timex": "XXXX-04-25", + "value": "2022-04-25" + }, + { + "timex": "XXXX-04-25", + "value": "2023-04-25" + } + ] + } + }, + { + "text": "25th April Meeting", + "category": "Event", + "type": "Event", + "offset": 0, + "length": 18, + "confidenceScore": 0.55, + "tags": [ + { + "name": "Event", + "confidenceScore": 0.55 + } + ] + }, + { + "text": "25th April Meeting", + "category": "Event", + "type": "CulturalEvent", + "offset": 0, + "length": 18, + "confidenceScore": 0.55, + "tags": [ + { + "name": "Event", + "confidenceScore": 0.55 + }, + { + "name": "CulturalEvent", + "confidenceScore": 0.55 + } + ] + }, + { + "text": "Worldcup", + "category": "Event", + "type": "SportsEvent", + "offset": 0, + "length": 8, + "confidenceScore": 0.51, + "tags": [ + { + "name": "Event", + "confidenceScore": 0.55 + }, + { + "name": "SportsEvent", + "confidenceScore": 0.51 + } + ] + } + ], + "id": "4", + "warnings": [] + }, + { + "entities": [ + { + "text": "127.12.1.1", + "category": "IP", + "type": "IP", + "offset": 9, + "length": 10, + "confidenceScore": 0.8, + "tags": [ + { + "name": "IP", + "confidenceScore": 0.8 + } + ] + }, + { + "text": "5555555555", + "category": "PhoneNumber", + "type": "PhoneNumber", + "offset": 45, + "length": 9, + "confidenceScore": 0.8, + "tags": [ + { + "name": "PhoneNumber", + "confidenceScore": 0.8 + } + ] + } + ], + "id": "5", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-06-01" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulHealthcareDocumentTypePostRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulHealthcareDocumentTypePostRequest.json new file mode 100644 index 000000000000..96170e2b4a71 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulHealthcareDocumentTypePostRequest.json @@ -0,0 +1,38 @@ +{ + "operationId": "AnalyzeTextSubmitJob", + "title": "SuccessfulHealthcareDocumentTypePostRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "{Job ID}", + "body": { + "analysisInput": { + "documents": [ + { + "text": "Prescribed 100mg ibuprofen, taken twice daily.", + "id": "1", + "language": "en" + } + ] + }, + "tasks": [ + { + "kind": "Healthcare", + "parameters": { + "modelVersion": "latest", + "fhirVersion": "4.0.1", + "documentType": "DischargeSummary" + } + } + ] + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}?api-version=2025-11-15-preview" + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulHealthcareDocumentTypeTaskStatusRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulHealthcareDocumentTypeTaskStatusRequest.json new file mode 100644 index 000000000000..a329ecb7aa2c --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulHealthcareDocumentTypeTaskStatusRequest.json @@ -0,0 +1,554 @@ +{ + "operationId": "AnalyzeTextJobStatus", + "title": "SuccessfulHealthcareDocumentTypeTaskStatusRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "15e4a46b-62e2-4386-8d36-9c2a92bb45dd" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "createdDateTime": "2022-09-06T23:47:43Z", + "displayName": "Providing Document Type", + "expirationDateTime": "2022-09-07T23:47:43Z", + "jobId": "15e4a46b-62e2-4386-8d36-9c2a92bb45dd", + "lastUpdatedDateTime": "2022-09-06T23:48:10Z", + "status": "succeeded", + "errors": [], + "tasks": { + "completed": 1, + "failed": 0, + "inProgress": 0, + "total": 1, + "items": [ + { + "kind": "HealthcareLROResults", + "lastUpdateDateTime": "2022-09-06T23:48:10.1762027Z", + "status": "succeeded", + "results": { + "documents": [ + { + "id": "a", + "entities": [ + { + "offset": 11, + "length": 5, + "text": "100mg", + "category": "Dosage", + "confidenceScore": 0.98 + }, + { + "offset": 17, + "length": 9, + "text": "ibuprofen", + "category": "MedicationName", + "confidenceScore": 1.0, + "name": "ibuprofen", + "links": [ + { + "dataSource": "UMLS", + "id": "C0020740" + }, + { + "dataSource": "AOD", + "id": "0000019879" + }, + { + "dataSource": "ATC", + "id": "M01AE01" + }, + { + "dataSource": "CCPSS", + "id": "0046165" + }, + { + "dataSource": "CHV", + "id": "0000006519" + }, + { + "dataSource": "CSP", + "id": "2270-2077" + }, + { + "dataSource": "DRUGBANK", + "id": "DB01050" + }, + { + "dataSource": "GS", + "id": "1611" + }, + { + "dataSource": "LCH_NW", + "id": "sh97005926" + }, + { + "dataSource": "LNC", + "id": "LP16165-0" + }, + { + "dataSource": "MEDCIN", + "id": "40458" + }, + { + "dataSource": "MMSL", + "id": "d00015" + }, + { + "dataSource": "MSH", + "id": "D007052" + }, + { + "dataSource": "MTHSPL", + "id": "WK2XYI10QM" + }, + { + "dataSource": "NCI", + "id": "C561" + }, + { + "dataSource": "NCI_CTRP", + "id": "C561" + }, + { + "dataSource": "NCI_DCP", + "id": "00803" + }, + { + "dataSource": "NCI_DTP", + "id": "NSC0256857" + }, + { + "dataSource": "NCI_FDA", + "id": "WK2XYI10QM" + }, + { + "dataSource": "NCI_NCI-GLOSS", + "id": "CDR0000613511" + }, + { + "dataSource": "NDDF", + "id": "002377" + }, + { + "dataSource": "PDQ", + "id": "CDR0000040475" + }, + { + "dataSource": "RCD", + "id": "x02MO" + }, + { + "dataSource": "RXNORM", + "id": "5640" + }, + { + "dataSource": "SNM", + "id": "E-7772" + }, + { + "dataSource": "SNMI", + "id": "C-603C0" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "387207008" + }, + { + "dataSource": "USP", + "id": "m39860" + }, + { + "dataSource": "USPMG", + "id": "MTHU000060" + }, + { + "dataSource": "VANDF", + "id": "4017840" + } + ] + }, + { + "offset": 34, + "length": 11, + "text": "twice daily", + "category": "Frequency", + "confidenceScore": 1.0 + } + ], + "relations": [ + { + "confidenceScore": 1.0, + "relationType": "DosageOfMedication", + "entities": [ + { + "ref": "#/results/documents/0/entities/0", + "role": "Dosage" + }, + { + "ref": "#/results/documents/0/entities/1", + "role": "Medication" + } + ] + }, + { + "confidenceScore": 1.0, + "relationType": "FrequencyOfMedication", + "entities": [ + { + "ref": "#/results/documents/0/entities/1", + "role": "Medication" + }, + { + "ref": "#/results/documents/0/entities/2", + "role": "Frequency" + } + ] + } + ], + "warnings": [], + "fhirBundle": { + "resourceType": "Bundle", + "id": "6ee4a7c0-5911-4c4b-bea2-3c2a1fe5c65f", + "meta": { + "profile": [ + "http://hl7.org/fhir/4.0.1/StructureDefinition/Bundle" + ] + }, + "identifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:6ee4a7c0-5911-4c4b-bea2-3c2a1fe5c65f" + }, + "type": "document", + "entry": [ + { + "fullUrl": "Composition/5bd33290-b92e-4aa5-becf-535578207946", + "resource": { + "resourceType": "Composition", + "id": "5bd33290-b92e-4aa5-becf-535578207946", + "status": "final", + "type": { + "coding": [ + { + "system": "http://loinc.org", + "code": "18842-5", + "display": "Discharge summary" + } + ], + "text": "Discharge summary" + }, + "subject": { + "reference": "Patient/efcccdf7-87f0-4061-b553-09fc11734594", + "type": "Patient" + }, + "encounter": { + "reference": "Encounter/76214457-f94c-4ccf-95ef-ab31e7232d63", + "type": "Encounter", + "display": "unknown" + }, + "date": "2022-09-06", + "author": [ + { + "reference": "Practitioner/bba2dee3-2eb3-4973-b4b9-62d498b17046", + "type": "Practitioner", + "display": "Unknown" + } + ], + "title": "Discharge summary", + "section": [ + { + "title": "General", + "code": { + "coding": [ + { + "system": "", + "display": "Unrecognized Section" + } + ], + "text": "General" + }, + "text": { + "status": "additional", + "div": "
\r\n\t\t\t\t\t\t\t

General

\r\n\t\t\t\t\t\t\t

Prescribed 100mg ibuprofen, taken twice daily.

\r\n\t\t\t\t\t
" + }, + "entry": [ + { + "reference": "List/6d743a3e-e7a2-4cee-a0b5-64361b6c93ad", + "type": "List", + "display": "General" + } + ] + } + ] + } + }, + { + "fullUrl": "Practitioner/bba2dee3-2eb3-4973-b4b9-62d498b17046", + "resource": { + "resourceType": "Practitioner", + "id": "bba2dee3-2eb3-4973-b4b9-62d498b17046", + "name": [ + { + "text": "Unknown", + "family": "Unknown" + } + ] + } + }, + { + "fullUrl": "Patient/efcccdf7-87f0-4061-b553-09fc11734594", + "resource": { + "resourceType": "Patient", + "id": "efcccdf7-87f0-4061-b553-09fc11734594", + "gender": "unknown" + } + }, + { + "fullUrl": "Encounter/76214457-f94c-4ccf-95ef-ab31e7232d63", + "resource": { + "resourceType": "Encounter", + "id": "76214457-f94c-4ccf-95ef-ab31e7232d63", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" + ] + }, + "status": "finished", + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "display": "unknown" + }, + "subject": { + "reference": "Patient/efcccdf7-87f0-4061-b553-09fc11734594", + "type": "Patient" + }, + "period": { + "start": "2022-09-06", + "end": "2022-09-06" + } + } + }, + { + "fullUrl": "MedicationStatement/ac0264b6-63b7-4cf2-a7c3-f7340788aca7", + "resource": { + "resourceType": "MedicationStatement", + "id": "ac0264b6-63b7-4cf2-a7c3-f7340788aca7", + "extension": [ + { + "extension": [ + { + "url": "offset", + "valueInteger": 17 + }, + { + "url": "length", + "valueInteger": 9 + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/derivation-reference" + } + ], + "status": "active", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://www.nlm.nih.gov/research/umls", + "code": "C0020740", + "display": "ibuprofen" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/aod", + "code": "0000019879" + }, + { + "system": "http://www.whocc.no/atc", + "code": "M01AE01" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/ccpss", + "code": "0046165" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/chv", + "code": "0000006519" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/csp", + "code": "2270-2077" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/drugbank", + "code": "DB01050" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/gs", + "code": "1611" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/lch_nw", + "code": "sh97005926" + }, + { + "system": "http://loinc.org", + "code": "LP16165-0" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/medcin", + "code": "40458" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/mmsl", + "code": "d00015" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/msh", + "code": "D007052" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/mthspl", + "code": "WK2XYI10QM" + }, + { + "system": "http://ncimeta.nci.nih.gov", + "code": "C561" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/nci_ctrp", + "code": "C561" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/nci_dcp", + "code": "00803" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/nci_dtp", + "code": "NSC0256857" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/nci_fda", + "code": "WK2XYI10QM" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/nci_nci-gloss", + "code": "CDR0000613511" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/nddf", + "code": "002377" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/pdq", + "code": "CDR0000040475" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/rcd", + "code": "x02MO" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/rxnorm", + "code": "5640" + }, + { + "system": "http://snomed.info/sct", + "code": "E-7772" + }, + { + "system": "http://snomed.info/sct", + "code": "C-603C0" + }, + { + "system": "http://snomed.info/sct", + "code": "387207008" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/usp", + "code": "m39860" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/uspmg", + "code": "MTHU000060" + }, + { + "system": "http://hl7.org/fhir/ndfrt", + "code": "4017840" + } + ], + "text": "ibuprofen" + }, + "subject": { + "reference": "Patient/efcccdf7-87f0-4061-b553-09fc11734594", + "type": "Patient" + }, + "context": { + "reference": "Encounter/76214457-f94c-4ccf-95ef-ab31e7232d63", + "type": "Encounter", + "display": "unknown" + }, + "dosage": [ + { + "text": "100mg", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + }, + "code": { + "text": "twice daily" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 100 + } + } + ] + } + ] + } + }, + { + "fullUrl": "List/6d743a3e-e7a2-4cee-a0b5-64361b6c93ad", + "resource": { + "resourceType": "List", + "id": "6d743a3e-e7a2-4cee-a0b5-64361b6c93ad", + "status": "current", + "mode": "snapshot", + "title": "General", + "subject": { + "reference": "Patient/efcccdf7-87f0-4061-b553-09fc11734594", + "type": "Patient" + }, + "encounter": { + "reference": "Encounter/76214457-f94c-4ccf-95ef-ab31e7232d63", + "type": "Encounter", + "display": "unknown" + }, + "entry": [ + { + "item": { + "reference": "MedicationStatement/ac0264b6-63b7-4cf2-a7c3-f7340788aca7", + "type": "MedicationStatement", + "display": "ibuprofen" + } + } + ] + } + } + ] + } + } + ], + "errors": [], + "modelVersion": "2022-03-01" + } + } + ] + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulHealthcarePostRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulHealthcarePostRequest.json new file mode 100644 index 000000000000..9b73459845c0 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulHealthcarePostRequest.json @@ -0,0 +1,36 @@ +{ + "operationId": "AnalyzeTextSubmitJob", + "title": "SuccessfulHealthcarePostRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "{Job ID}", + "body": { + "analysisInput": { + "documents": [ + { + "text": "Prescribed 100mg ibuprofen, taken twice daily.", + "id": "1", + "language": "en" + } + ] + }, + "tasks": [ + { + "kind": "Healthcare", + "parameters": { + "modelVersion": "latest" + } + } + ] + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}?api-version=2025-11-15-preview" + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulHealthcareTaskStatusRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulHealthcareTaskStatusRequest.json new file mode 100644 index 000000000000..62069a39455c --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulHealthcareTaskStatusRequest.json @@ -0,0 +1,222 @@ +{ + "operationId": "AnalyzeTextJobStatus", + "title": "SuccessfulHealthcareTaskStatusRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "1780194a-e9c1-4298-b0d4-fdc59ba818a0" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "createdDateTime": "2022-07-20T18:43:35Z", + "displayName": "Extracting Location & US Region", + "expirationDateTime": "2022-07-21T18:43:35Z", + "jobId": "1780194a-e9c1-4298-b0d4-fdc59ba818a0", + "lastUpdatedDateTime": "2022-07-20T18:43:36Z", + "status": "succeeded", + "tasks": { + "completed": 1, + "failed": 0, + "inProgress": 0, + "total": 1, + "items": [ + { + "kind": "HealthcareLROResults", + "lastUpdateDateTime": "2022-07-20T18:43:36.7159045Z", + "status": "succeeded", + "results": { + "documents": [ + { + "id": "1", + "entities": [ + { + "offset": 11, + "length": 5, + "text": "100mg", + "category": "Dosage", + "confidenceScore": 0.98 + }, + { + "offset": 17, + "length": 9, + "text": "ibuprofen", + "category": "MedicationName", + "confidenceScore": 1, + "name": "ibuprofen", + "links": [ + { + "dataSource": "UMLS", + "id": "C0020740" + }, + { + "dataSource": "AOD", + "id": "0000019879" + }, + { + "dataSource": "ATC", + "id": "M01AE01" + }, + { + "dataSource": "CCPSS", + "id": "0046165" + }, + { + "dataSource": "CHV", + "id": "0000006519" + }, + { + "dataSource": "CSP", + "id": "2270-2077" + }, + { + "dataSource": "DRUGBANK", + "id": "DB01050" + }, + { + "dataSource": "GS", + "id": "1611" + }, + { + "dataSource": "LCH_NW", + "id": "sh97005926" + }, + { + "dataSource": "LNC", + "id": "LP16165-0" + }, + { + "dataSource": "MEDCIN", + "id": "40458" + }, + { + "dataSource": "MMSL", + "id": "d00015" + }, + { + "dataSource": "MSH", + "id": "D007052" + }, + { + "dataSource": "MTHSPL", + "id": "WK2XYI10QM" + }, + { + "dataSource": "NCI", + "id": "C561" + }, + { + "dataSource": "NCI_CTRP", + "id": "C561" + }, + { + "dataSource": "NCI_DCP", + "id": "00803" + }, + { + "dataSource": "NCI_DTP", + "id": "NSC0256857" + }, + { + "dataSource": "NCI_FDA", + "id": "WK2XYI10QM" + }, + { + "dataSource": "NCI_NCI-GLOSS", + "id": "CDR0000613511" + }, + { + "dataSource": "NDDF", + "id": "002377" + }, + { + "dataSource": "PDQ", + "id": "CDR0000040475" + }, + { + "dataSource": "RCD", + "id": "x02MO" + }, + { + "dataSource": "RXNORM", + "id": "5640" + }, + { + "dataSource": "SNM", + "id": "E-7772" + }, + { + "dataSource": "SNMI", + "id": "C-603C0" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "387207008" + }, + { + "dataSource": "USP", + "id": "m39860" + }, + { + "dataSource": "USPMG", + "id": "MTHU000060" + }, + { + "dataSource": "VANDF", + "id": "4017840" + } + ] + }, + { + "offset": 34, + "length": 11, + "text": "twice daily", + "category": "Frequency", + "confidenceScore": 1 + } + ], + "relations": [ + { + "confidenceScore": 1, + "relationType": "DosageOfMedication", + "entities": [ + { + "ref": "#/results/documents/0/entities/0", + "role": "Dosage" + }, + { + "ref": "#/results/documents/0/entities/1", + "role": "Medication" + } + ] + }, + { + "confidenceScore": 1, + "relationType": "FrequencyOfMedication", + "entities": [ + { + "ref": "#/results/documents/0/entities/1", + "role": "Medication" + }, + { + "ref": "#/results/documents/0/entities/2", + "role": "Frequency" + } + ] + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2022-03-01" + } + } + ] + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulKeyPhraseExtractionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulKeyPhraseExtractionRequest.json new file mode 100644 index 000000000000..7192359883fc --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulKeyPhraseExtractionRequest.json @@ -0,0 +1,73 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulKeyPhraseExtractionRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "KeyPhraseExtraction", + "parameters": { + "modelVersion": "latest" + }, + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "Microsoft was founded by Bill Gates and Paul Allen." + }, + { + "id": "2", + "language": "en", + "text": "Text Analytics is one of the Azure Cognitive Services." + }, + { + "id": "3", + "language": "en", + "text": "My cat might need to see a veterinarian." + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "KeyPhraseExtractionResults", + "results": { + "documents": [ + { + "id": "1", + "keyPhrases": [ + "Bill Gates", + "Paul Allen", + "Microsoft" + ], + "warnings": [] + }, + { + "id": "2", + "keyPhrases": [ + "Azure Cognitive Services", + "Text Analytics" + ], + "warnings": [] + }, + { + "id": "3", + "keyPhrases": [ + "cat", + "veterinarian" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-06-01" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulLanguageDetectionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulLanguageDetectionRequest.json new file mode 100644 index 000000000000..0ddb851aef32 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulLanguageDetectionRequest.json @@ -0,0 +1,93 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulLanguageDetectionRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "LanguageDetection", + "parameters": { + "modelVersion": "latest" + }, + "analysisInput": { + "documents": [ + { + "id": "1", + "text": "Hello world" + }, + { + "id": "2", + "text": "Bonjour tout le monde" + }, + { + "id": "3", + "text": "Hola mundo" + }, + { + "id": "4", + "text": "Tumhara naam kya hai?" + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "LanguageDetectionResults", + "results": { + "documents": [ + { + "detectedLanguage": { + "confidenceScore": 1, + "iso6391Name": "en", + "name": "English", + "scriptName": "Latin", + "scriptIso15924Code": "Latn" + }, + "id": "1", + "warnings": [] + }, + { + "detectedLanguage": { + "confidenceScore": 1, + "iso6391Name": "fr", + "name": "French", + "scriptName": "Latin", + "scriptIso15924Code": "Latn" + }, + "id": "2", + "warnings": [] + }, + { + "detectedLanguage": { + "confidenceScore": 1, + "iso6391Name": "es", + "name": "Spanish", + "scriptName": "Latin", + "scriptIso15924Code": "Latn" + }, + "id": "3", + "warnings": [] + }, + { + "detectedLanguage": { + "confidenceScore": 1, + "iso6391Name": "hi", + "name": "Hindi", + "scriptName": "Latin", + "scriptIso15924Code": "Latn" + }, + "id": "4", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2023-12-01" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulPiiEntityRecognitionExclusionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulPiiEntityRecognitionExclusionRequest.json new file mode 100644 index 000000000000..1d43b418c4b4 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulPiiEntityRecognitionExclusionRequest.json @@ -0,0 +1,101 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulPiiEntityRecognitionExclusionRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "PiiEntityRecognition", + "parameters": { + "modelVersion": "latest", + "excludePiiCategories": [ + "USSocialSecurityNumber" + ] + }, + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "My SSN is 859-98-0987" + }, + { + "id": "2", + "language": "en", + "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." + }, + { + "id": "3", + "language": "en", + "text": "Is 998.214.865-68 your Brazilian CPF number?" + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "PiiEntityRecognitionResults", + "results": { + "documents": [ + { + "id": "2", + "redactedText": "Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.", + "entities": [ + { + "category": "ABARoutingNumber", + "type": "ABARoutingNumber", + "confidenceScore": 0.75, + "length": 9, + "offset": 18, + "text": "111000025", + "tags": [ + { + "name": "Number", + "confidenceScore": 0.8 + }, + { + "name": "Numeric", + "confidenceScore": 0.8 + } + ] + } + ], + "warnings": [] + }, + { + "id": "3", + "redactedText": "Is ************** your Brazilian CPF number?", + "entities": [ + { + "category": "BRCPFNumber", + "type": "BRCPFNumber", + "confidenceScore": 0.85, + "length": 14, + "offset": 3, + "text": "998.214.865-68", + "tags": [ + { + "name": "Number", + "confidenceScore": 0.8 + }, + { + "name": "Numeric", + "confidenceScore": 0.8 + } + ] + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulPiiEntityRecognitionMaskedEntities.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulPiiEntityRecognitionMaskedEntities.json new file mode 100644 index 000000000000..758132a10606 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulPiiEntityRecognitionMaskedEntities.json @@ -0,0 +1,84 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulPiiEntityRecognitionMaskedEntitiesRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "PiiEntityRecognition", + "parameters": { + "modelVersion": "latest", + "redactionPolicies": [ + { + "policyKind": "entityMask" + } + ] + }, + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "My name is John Doe My phone number is 424 878 9192" + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "PiiEntityRecognitionResults", + "results": { + "documents": [ + { + "id": "1", + "redactedText": "My name is [PERSON_1] My phone number is [PHONENUMBER_1]", + "entities": [ + { + "category": "Person", + "type": "Person", + "tags": [ + { + "name": "Person", + "confidenceScore": 0.65 + } + ], + "length": 8, + "offset": 11, + "mask": "[Person_1]", + "maskOffset": 11, + "maskLength": 9, + "text": "John Doe", + "confidenceScore": 0.65 + }, + { + "category": "PhoneNumber", + "type": "PhoneNumber", + "tags": [ + { + "name": "PhoneNumber", + "confidenceScore": 0.8 + } + ], + "length": 12, + "offset": 36, + "mask": "[PHONENUMBER_1]", + "maskOffset": 41, + "maskLength": 13, + "text": "424 878 9192", + "confidenceScore": 0.8 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulPiiEntityRecognitionRedactionPolicyRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulPiiEntityRecognitionRedactionPolicyRequest.json new file mode 100644 index 000000000000..106d039b0b94 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulPiiEntityRecognitionRedactionPolicyRequest.json @@ -0,0 +1,129 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulPiiEntityRecognitionRedactionPolicyRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "PiiEntityRecognition", + "parameters": { + "modelVersion": "latest", + "redactionPolicies": [ + { + "policyKind": "characterMask", + "redactionCharacter": "-" + } + ] + }, + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "My SSN is 859-98-0987" + }, + { + "id": "2", + "language": "en", + "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." + }, + { + "id": "3", + "language": "en", + "text": "Is 998.214.865-68 your Brazilian CPF number?" + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "PiiEntityRecognitionResults", + "results": { + "documents": [ + { + "id": "1", + "redactedText": "My SSN is -----------", + "entities": [ + { + "category": "USSocialSecurityNumber", + "type": "USSocialSecurityNumber", + "confidenceScore": 0.65, + "length": 11, + "offset": 28, + "text": "859-98-0987", + "tags": [ + { + "name": "Number", + "confidenceScore": 0.8 + }, + { + "name": "Numeric", + "confidenceScore": 0.8 + } + ] + } + ], + "warnings": [] + }, + { + "id": "2", + "redactedText": "Your ABA number - --------- - is the first 9 digits in the lower left hand corner of your personal check.", + "entities": [ + { + "category": "ABARoutingNumber", + "type": "ABARoutingNumber", + "confidenceScore": 0.75, + "length": 9, + "offset": 18, + "text": "111000025", + "tags": [ + { + "name": "Number", + "confidenceScore": 0.8 + }, + { + "name": "Numeric", + "confidenceScore": 0.8 + } + ] + } + ], + "warnings": [] + }, + { + "id": "3", + "redactedText": "Is -------------- your Brazilian CPF number?", + "entities": [ + { + "category": "BRCPFNumber", + "type": "", + "confidenceScore": 0.85, + "length": 14, + "offset": 3, + "text": "998.214.865-68", + "tags": [ + { + "name": "Number", + "confidenceScore": 0.8 + }, + { + "name": "Numeric", + "confidenceScore": 0.8 + } + ] + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulPiiEntityRecognitionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulPiiEntityRecognitionRequest.json new file mode 100644 index 000000000000..f912d4942ffc --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulPiiEntityRecognitionRequest.json @@ -0,0 +1,123 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulPiiEntityRecognitionRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "PiiEntityRecognition", + "parameters": { + "modelVersion": "latest" + }, + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "My SSN is 859-98-0987" + }, + { + "id": "2", + "language": "en", + "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." + }, + { + "id": "3", + "language": "en", + "text": "Is 998.214.865-68 your Brazilian CPF number?" + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "PiiEntityRecognitionResults", + "results": { + "documents": [ + { + "id": "1", + "redactedText": "My SSN is ***********", + "entities": [ + { + "category": "USSocialSecurityNumber", + "type": "USSocialSecurityNumber", + "confidenceScore": 0.65, + "length": 11, + "offset": 28, + "text": "859-98-0987", + "tags": [ + { + "name": "Number", + "confidenceScore": 0.8 + }, + { + "name": "Numeric", + "confidenceScore": 0.8 + } + ] + } + ], + "warnings": [] + }, + { + "id": "2", + "redactedText": "Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.", + "entities": [ + { + "category": "ABARoutingNumber", + "type": "ABARoutingNumber", + "confidenceScore": 0.75, + "length": 9, + "offset": 18, + "text": "111000025", + "tags": [ + { + "name": "Number", + "confidenceScore": 0.8 + }, + { + "name": "Numeric", + "confidenceScore": 0.8 + } + ] + } + ], + "warnings": [] + }, + { + "id": "3", + "redactedText": "Is ************** your Brazilian CPF number?", + "entities": [ + { + "category": "BRCPFNumber", + "type": "BRCPFNumber", + "confidenceScore": 0.85, + "length": 14, + "offset": 3, + "text": "998.214.865-68", + "tags": [ + { + "name": "Number", + "confidenceScore": 0.8 + }, + { + "name": "Numeric", + "confidenceScore": 0.8 + } + ] + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulSentimentAnalysisRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulSentimentAnalysisRequest.json new file mode 100644 index 000000000000..e64a31f70ffd --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulSentimentAnalysisRequest.json @@ -0,0 +1,150 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulSentimentAnalysisRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-05-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "SentimentAnalysis", + "parameters": { + "modelVersion": "latest" + }, + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "Great atmosphere. Close to plenty of restaurants, hotels, and transit! Staff are friendly and helpful." + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "SentimentAnalysisResults", + "results": { + "documents": [ + { + "confidenceScores": { + "negative": 0, + "neutral": 0, + "positive": 1 + }, + "id": "1", + "sentences": [ + { + "targets": [ + { + "confidenceScores": { + "negative": 0, + "positive": 1 + }, + "length": 10, + "offset": 6, + "relations": [ + { + "ref": "#/documents/0/sentences/0/assessments/0", + "relationType": "assessment" + } + ], + "sentiment": "positive", + "text": "atmosphere" + } + ], + "confidenceScores": { + "negative": 0, + "neutral": 0, + "positive": 1 + }, + "length": 17, + "offset": 0, + "assessments": [ + { + "confidenceScores": { + "negative": 0, + "positive": 1 + }, + "isNegated": false, + "length": 5, + "offset": 0, + "sentiment": "positive", + "text": "great" + } + ], + "sentiment": "positive", + "text": "Great atmosphere." + }, + { + "targets": [ + { + "confidenceScores": { + "negative": 0.01, + "positive": 0.99 + }, + "length": 11, + "offset": 37, + "relations": [ + { + "ref": "#/documents/0/sentences/1/assessments/0", + "relationType": "assessment" + } + ], + "sentiment": "positive", + "text": "restaurants" + }, + { + "confidenceScores": { + "negative": 0.01, + "positive": 0.99 + }, + "length": 6, + "offset": 50, + "relations": [ + { + "ref": "#/documents/0/sentences/1/assessments/0", + "relationType": "assessment" + } + ], + "sentiment": "positive", + "text": "hotels" + } + ], + "confidenceScores": { + "negative": 0.01, + "neutral": 0.86, + "positive": 0.13 + }, + "length": 52, + "offset": 18, + "assessments": [ + { + "confidenceScores": { + "negative": 0.01, + "positive": 0.99 + }, + "isNegated": false, + "length": 15, + "offset": 18, + "sentiment": "positive", + "text": "Close to plenty" + } + ], + "sentiment": "neutral", + "text": "Close to plenty of restaurants, hotels, and transit!" + } + ], + "sentiment": "positive", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-10-01" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/analyzetext.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/analyzetext.json index fb8550f9fd84..8cbe40535247 100644 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/analyzetext.json +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/analyzetext.json @@ -106,6 +106,47 @@ } } } + }, + "x-ms-examples": { + "SuccessfulEntityLinkingRequest": { + "$ref": "./examples/SuccessfulEntityLinkingRequest.json" + }, + "SuccessfulEntityRecognitionExclusionRequest": { + "$ref": "./examples/SuccessfulEntityRecognitionExclusionRequest.json" + }, + "SuccessfulEntityRecognitionInclusionRequest": { + "$ref": "./examples/SuccessfulEntityRecognitionInclusionRequest.json" + }, + "SuccessfulEntityRecognitionInferenceOptionsRequest": { + "$ref": "./examples/SuccessfulEntityRecognitionInferenceOptionsRequest.json" + }, + "SuccessfulEntityRecognitionOverlapPolicy": { + "$ref": "./examples/SuccessfulEntityRecognitionOverlapPolicy.json" + }, + "SuccessfulEntityRecognitionRequest": { + "$ref": "./examples/SuccessfulEntityRecognitionRequest.json" + }, + "SuccessfulKeyPhraseExtractionRequest": { + "$ref": "./examples/SuccessfulKeyPhraseExtractionRequest.json" + }, + "SuccessfulLanguageDetectionRequest": { + "$ref": "./examples/SuccessfulLanguageDetectionRequest.json" + }, + "SuccessfulPiiEntityRecognitionExclusionRequest": { + "$ref": "./examples/SuccessfulPiiEntityRecognitionExclusionRequest.json" + }, + "SuccessfulPiiEntityRecognitionMaskedEntitiesRequest": { + "$ref": "./examples/SuccessfulPiiEntityRecognitionMaskedEntities.json" + }, + "SuccessfulPiiEntityRecognitionRedactionPolicyRequest": { + "$ref": "./examples/SuccessfulPiiEntityRecognitionRedactionPolicyRequest.json" + }, + "SuccessfulPiiEntityRecognitionRequest": { + "$ref": "./examples/SuccessfulPiiEntityRecognitionRequest.json" + }, + "SuccessfulSentimentAnalysisRequest": { + "$ref": "./examples/SuccessfulSentimentAnalysisRequest.json" + } } } }, @@ -150,6 +191,23 @@ } } }, + "x-ms-examples": { + "SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit": { + "$ref": "./examples/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit.json" + }, + "SuccessfulAbstractiveSummarizationTaskSubmit": { + "$ref": "./examples/SuccessfulAbstractiveSummarizationTaskSubmit.json" + }, + "SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest": { + "$ref": "./examples/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json" + }, + "SuccessfulHealthcareDocumentTypePostRequest": { + "$ref": "./examples/SuccessfulHealthcareDocumentTypePostRequest.json" + }, + "SuccessfulHealthcarePostRequest": { + "$ref": "./examples/SuccessfulHealthcarePostRequest.json" + } + }, "x-ms-long-running-operation": true } }, @@ -213,6 +271,23 @@ } } } + }, + "x-ms-examples": { + "SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult": { + "$ref": "./examples/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult.json" + }, + "SuccessfulAbstractiveSummarizationTaskResult": { + "$ref": "./examples/SuccessfulAbstractiveSummarizationTaskResult.json" + }, + "SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest": { + "$ref": "./examples/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json" + }, + "SuccessfulHealthcareDocumentTypeTaskStatusRequest": { + "$ref": "./examples/SuccessfulHealthcareDocumentTypeTaskStatusRequest.json" + }, + "SuccessfulHealthcareTaskStatusRequest": { + "$ref": "./examples/SuccessfulHealthcareTaskStatusRequest.json" + } } } }, @@ -258,6 +333,11 @@ } } }, + "x-ms-examples": { + "SuccessfulAnalyzeTextJobsCancelRequest": { + "$ref": "./examples/SuccessfulAnalyzeTextJobsCancelRequest.json" + } + }, "x-ms-long-running-operation": true } } diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult.json new file mode 100644 index 000000000000..8691b50233d4 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult.json @@ -0,0 +1,58 @@ +{ + "operationId": "AnalyzeTextJobStatus", + "title": "SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "createdDateTime": "2020-10-01T15:00:45Z", + "displayName": "Document Abstractive Summarization Task Example", + "expirationDateTime": "2020-10-03T15:01:03Z", + "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18", + "lastUpdatedDateTime": "2020-10-01T15:01:03Z", + "status": "succeeded", + "tasks": { + "completed": 1, + "failed": 0, + "inProgress": 0, + "total": 1, + "items": [ + { + "kind": "AbstractiveSummarizationLROResults", + "taskName": "Document Abstractive Summarization Task 1", + "lastUpdateDateTime": "2020-10-01T15:01:03Z", + "status": "succeeded", + "results": { + "documents": [ + { + "summaries": [ + { + "text": "XYZ-code is a joint representation of human cognition and language, which Microsoft aims to develop for cross-domain transfer learning. Learn how XYz-code can help Microsoft achieve cross-sensory and multilingual learning with human-centric approach.", + "contexts": [ + { + "offset": 0, + "length": 1619 + } + ] + } + ], + "id": "1", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "latest" + } + } + ] + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit.json new file mode 100644 index 000000000000..4648c203dcaf --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit.json @@ -0,0 +1,39 @@ +{ + "operationId": "AnalyzeTextSubmitJob", + "title": "SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "{Job ID}", + "body": { + "displayName": "Document Abstractive Summarization Task Example", + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there is magic—what we call XYZ-code as illustrated in Figure 1—a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pre-trained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multi-sensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks." + } + ] + }, + "tasks": [ + { + "kind": "AbstractiveSummarization", + "taskName": "Document Abstractive Summarization Task 1", + "parameters": { + "summaryLength": "medium", + "instruction": "XYZ-code" + } + } + ] + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "{endpoint}/language/analyze-text/jobs/{jobId}?api-version=2025-11-15-preview" + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAbstractiveSummarizationTaskResult.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAbstractiveSummarizationTaskResult.json new file mode 100644 index 000000000000..85f56d9496af --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAbstractiveSummarizationTaskResult.json @@ -0,0 +1,58 @@ +{ + "operationId": "AnalyzeTextJobStatus", + "title": "SuccessfulAbstractiveSummarizationTaskResult", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "createdDateTime": "2020-10-01T15:00:45Z", + "displayName": "Document Abstractive Summarization Task Example", + "expirationDateTime": "2020-10-03T15:01:03Z", + "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18", + "lastUpdatedDateTime": "2020-10-01T15:01:03Z", + "status": "succeeded", + "tasks": { + "completed": 1, + "failed": 0, + "inProgress": 0, + "total": 1, + "items": [ + { + "kind": "AbstractiveSummarizationLROResults", + "taskName": "Document Abstractive Summarization Task 1", + "lastUpdateDateTime": "2020-10-01T15:01:03Z", + "status": "succeeded", + "results": { + "documents": [ + { + "summaries": [ + { + "text": "Microsoft have been on a quest to advance AI beyond existing techniques.", + "contexts": [ + { + "offset": 0, + "length": 1629 + } + ] + } + ], + "id": "1", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "latest" + } + } + ] + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAbstractiveSummarizationTaskSubmit.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAbstractiveSummarizationTaskSubmit.json new file mode 100644 index 000000000000..a4a0462a1afb --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAbstractiveSummarizationTaskSubmit.json @@ -0,0 +1,38 @@ +{ + "operationId": "AnalyzeTextSubmitJob", + "title": "SuccessfulAbstractiveSummarizationTaskSubmit", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "{Job ID}", + "body": { + "displayName": "Document Abstractive Summarization Task Example", + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there is magic—what we call XYZ-code as illustrated in Figure 1—a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pre-trained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multi-sensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks." + } + ] + }, + "tasks": [ + { + "kind": "AbstractiveSummarization", + "taskName": "Document Abstractive Summarization Task 1", + "parameters": { + "sentenceCount": 1 + } + } + ] + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "{endpoint}/language/analyze-text/jobs/{jobId}?api-version=2025-11-15-preview" + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAnalyzeTextJobsCancelRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAnalyzeTextJobsCancelRequest.json new file mode 100644 index 000000000000..a5e2907049cf --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAnalyzeTextJobsCancelRequest.json @@ -0,0 +1,17 @@ +{ + "operationId": "AnalyzeTextCancelJob", + "title": "SuccessfulAnalyzeTextJobsCancelRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18" + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}?api-version=2023-11-15-preview" + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json new file mode 100644 index 000000000000..9f381ea354f9 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json @@ -0,0 +1,180 @@ +{ + "operationId": "AnalyzeTextJobStatus", + "title": "SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "createdDateTime": "2020-10-01T15:00:45Z", + "displayName": "Extracting Location & US Region", + "expirationDateTime": "2020-10-03T15:01:03Z", + "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18", + "lastUpdatedDateTime": "2020-10-01T15:01:03Z", + "status": "succeeded", + "tasks": { + "completed": 2, + "failed": 0, + "inProgress": 0, + "total": 2, + "items": [ + { + "kind": "EntityRecognitionLROResults", + "taskName": "Recognize Entities", + "lastUpdateDateTime": "2020-10-01T15:01:03Z", + "status": "succeeded", + "results": { + "documents": [ + { + "entities": [ + { + "category": "Event", + "type": "Event", + "confidenceScore": 0.61, + "length": 4, + "offset": 18, + "text": "trip", + "tags": [ + { + "name": "Event", + "confidenceScore": 0.61 + } + ] + }, + { + "category": "Location", + "type": "GPE", + "confidenceScore": 0.82, + "length": 7, + "offset": 26, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.82 + }, + { + "name": "GPE", + "confidenceScore": 0.82 + } + ], + "text": "Seattle" + }, + { + "category": "Temporal", + "type": "DateRange", + "confidenceScore": 0.8, + "length": 9, + "offset": 34, + "text": "last week", + "tags": [ + { + "name": "DateRange", + "confidenceScore": 0.8 + }, + { + "name": "Temporal", + "confidenceScore": 0.8 + } + ] + } + ], + "id": "1", + "warnings": [] + }, + { + "entities": [ + { + "category": "Location", + "type": "GPE", + "confidenceScore": 0.52, + "length": 3, + "offset": 14, + "text": "NYC", + "tags": [ + { + "name": "Location", + "confidenceScore": 0.82 + }, + { + "name": "GPE", + "confidenceScore": 0.82 + } + ] + }, + { + "category": "Temporal", + "type": "Date", + "confidenceScore": 0.8, + "length": 8, + "offset": 18, + "text": "tomorrow", + "tags": [ + { + "name": "Date", + "confidenceScore": 0.8 + }, + { + "name": "Temporal", + "confidenceScore": 0.8 + } + ] + } + ], + "id": "2", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-04-01" + } + }, + { + "kind": "CustomEntityRecognitionLROResults", + "taskName": "Recognize US Regions", + "lastUpdateDateTime": "2020-10-01T15:01:03Z", + "status": "succeeded", + "results": { + "documents": [ + { + "entities": [ + { + "category": "USRegion", + "confidenceScore": 0.85, + "length": 17, + "offset": 45, + "text": "Pacific Northwest" + } + ], + "id": "1", + "warnings": [] + }, + { + "entities": [ + { + "category": "USRegion", + "confidenceScore": 0.88, + "length": 10, + "offset": 63, + "text": "East Coast" + } + ], + "id": "2", + "warnings": [] + } + ], + "errors": [], + "projectName": "MyProject", + "deploymentName": "MyDeployment" + } + } + ] + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json new file mode 100644 index 000000000000..d8cd0e03fd5b --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json @@ -0,0 +1,51 @@ +{ + "operationId": "AnalyzeTextSubmitJob", + "title": "SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "{Job ID}", + "body": { + "displayName": "Extracting Location & US Region", + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "I had a wonderful trip to Seattle last week." + }, + { + "id": "2", + "language": "en", + "text": "I'm flying to NYC tomorrow. See you there." + } + ] + }, + "tasks": [ + { + "kind": "EntityRecognition", + "taskName": "Recognize Entities", + "parameters": { + "modelVersion": "latest" + } + }, + { + "kind": "CustomEntityRecognition", + "taskName": "Recognize US Regions", + "parameters": { + "projectName": "MyProject", + "deploymentName": "MyDeployment" + } + } + ] + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "{endpoint}/language/analyze-text/jobs/{jobId}?api-version=2025-11-15-preview" + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityLinkingRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityLinkingRequest.json new file mode 100644 index 000000000000..1f449ea663cf --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityLinkingRequest.json @@ -0,0 +1,130 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulEntityLinkingRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "EntityLinking", + "parameters": { + "modelVersion": "latest" + }, + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "Microsoft was founded by Bill Gates and Paul Allen." + }, + { + "id": "2", + "language": "en", + "text": "Pike place market is my favorite Seattle attraction." + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "EntityLinkingResults", + "results": { + "documents": [ + { + "entities": [ + { + "dataSource": "Wikipedia", + "id": "Bill Gates", + "language": "en", + "matches": [ + { + "confidenceScore": 0.52, + "length": 10, + "offset": 25, + "text": "Bill Gates" + } + ], + "name": "Bill Gates", + "url": "https://en.wikipedia.org/wiki/Bill_Gates" + }, + { + "dataSource": "Wikipedia", + "id": "Paul Allen", + "language": "en", + "matches": [ + { + "confidenceScore": 0.54, + "length": 10, + "offset": 40, + "text": "Paul Allen" + } + ], + "name": "Paul Allen", + "url": "https://en.wikipedia.org/wiki/Paul_Allen" + }, + { + "dataSource": "Wikipedia", + "id": "Microsoft", + "language": "en", + "matches": [ + { + "confidenceScore": 0.49, + "length": 9, + "offset": 0, + "text": "Microsoft" + } + ], + "name": "Microsoft", + "url": "https://en.wikipedia.org/wiki/Microsoft" + } + ], + "id": "1", + "warnings": [] + }, + { + "entities": [ + { + "dataSource": "Wikipedia", + "id": "Pike Place Market", + "language": "en", + "matches": [ + { + "confidenceScore": 0.86, + "length": 17, + "offset": 0, + "text": "Pike place market" + } + ], + "name": "Pike Place Market", + "url": "https://en.wikipedia.org/wiki/Pike_Place_Market" + }, + { + "dataSource": "Wikipedia", + "id": "Seattle", + "language": "en", + "matches": [ + { + "confidenceScore": 0.27, + "length": 7, + "offset": 33, + "text": "Seattle" + } + ], + "name": "Seattle", + "url": "https://en.wikipedia.org/wiki/Seattle" + } + ], + "id": "2", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2020-02-01" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityRecognitionExclusionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityRecognitionExclusionRequest.json new file mode 100644 index 000000000000..c373dd738e78 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityRecognitionExclusionRequest.json @@ -0,0 +1,136 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulEntityRecognitionExclusionRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "EntityRecognition", + "parameters": { + "modelVersion": "latest", + "exclusionList": [ + "Numeric" + ], + "overlapPolicy": { + "policyKind": "allowOverlap" + } + }, + "analysisInput": { + "documents": [ + { + "id": "2", + "language": "en", + "text": "When I was 5 years old I had $90.00 dollars to my name." + }, + { + "id": "3", + "language": "en", + "text": "When we flew from LAX it seemed like we were moving at 10 meters per second. I was lucky to see Amsterdam, Effile Tower, and the Nile." + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "EntityRecognitionResults", + "results": { + "documents": [ + { + "entities": [], + "id": "2", + "warnings": [] + }, + { + "entities": [ + { + "text": "LAX", + "category": "Location", + "type": "Airport", + "offset": 18, + "length": 3, + "confidenceScore": 0.72, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.9 + }, + { + "name": "Structural", + "confidenceScore": 0.72 + } + ] + }, + { + "text": "Amsterdam", + "category": "Location", + "type": "City", + "offset": 96, + "length": 9, + "confidenceScore": 0.8, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.84 + }, + { + "name": "GPE", + "confidenceScore": 0.84 + }, + { + "name": "City", + "confidenceScore": 0.8 + } + ] + }, + { + "text": "Eiffel Tower", + "category": "Location", + "type": "Structural", + "offset": 107, + "length": 12, + "confidenceScore": 0.9, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.9 + }, + { + "name": "Structural", + "confidenceScore": 0.9 + } + ] + }, + { + "text": "Nile", + "category": "Location", + "type": "Geological", + "offset": 129, + "length": 4, + "confidenceScore": 0.63, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.9 + }, + { + "name": "Geological", + "confidenceScore": 0.63 + } + ] + } + ], + "id": "3", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-06-01" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityRecognitionInclusionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityRecognitionInclusionRequest.json new file mode 100644 index 000000000000..fe6a8c90a10d --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityRecognitionInclusionRequest.json @@ -0,0 +1,133 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulEntityRecognitionInclusionRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "EntityRecognition", + "parameters": { + "modelVersion": "latest", + "inclusionList": [ + "Location" + ] + }, + "analysisInput": { + "documents": [ + { + "id": "2", + "language": "en", + "text": "When I was 5 years old I had $90.00 dollars to my name." + }, + { + "id": "3", + "language": "en", + "text": "When we flew from LAX it seemed like we were moving at 10 meters per second. I was lucky to see Amsterdam, Effile Tower, and the Nile." + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "EntityRecognitionResults", + "results": { + "documents": [ + { + "entities": [], + "id": "2", + "warnings": [] + }, + { + "entities": [ + { + "text": "LAX", + "category": "Location", + "type": "Structural", + "offset": 18, + "length": 3, + "confidenceScore": 0.72, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.9 + }, + { + "name": "Structural", + "confidenceScore": 0.72 + } + ] + }, + { + "text": "Amsterdam", + "category": "Location", + "type": "City", + "offset": 96, + "length": 9, + "confidenceScore": 0.8, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.84 + }, + { + "name": "GPE", + "confidenceScore": 0.84 + }, + { + "name": "City", + "confidenceScore": 0.8 + } + ] + }, + { + "text": "Eiffel Tower", + "category": "Location", + "type": "Structural", + "offset": 107, + "length": 12, + "confidenceScore": 0.9, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.9 + }, + { + "name": "Structural", + "confidenceScore": 0.9 + } + ] + }, + { + "text": "Nile", + "category": "Location", + "type": "Geological", + "offset": 129, + "length": 4, + "confidenceScore": 0.63, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.9 + }, + { + "name": "Geological", + "confidenceScore": 0.63 + } + ] + } + ], + "id": "3", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-06-01" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityRecognitionInferenceOptionsRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityRecognitionInferenceOptionsRequest.json new file mode 100644 index 000000000000..ea7598b3f798 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityRecognitionInferenceOptionsRequest.json @@ -0,0 +1,83 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulEntityRecognitionInferenceOptionsRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "EntityRecognition", + "parameters": { + "modelVersion": "latest", + "inferenceOptions": { + "excludeNormalizedValues": true + } + }, + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "When I was 5 years old I had $90.00 dollars to my name." + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "EntityRecognitionResults", + "results": { + "documents": [ + { + "entities": [ + { + "text": "5 years old", + "category": "Numeric", + "type": "Age", + "offset": 11, + "length": 11, + "confidenceScore": 0.99, + "tags": [ + { + "name": "Numeric", + "confidenceScore": 0.99 + }, + { + "name": "Age", + "confidenceScore": 0.99 + } + ] + }, + { + "text": "$90.00", + "category": "Numeric", + "type": "Currency", + "offset": 29, + "length": 14, + "confidenceScore": 0.99, + "tags": [ + { + "name": "Numeric", + "confidenceScore": 0.99 + }, + { + "name": "Currency", + "confidenceScore": 0.99 + } + ] + } + ], + "id": "1", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2023-09-01" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityRecognitionOverlapPolicy.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityRecognitionOverlapPolicy.json new file mode 100644 index 000000000000..ca8e051e2129 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityRecognitionOverlapPolicy.json @@ -0,0 +1,79 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulEntityRecognitionOverlapPolicy", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "EntityRecognition", + "parameters": { + "modelVersion": "latest", + "overlapPolicy": { + "policyKind": "matchLongest" + } + }, + "analysisInput": { + "documents": [ + { + "id": "4", + "language": "en", + "text": "25th April Meeting was an intresting one. At least we gont to experience the WorldCup" + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "EntityRecognitionResults", + "results": { + "documents": [ + { + "entities": [ + { + "text": "25th April Meeting", + "category": "Event", + "type": "Event", + "offset": 0, + "length": 18, + "confidenceScore": 0.59, + "tags": [ + { + "name": "Event", + "confidenceScore": 0.59 + } + ] + }, + { + "text": "Worldcup", + "category": "Event", + "type": "SportsEvent", + "offset": 0, + "length": 8, + "confidenceScore": 0.51, + "tags": [ + { + "name": "Event", + "confidenceScore": 0.55 + }, + { + "name": "SportsEvent", + "confidenceScore": 0.51 + } + ] + } + ], + "id": "4", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-06-01" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityRecognitionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityRecognitionRequest.json new file mode 100644 index 000000000000..2d66323b9dad --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulEntityRecognitionRequest.json @@ -0,0 +1,339 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulEntityRecognitionRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "EntityRecognition", + "parameters": { + "modelVersion": "latest", + "overlapPolicy": { + "policyKind": "allowOverlap" + } + }, + "analysisInput": { + "documents": [ + { + "id": "2", + "language": "en", + "text": "When I was 5 years old I had $90.00 dollars to my name." + }, + { + "id": "3", + "language": "en", + "text": "When we flew from LAX it seemed like we were moving at 10 meters per second. I was lucky to see Amsterdam, Effile Tower, and the Nile." + }, + { + "id": "4", + "language": "en", + "text": "25th April Meeting was an intresting one. At least we gont to experience the WorldCup" + }, + { + "id": "5", + "language": "en", + "text": "My IP is 127.12.1.1 and my phone number is 5555555555" + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "EntityRecognitionResults", + "results": { + "documents": [ + { + "entities": [ + { + "text": "5 years old", + "category": "Numeric", + "type": "Age", + "offset": 11, + "length": 11, + "confidenceScore": 0.99, + "tags": [ + { + "name": "Numeric", + "confidenceScore": 0.99 + }, + { + "name": "Age", + "confidenceScore": 0.99 + } + ], + "metadata": { + "metadataKind": "AgeMetadata", + "unit": "Year", + "value": 5.0 + } + }, + { + "text": "$90.00", + "category": "Numeric", + "type": "Currency", + "offset": 29, + "length": 14, + "confidenceScore": 0.99, + "tags": [ + { + "name": "Numeric", + "confidenceScore": 0.99 + }, + { + "name": "Currency", + "confidenceScore": 0.99 + } + ], + "metadata": { + "metadataKind": "CurrencyMetadata", + "unit": "Dollar", + "iso4217": "USD", + "value": 90.0 + } + } + ], + "id": "2", + "warnings": [] + }, + { + "entities": [ + { + "text": "LAX", + "category": "Location", + "type": "Structural", + "offset": 18, + "length": 3, + "confidenceScore": 0.72, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.9 + }, + { + "name": "Structural", + "confidenceScore": 0.72 + } + ] + }, + { + "text": "10 meters per second", + "category": "Numeric", + "type": "Speed", + "offset": 55, + "length": 20, + "confidenceScore": 0.8, + "tags": [ + { + "name": "Dimension", + "confidenceScore": 0.84 + }, + { + "name": "Numeric", + "confidenceScore": 0.84 + }, + { + "name": "Speed", + "confidenceScore": 0.8 + } + ], + "metadata": { + "metadataKind": "SpeedMetadata", + "unit": "MetersPerSecond", + "value": 10.0 + } + }, + { + "text": "Amsterdam", + "category": "Location", + "type": "City", + "offset": 96, + "length": 9, + "confidenceScore": 0.8, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.84 + }, + { + "name": "GPE", + "confidenceScore": 0.84 + }, + { + "name": "City", + "confidenceScore": 0.8 + } + ] + }, + { + "text": "Eiffel Tower", + "category": "Location", + "type": "Structural", + "offset": 107, + "length": 12, + "confidenceScore": 0.9, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.9 + }, + { + "name": "Structural", + "confidenceScore": 0.9 + } + ] + }, + { + "text": "Nile", + "category": "Location", + "type": "Geological", + "offset": 129, + "length": 4, + "confidenceScore": 0.63, + "tags": [ + { + "name": "Location", + "confidenceScore": 0.9 + }, + { + "name": "Geological", + "confidenceScore": 0.63 + } + ] + } + ], + "id": "3", + "warnings": [] + }, + { + "entities": [ + { + "text": "25th April", + "category": "Temporal", + "type": "Date", + "offset": 0, + "length": 10, + "confidenceScore": 0.58, + "tags": [ + { + "name": "Temporal", + "confidenceScore": 0.9 + }, + { + "name": "Date", + "confidenceScore": 0.58 + } + ], + "metadata": { + "metadataKind": "DateMetadata", + "dateValues": [ + { + "timex": "XXXX-04-25", + "value": "2022-04-25" + }, + { + "timex": "XXXX-04-25", + "value": "2023-04-25" + } + ] + } + }, + { + "text": "25th April Meeting", + "category": "Event", + "type": "Event", + "offset": 0, + "length": 18, + "confidenceScore": 0.55, + "tags": [ + { + "name": "Event", + "confidenceScore": 0.55 + } + ] + }, + { + "text": "25th April Meeting", + "category": "Event", + "type": "CulturalEvent", + "offset": 0, + "length": 18, + "confidenceScore": 0.55, + "tags": [ + { + "name": "Event", + "confidenceScore": 0.55 + }, + { + "name": "CulturalEvent", + "confidenceScore": 0.55 + } + ] + }, + { + "text": "Worldcup", + "category": "Event", + "type": "SportsEvent", + "offset": 0, + "length": 8, + "confidenceScore": 0.51, + "tags": [ + { + "name": "Event", + "confidenceScore": 0.55 + }, + { + "name": "SportsEvent", + "confidenceScore": 0.51 + } + ] + } + ], + "id": "4", + "warnings": [] + }, + { + "entities": [ + { + "text": "127.12.1.1", + "category": "IP", + "type": "IP", + "offset": 9, + "length": 10, + "confidenceScore": 0.8, + "tags": [ + { + "name": "IP", + "confidenceScore": 0.8 + } + ] + }, + { + "text": "5555555555", + "category": "PhoneNumber", + "type": "PhoneNumber", + "offset": 45, + "length": 9, + "confidenceScore": 0.8, + "tags": [ + { + "name": "PhoneNumber", + "confidenceScore": 0.8 + } + ] + } + ], + "id": "5", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-06-01" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulHealthcareDocumentTypePostRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulHealthcareDocumentTypePostRequest.json new file mode 100644 index 000000000000..96170e2b4a71 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulHealthcareDocumentTypePostRequest.json @@ -0,0 +1,38 @@ +{ + "operationId": "AnalyzeTextSubmitJob", + "title": "SuccessfulHealthcareDocumentTypePostRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "{Job ID}", + "body": { + "analysisInput": { + "documents": [ + { + "text": "Prescribed 100mg ibuprofen, taken twice daily.", + "id": "1", + "language": "en" + } + ] + }, + "tasks": [ + { + "kind": "Healthcare", + "parameters": { + "modelVersion": "latest", + "fhirVersion": "4.0.1", + "documentType": "DischargeSummary" + } + } + ] + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}?api-version=2025-11-15-preview" + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulHealthcareDocumentTypeTaskStatusRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulHealthcareDocumentTypeTaskStatusRequest.json new file mode 100644 index 000000000000..a329ecb7aa2c --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulHealthcareDocumentTypeTaskStatusRequest.json @@ -0,0 +1,554 @@ +{ + "operationId": "AnalyzeTextJobStatus", + "title": "SuccessfulHealthcareDocumentTypeTaskStatusRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "15e4a46b-62e2-4386-8d36-9c2a92bb45dd" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "createdDateTime": "2022-09-06T23:47:43Z", + "displayName": "Providing Document Type", + "expirationDateTime": "2022-09-07T23:47:43Z", + "jobId": "15e4a46b-62e2-4386-8d36-9c2a92bb45dd", + "lastUpdatedDateTime": "2022-09-06T23:48:10Z", + "status": "succeeded", + "errors": [], + "tasks": { + "completed": 1, + "failed": 0, + "inProgress": 0, + "total": 1, + "items": [ + { + "kind": "HealthcareLROResults", + "lastUpdateDateTime": "2022-09-06T23:48:10.1762027Z", + "status": "succeeded", + "results": { + "documents": [ + { + "id": "a", + "entities": [ + { + "offset": 11, + "length": 5, + "text": "100mg", + "category": "Dosage", + "confidenceScore": 0.98 + }, + { + "offset": 17, + "length": 9, + "text": "ibuprofen", + "category": "MedicationName", + "confidenceScore": 1.0, + "name": "ibuprofen", + "links": [ + { + "dataSource": "UMLS", + "id": "C0020740" + }, + { + "dataSource": "AOD", + "id": "0000019879" + }, + { + "dataSource": "ATC", + "id": "M01AE01" + }, + { + "dataSource": "CCPSS", + "id": "0046165" + }, + { + "dataSource": "CHV", + "id": "0000006519" + }, + { + "dataSource": "CSP", + "id": "2270-2077" + }, + { + "dataSource": "DRUGBANK", + "id": "DB01050" + }, + { + "dataSource": "GS", + "id": "1611" + }, + { + "dataSource": "LCH_NW", + "id": "sh97005926" + }, + { + "dataSource": "LNC", + "id": "LP16165-0" + }, + { + "dataSource": "MEDCIN", + "id": "40458" + }, + { + "dataSource": "MMSL", + "id": "d00015" + }, + { + "dataSource": "MSH", + "id": "D007052" + }, + { + "dataSource": "MTHSPL", + "id": "WK2XYI10QM" + }, + { + "dataSource": "NCI", + "id": "C561" + }, + { + "dataSource": "NCI_CTRP", + "id": "C561" + }, + { + "dataSource": "NCI_DCP", + "id": "00803" + }, + { + "dataSource": "NCI_DTP", + "id": "NSC0256857" + }, + { + "dataSource": "NCI_FDA", + "id": "WK2XYI10QM" + }, + { + "dataSource": "NCI_NCI-GLOSS", + "id": "CDR0000613511" + }, + { + "dataSource": "NDDF", + "id": "002377" + }, + { + "dataSource": "PDQ", + "id": "CDR0000040475" + }, + { + "dataSource": "RCD", + "id": "x02MO" + }, + { + "dataSource": "RXNORM", + "id": "5640" + }, + { + "dataSource": "SNM", + "id": "E-7772" + }, + { + "dataSource": "SNMI", + "id": "C-603C0" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "387207008" + }, + { + "dataSource": "USP", + "id": "m39860" + }, + { + "dataSource": "USPMG", + "id": "MTHU000060" + }, + { + "dataSource": "VANDF", + "id": "4017840" + } + ] + }, + { + "offset": 34, + "length": 11, + "text": "twice daily", + "category": "Frequency", + "confidenceScore": 1.0 + } + ], + "relations": [ + { + "confidenceScore": 1.0, + "relationType": "DosageOfMedication", + "entities": [ + { + "ref": "#/results/documents/0/entities/0", + "role": "Dosage" + }, + { + "ref": "#/results/documents/0/entities/1", + "role": "Medication" + } + ] + }, + { + "confidenceScore": 1.0, + "relationType": "FrequencyOfMedication", + "entities": [ + { + "ref": "#/results/documents/0/entities/1", + "role": "Medication" + }, + { + "ref": "#/results/documents/0/entities/2", + "role": "Frequency" + } + ] + } + ], + "warnings": [], + "fhirBundle": { + "resourceType": "Bundle", + "id": "6ee4a7c0-5911-4c4b-bea2-3c2a1fe5c65f", + "meta": { + "profile": [ + "http://hl7.org/fhir/4.0.1/StructureDefinition/Bundle" + ] + }, + "identifier": { + "system": "urn:ietf:rfc:3986", + "value": "urn:uuid:6ee4a7c0-5911-4c4b-bea2-3c2a1fe5c65f" + }, + "type": "document", + "entry": [ + { + "fullUrl": "Composition/5bd33290-b92e-4aa5-becf-535578207946", + "resource": { + "resourceType": "Composition", + "id": "5bd33290-b92e-4aa5-becf-535578207946", + "status": "final", + "type": { + "coding": [ + { + "system": "http://loinc.org", + "code": "18842-5", + "display": "Discharge summary" + } + ], + "text": "Discharge summary" + }, + "subject": { + "reference": "Patient/efcccdf7-87f0-4061-b553-09fc11734594", + "type": "Patient" + }, + "encounter": { + "reference": "Encounter/76214457-f94c-4ccf-95ef-ab31e7232d63", + "type": "Encounter", + "display": "unknown" + }, + "date": "2022-09-06", + "author": [ + { + "reference": "Practitioner/bba2dee3-2eb3-4973-b4b9-62d498b17046", + "type": "Practitioner", + "display": "Unknown" + } + ], + "title": "Discharge summary", + "section": [ + { + "title": "General", + "code": { + "coding": [ + { + "system": "", + "display": "Unrecognized Section" + } + ], + "text": "General" + }, + "text": { + "status": "additional", + "div": "
\r\n\t\t\t\t\t\t\t

General

\r\n\t\t\t\t\t\t\t

Prescribed 100mg ibuprofen, taken twice daily.

\r\n\t\t\t\t\t
" + }, + "entry": [ + { + "reference": "List/6d743a3e-e7a2-4cee-a0b5-64361b6c93ad", + "type": "List", + "display": "General" + } + ] + } + ] + } + }, + { + "fullUrl": "Practitioner/bba2dee3-2eb3-4973-b4b9-62d498b17046", + "resource": { + "resourceType": "Practitioner", + "id": "bba2dee3-2eb3-4973-b4b9-62d498b17046", + "name": [ + { + "text": "Unknown", + "family": "Unknown" + } + ] + } + }, + { + "fullUrl": "Patient/efcccdf7-87f0-4061-b553-09fc11734594", + "resource": { + "resourceType": "Patient", + "id": "efcccdf7-87f0-4061-b553-09fc11734594", + "gender": "unknown" + } + }, + { + "fullUrl": "Encounter/76214457-f94c-4ccf-95ef-ab31e7232d63", + "resource": { + "resourceType": "Encounter", + "id": "76214457-f94c-4ccf-95ef-ab31e7232d63", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" + ] + }, + "status": "finished", + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "display": "unknown" + }, + "subject": { + "reference": "Patient/efcccdf7-87f0-4061-b553-09fc11734594", + "type": "Patient" + }, + "period": { + "start": "2022-09-06", + "end": "2022-09-06" + } + } + }, + { + "fullUrl": "MedicationStatement/ac0264b6-63b7-4cf2-a7c3-f7340788aca7", + "resource": { + "resourceType": "MedicationStatement", + "id": "ac0264b6-63b7-4cf2-a7c3-f7340788aca7", + "extension": [ + { + "extension": [ + { + "url": "offset", + "valueInteger": 17 + }, + { + "url": "length", + "valueInteger": 9 + } + ], + "url": "http://hl7.org/fhir/StructureDefinition/derivation-reference" + } + ], + "status": "active", + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://www.nlm.nih.gov/research/umls", + "code": "C0020740", + "display": "ibuprofen" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/aod", + "code": "0000019879" + }, + { + "system": "http://www.whocc.no/atc", + "code": "M01AE01" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/ccpss", + "code": "0046165" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/chv", + "code": "0000006519" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/csp", + "code": "2270-2077" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/drugbank", + "code": "DB01050" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/gs", + "code": "1611" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/lch_nw", + "code": "sh97005926" + }, + { + "system": "http://loinc.org", + "code": "LP16165-0" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/medcin", + "code": "40458" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/mmsl", + "code": "d00015" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/msh", + "code": "D007052" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/mthspl", + "code": "WK2XYI10QM" + }, + { + "system": "http://ncimeta.nci.nih.gov", + "code": "C561" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/nci_ctrp", + "code": "C561" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/nci_dcp", + "code": "00803" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/nci_dtp", + "code": "NSC0256857" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/nci_fda", + "code": "WK2XYI10QM" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/nci_nci-gloss", + "code": "CDR0000613511" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/nddf", + "code": "002377" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/pdq", + "code": "CDR0000040475" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/rcd", + "code": "x02MO" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/rxnorm", + "code": "5640" + }, + { + "system": "http://snomed.info/sct", + "code": "E-7772" + }, + { + "system": "http://snomed.info/sct", + "code": "C-603C0" + }, + { + "system": "http://snomed.info/sct", + "code": "387207008" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/usp", + "code": "m39860" + }, + { + "system": "http://www.nlm.nih.gov/research/umls/uspmg", + "code": "MTHU000060" + }, + { + "system": "http://hl7.org/fhir/ndfrt", + "code": "4017840" + } + ], + "text": "ibuprofen" + }, + "subject": { + "reference": "Patient/efcccdf7-87f0-4061-b553-09fc11734594", + "type": "Patient" + }, + "context": { + "reference": "Encounter/76214457-f94c-4ccf-95ef-ab31e7232d63", + "type": "Encounter", + "display": "unknown" + }, + "dosage": [ + { + "text": "100mg", + "timing": { + "repeat": { + "frequency": 2, + "period": 1, + "periodUnit": "d" + }, + "code": { + "text": "twice daily" + } + }, + "doseAndRate": [ + { + "doseQuantity": { + "value": 100 + } + } + ] + } + ] + } + }, + { + "fullUrl": "List/6d743a3e-e7a2-4cee-a0b5-64361b6c93ad", + "resource": { + "resourceType": "List", + "id": "6d743a3e-e7a2-4cee-a0b5-64361b6c93ad", + "status": "current", + "mode": "snapshot", + "title": "General", + "subject": { + "reference": "Patient/efcccdf7-87f0-4061-b553-09fc11734594", + "type": "Patient" + }, + "encounter": { + "reference": "Encounter/76214457-f94c-4ccf-95ef-ab31e7232d63", + "type": "Encounter", + "display": "unknown" + }, + "entry": [ + { + "item": { + "reference": "MedicationStatement/ac0264b6-63b7-4cf2-a7c3-f7340788aca7", + "type": "MedicationStatement", + "display": "ibuprofen" + } + } + ] + } + } + ] + } + } + ], + "errors": [], + "modelVersion": "2022-03-01" + } + } + ] + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulHealthcarePostRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulHealthcarePostRequest.json new file mode 100644 index 000000000000..9b73459845c0 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulHealthcarePostRequest.json @@ -0,0 +1,36 @@ +{ + "operationId": "AnalyzeTextSubmitJob", + "title": "SuccessfulHealthcarePostRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "{Job ID}", + "body": { + "analysisInput": { + "documents": [ + { + "text": "Prescribed 100mg ibuprofen, taken twice daily.", + "id": "1", + "language": "en" + } + ] + }, + "tasks": [ + { + "kind": "Healthcare", + "parameters": { + "modelVersion": "latest" + } + } + ] + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}?api-version=2025-11-15-preview" + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulHealthcareTaskStatusRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulHealthcareTaskStatusRequest.json new file mode 100644 index 000000000000..62069a39455c --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulHealthcareTaskStatusRequest.json @@ -0,0 +1,222 @@ +{ + "operationId": "AnalyzeTextJobStatus", + "title": "SuccessfulHealthcareTaskStatusRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "jobId": "1780194a-e9c1-4298-b0d4-fdc59ba818a0" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "createdDateTime": "2022-07-20T18:43:35Z", + "displayName": "Extracting Location & US Region", + "expirationDateTime": "2022-07-21T18:43:35Z", + "jobId": "1780194a-e9c1-4298-b0d4-fdc59ba818a0", + "lastUpdatedDateTime": "2022-07-20T18:43:36Z", + "status": "succeeded", + "tasks": { + "completed": 1, + "failed": 0, + "inProgress": 0, + "total": 1, + "items": [ + { + "kind": "HealthcareLROResults", + "lastUpdateDateTime": "2022-07-20T18:43:36.7159045Z", + "status": "succeeded", + "results": { + "documents": [ + { + "id": "1", + "entities": [ + { + "offset": 11, + "length": 5, + "text": "100mg", + "category": "Dosage", + "confidenceScore": 0.98 + }, + { + "offset": 17, + "length": 9, + "text": "ibuprofen", + "category": "MedicationName", + "confidenceScore": 1, + "name": "ibuprofen", + "links": [ + { + "dataSource": "UMLS", + "id": "C0020740" + }, + { + "dataSource": "AOD", + "id": "0000019879" + }, + { + "dataSource": "ATC", + "id": "M01AE01" + }, + { + "dataSource": "CCPSS", + "id": "0046165" + }, + { + "dataSource": "CHV", + "id": "0000006519" + }, + { + "dataSource": "CSP", + "id": "2270-2077" + }, + { + "dataSource": "DRUGBANK", + "id": "DB01050" + }, + { + "dataSource": "GS", + "id": "1611" + }, + { + "dataSource": "LCH_NW", + "id": "sh97005926" + }, + { + "dataSource": "LNC", + "id": "LP16165-0" + }, + { + "dataSource": "MEDCIN", + "id": "40458" + }, + { + "dataSource": "MMSL", + "id": "d00015" + }, + { + "dataSource": "MSH", + "id": "D007052" + }, + { + "dataSource": "MTHSPL", + "id": "WK2XYI10QM" + }, + { + "dataSource": "NCI", + "id": "C561" + }, + { + "dataSource": "NCI_CTRP", + "id": "C561" + }, + { + "dataSource": "NCI_DCP", + "id": "00803" + }, + { + "dataSource": "NCI_DTP", + "id": "NSC0256857" + }, + { + "dataSource": "NCI_FDA", + "id": "WK2XYI10QM" + }, + { + "dataSource": "NCI_NCI-GLOSS", + "id": "CDR0000613511" + }, + { + "dataSource": "NDDF", + "id": "002377" + }, + { + "dataSource": "PDQ", + "id": "CDR0000040475" + }, + { + "dataSource": "RCD", + "id": "x02MO" + }, + { + "dataSource": "RXNORM", + "id": "5640" + }, + { + "dataSource": "SNM", + "id": "E-7772" + }, + { + "dataSource": "SNMI", + "id": "C-603C0" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "387207008" + }, + { + "dataSource": "USP", + "id": "m39860" + }, + { + "dataSource": "USPMG", + "id": "MTHU000060" + }, + { + "dataSource": "VANDF", + "id": "4017840" + } + ] + }, + { + "offset": 34, + "length": 11, + "text": "twice daily", + "category": "Frequency", + "confidenceScore": 1 + } + ], + "relations": [ + { + "confidenceScore": 1, + "relationType": "DosageOfMedication", + "entities": [ + { + "ref": "#/results/documents/0/entities/0", + "role": "Dosage" + }, + { + "ref": "#/results/documents/0/entities/1", + "role": "Medication" + } + ] + }, + { + "confidenceScore": 1, + "relationType": "FrequencyOfMedication", + "entities": [ + { + "ref": "#/results/documents/0/entities/1", + "role": "Medication" + }, + { + "ref": "#/results/documents/0/entities/2", + "role": "Frequency" + } + ] + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2022-03-01" + } + } + ] + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulKeyPhraseExtractionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulKeyPhraseExtractionRequest.json new file mode 100644 index 000000000000..7192359883fc --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulKeyPhraseExtractionRequest.json @@ -0,0 +1,73 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulKeyPhraseExtractionRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "KeyPhraseExtraction", + "parameters": { + "modelVersion": "latest" + }, + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "Microsoft was founded by Bill Gates and Paul Allen." + }, + { + "id": "2", + "language": "en", + "text": "Text Analytics is one of the Azure Cognitive Services." + }, + { + "id": "3", + "language": "en", + "text": "My cat might need to see a veterinarian." + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "KeyPhraseExtractionResults", + "results": { + "documents": [ + { + "id": "1", + "keyPhrases": [ + "Bill Gates", + "Paul Allen", + "Microsoft" + ], + "warnings": [] + }, + { + "id": "2", + "keyPhrases": [ + "Azure Cognitive Services", + "Text Analytics" + ], + "warnings": [] + }, + { + "id": "3", + "keyPhrases": [ + "cat", + "veterinarian" + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-06-01" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulLanguageDetectionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulLanguageDetectionRequest.json new file mode 100644 index 000000000000..0ddb851aef32 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulLanguageDetectionRequest.json @@ -0,0 +1,93 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulLanguageDetectionRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "LanguageDetection", + "parameters": { + "modelVersion": "latest" + }, + "analysisInput": { + "documents": [ + { + "id": "1", + "text": "Hello world" + }, + { + "id": "2", + "text": "Bonjour tout le monde" + }, + { + "id": "3", + "text": "Hola mundo" + }, + { + "id": "4", + "text": "Tumhara naam kya hai?" + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "LanguageDetectionResults", + "results": { + "documents": [ + { + "detectedLanguage": { + "confidenceScore": 1, + "iso6391Name": "en", + "name": "English", + "scriptName": "Latin", + "scriptIso15924Code": "Latn" + }, + "id": "1", + "warnings": [] + }, + { + "detectedLanguage": { + "confidenceScore": 1, + "iso6391Name": "fr", + "name": "French", + "scriptName": "Latin", + "scriptIso15924Code": "Latn" + }, + "id": "2", + "warnings": [] + }, + { + "detectedLanguage": { + "confidenceScore": 1, + "iso6391Name": "es", + "name": "Spanish", + "scriptName": "Latin", + "scriptIso15924Code": "Latn" + }, + "id": "3", + "warnings": [] + }, + { + "detectedLanguage": { + "confidenceScore": 1, + "iso6391Name": "hi", + "name": "Hindi", + "scriptName": "Latin", + "scriptIso15924Code": "Latn" + }, + "id": "4", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2023-12-01" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulPiiEntityRecognitionExclusionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulPiiEntityRecognitionExclusionRequest.json new file mode 100644 index 000000000000..1d43b418c4b4 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulPiiEntityRecognitionExclusionRequest.json @@ -0,0 +1,101 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulPiiEntityRecognitionExclusionRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "PiiEntityRecognition", + "parameters": { + "modelVersion": "latest", + "excludePiiCategories": [ + "USSocialSecurityNumber" + ] + }, + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "My SSN is 859-98-0987" + }, + { + "id": "2", + "language": "en", + "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." + }, + { + "id": "3", + "language": "en", + "text": "Is 998.214.865-68 your Brazilian CPF number?" + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "PiiEntityRecognitionResults", + "results": { + "documents": [ + { + "id": "2", + "redactedText": "Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.", + "entities": [ + { + "category": "ABARoutingNumber", + "type": "ABARoutingNumber", + "confidenceScore": 0.75, + "length": 9, + "offset": 18, + "text": "111000025", + "tags": [ + { + "name": "Number", + "confidenceScore": 0.8 + }, + { + "name": "Numeric", + "confidenceScore": 0.8 + } + ] + } + ], + "warnings": [] + }, + { + "id": "3", + "redactedText": "Is ************** your Brazilian CPF number?", + "entities": [ + { + "category": "BRCPFNumber", + "type": "BRCPFNumber", + "confidenceScore": 0.85, + "length": 14, + "offset": 3, + "text": "998.214.865-68", + "tags": [ + { + "name": "Number", + "confidenceScore": 0.8 + }, + { + "name": "Numeric", + "confidenceScore": 0.8 + } + ] + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulPiiEntityRecognitionMaskedEntities.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulPiiEntityRecognitionMaskedEntities.json new file mode 100644 index 000000000000..758132a10606 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulPiiEntityRecognitionMaskedEntities.json @@ -0,0 +1,84 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulPiiEntityRecognitionMaskedEntitiesRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "PiiEntityRecognition", + "parameters": { + "modelVersion": "latest", + "redactionPolicies": [ + { + "policyKind": "entityMask" + } + ] + }, + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "My name is John Doe My phone number is 424 878 9192" + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "PiiEntityRecognitionResults", + "results": { + "documents": [ + { + "id": "1", + "redactedText": "My name is [PERSON_1] My phone number is [PHONENUMBER_1]", + "entities": [ + { + "category": "Person", + "type": "Person", + "tags": [ + { + "name": "Person", + "confidenceScore": 0.65 + } + ], + "length": 8, + "offset": 11, + "mask": "[Person_1]", + "maskOffset": 11, + "maskLength": 9, + "text": "John Doe", + "confidenceScore": 0.65 + }, + { + "category": "PhoneNumber", + "type": "PhoneNumber", + "tags": [ + { + "name": "PhoneNumber", + "confidenceScore": 0.8 + } + ], + "length": 12, + "offset": 36, + "mask": "[PHONENUMBER_1]", + "maskOffset": 41, + "maskLength": 13, + "text": "424 878 9192", + "confidenceScore": 0.8 + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulPiiEntityRecognitionRedactionPolicyRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulPiiEntityRecognitionRedactionPolicyRequest.json new file mode 100644 index 000000000000..106d039b0b94 --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulPiiEntityRecognitionRedactionPolicyRequest.json @@ -0,0 +1,129 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulPiiEntityRecognitionRedactionPolicyRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "PiiEntityRecognition", + "parameters": { + "modelVersion": "latest", + "redactionPolicies": [ + { + "policyKind": "characterMask", + "redactionCharacter": "-" + } + ] + }, + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "My SSN is 859-98-0987" + }, + { + "id": "2", + "language": "en", + "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." + }, + { + "id": "3", + "language": "en", + "text": "Is 998.214.865-68 your Brazilian CPF number?" + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "PiiEntityRecognitionResults", + "results": { + "documents": [ + { + "id": "1", + "redactedText": "My SSN is -----------", + "entities": [ + { + "category": "USSocialSecurityNumber", + "type": "USSocialSecurityNumber", + "confidenceScore": 0.65, + "length": 11, + "offset": 28, + "text": "859-98-0987", + "tags": [ + { + "name": "Number", + "confidenceScore": 0.8 + }, + { + "name": "Numeric", + "confidenceScore": 0.8 + } + ] + } + ], + "warnings": [] + }, + { + "id": "2", + "redactedText": "Your ABA number - --------- - is the first 9 digits in the lower left hand corner of your personal check.", + "entities": [ + { + "category": "ABARoutingNumber", + "type": "ABARoutingNumber", + "confidenceScore": 0.75, + "length": 9, + "offset": 18, + "text": "111000025", + "tags": [ + { + "name": "Number", + "confidenceScore": 0.8 + }, + { + "name": "Numeric", + "confidenceScore": 0.8 + } + ] + } + ], + "warnings": [] + }, + { + "id": "3", + "redactedText": "Is -------------- your Brazilian CPF number?", + "entities": [ + { + "category": "BRCPFNumber", + "type": "", + "confidenceScore": 0.85, + "length": 14, + "offset": 3, + "text": "998.214.865-68", + "tags": [ + { + "name": "Number", + "confidenceScore": 0.8 + }, + { + "name": "Numeric", + "confidenceScore": 0.8 + } + ] + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulPiiEntityRecognitionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulPiiEntityRecognitionRequest.json new file mode 100644 index 000000000000..f912d4942ffc --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulPiiEntityRecognitionRequest.json @@ -0,0 +1,123 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulPiiEntityRecognitionRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-11-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "PiiEntityRecognition", + "parameters": { + "modelVersion": "latest" + }, + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "My SSN is 859-98-0987" + }, + { + "id": "2", + "language": "en", + "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." + }, + { + "id": "3", + "language": "en", + "text": "Is 998.214.865-68 your Brazilian CPF number?" + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "PiiEntityRecognitionResults", + "results": { + "documents": [ + { + "id": "1", + "redactedText": "My SSN is ***********", + "entities": [ + { + "category": "USSocialSecurityNumber", + "type": "USSocialSecurityNumber", + "confidenceScore": 0.65, + "length": 11, + "offset": 28, + "text": "859-98-0987", + "tags": [ + { + "name": "Number", + "confidenceScore": 0.8 + }, + { + "name": "Numeric", + "confidenceScore": 0.8 + } + ] + } + ], + "warnings": [] + }, + { + "id": "2", + "redactedText": "Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.", + "entities": [ + { + "category": "ABARoutingNumber", + "type": "ABARoutingNumber", + "confidenceScore": 0.75, + "length": 9, + "offset": 18, + "text": "111000025", + "tags": [ + { + "name": "Number", + "confidenceScore": 0.8 + }, + { + "name": "Numeric", + "confidenceScore": 0.8 + } + ] + } + ], + "warnings": [] + }, + { + "id": "3", + "redactedText": "Is ************** your Brazilian CPF number?", + "entities": [ + { + "category": "BRCPFNumber", + "type": "BRCPFNumber", + "confidenceScore": 0.85, + "length": 14, + "offset": 3, + "text": "998.214.865-68", + "tags": [ + { + "name": "Number", + "confidenceScore": 0.8 + }, + { + "name": "Numeric", + "confidenceScore": 0.8 + } + ] + } + ], + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-01-15" + } + } + } + } +} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulSentimentAnalysisRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulSentimentAnalysisRequest.json new file mode 100644 index 000000000000..e64a31f70ffd --- /dev/null +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulSentimentAnalysisRequest.json @@ -0,0 +1,150 @@ +{ + "operationId": "AnalyzeText", + "title": "SuccessfulSentimentAnalysisRequest", + "parameters": { + "Ocp-Apim-Subscription-Key": "{API key}", + "api-version": "2025-05-15-preview", + "Endpoint": "{Endpoint}", + "body": { + "kind": "SentimentAnalysis", + "parameters": { + "modelVersion": "latest" + }, + "analysisInput": { + "documents": [ + { + "id": "1", + "language": "en", + "text": "Great atmosphere. Close to plenty of restaurants, hotels, and transit! Staff are friendly and helpful." + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "kind": "SentimentAnalysisResults", + "results": { + "documents": [ + { + "confidenceScores": { + "negative": 0, + "neutral": 0, + "positive": 1 + }, + "id": "1", + "sentences": [ + { + "targets": [ + { + "confidenceScores": { + "negative": 0, + "positive": 1 + }, + "length": 10, + "offset": 6, + "relations": [ + { + "ref": "#/documents/0/sentences/0/assessments/0", + "relationType": "assessment" + } + ], + "sentiment": "positive", + "text": "atmosphere" + } + ], + "confidenceScores": { + "negative": 0, + "neutral": 0, + "positive": 1 + }, + "length": 17, + "offset": 0, + "assessments": [ + { + "confidenceScores": { + "negative": 0, + "positive": 1 + }, + "isNegated": false, + "length": 5, + "offset": 0, + "sentiment": "positive", + "text": "great" + } + ], + "sentiment": "positive", + "text": "Great atmosphere." + }, + { + "targets": [ + { + "confidenceScores": { + "negative": 0.01, + "positive": 0.99 + }, + "length": 11, + "offset": 37, + "relations": [ + { + "ref": "#/documents/0/sentences/1/assessments/0", + "relationType": "assessment" + } + ], + "sentiment": "positive", + "text": "restaurants" + }, + { + "confidenceScores": { + "negative": 0.01, + "positive": 0.99 + }, + "length": 6, + "offset": 50, + "relations": [ + { + "ref": "#/documents/0/sentences/1/assessments/0", + "relationType": "assessment" + } + ], + "sentiment": "positive", + "text": "hotels" + } + ], + "confidenceScores": { + "negative": 0.01, + "neutral": 0.86, + "positive": 0.13 + }, + "length": 52, + "offset": 18, + "assessments": [ + { + "confidenceScores": { + "negative": 0.01, + "positive": 0.99 + }, + "isNegated": false, + "length": 15, + "offset": 18, + "sentiment": "positive", + "text": "Close to plenty" + } + ], + "sentiment": "neutral", + "text": "Close to plenty of restaurants, hotels, and transit!" + } + ], + "sentiment": "positive", + "warnings": [] + } + ], + "errors": [], + "modelVersion": "2021-10-01" + } + } + } + } +} From fe11bbfba6f2960bdc55d4a2061fcb8ae22e6dda Mon Sep 17 00:00:00 2001 From: "Amber Chen (Centific Technologies Inc)" Date: Wed, 15 Oct 2025 15:13:48 -0700 Subject: [PATCH 3/6] fix --- .../2025-11-15-preview/SuccessfulSentimentAnalysisRequest.json | 2 +- .../examples/SuccessfulSentimentAnalysisRequest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulSentimentAnalysisRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulSentimentAnalysisRequest.json index e64a31f70ffd..cf35deaff8c1 100644 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulSentimentAnalysisRequest.json +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-11-15-preview/SuccessfulSentimentAnalysisRequest.json @@ -3,7 +3,7 @@ "title": "SuccessfulSentimentAnalysisRequest", "parameters": { "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", + "api-version": "2025-11-15-preview", "Endpoint": "{Endpoint}", "body": { "kind": "SentimentAnalysis", diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulSentimentAnalysisRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulSentimentAnalysisRequest.json index e64a31f70ffd..cf35deaff8c1 100644 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulSentimentAnalysisRequest.json +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/examples/SuccessfulSentimentAnalysisRequest.json @@ -3,7 +3,7 @@ "title": "SuccessfulSentimentAnalysisRequest", "parameters": { "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", + "api-version": "2025-11-15-preview", "Endpoint": "{Endpoint}", "body": { "kind": "SentimentAnalysis", From fdd3b3ef7fbb95ff87c606e29fe9d0cae0cd9634 Mon Sep 17 00:00:00 2001 From: "Amber Chen (Centific Technologies Inc)" Date: Wed, 15 Oct 2025 15:19:57 -0700 Subject: [PATCH 4/6] fix --- ...rizationSummaryLengthPromptTaskResult.json | 58 - ...rizationSummaryLengthPromptTaskSubmit.json | 39 - ...fulAbstractiveSummarizationTaskResult.json | 58 - ...fulAbstractiveSummarizationTaskSubmit.json | 38 - ...uccessfulAnalyzeTextJobsCancelRequest.json | 17 - ...lyzeTextJobsMultipleTaskStatusRequest.json | 180 - ...lyzeTextJobsMultipleTaskSubmitRequest.json | 51 - .../SuccessfulEntityLinkingRequest.json | 130 - ...sfulEntityRecognitionExclusionRequest.json | 136 - ...sfulEntityRecognitionInclusionRequest.json | 133 - ...ityRecognitionInferenceOptionsRequest.json | 83 - ...cessfulEntityRecognitionOverlapPolicy.json | 79 - .../SuccessfulEntityRecognitionRequest.json | 339 - ...sfulHealthcareDocumentTypePostRequest.json | 38 - ...althcareDocumentTypeTaskStatusRequest.json | 554 - .../SuccessfulHealthcarePostRequest.json | 36 - ...SuccessfulHealthcareTaskStatusRequest.json | 222 - .../SuccessfulKeyPhraseExtractionRequest.json | 73 - .../SuccessfulLanguageDetectionRequest.json | 93 - ...lPiiEntityRecognitionExclusionRequest.json | 101 - ...fulPiiEntityRecognitionMaskedEntities.json | 82 - ...tityRecognitionRedactionPolicyRequest.json | 127 - ...SuccessfulPiiEntityRecognitionRequest.json | 123 - .../SuccessfulSentimentAnalysisRequest.json | 150 - .../2025-05-15-preview/analyzetext.json | 9866 ----------------- ...rizationSummaryLengthPromptTaskResult.json | 58 - ...rizationSummaryLengthPromptTaskSubmit.json | 39 - ...fulAbstractiveSummarizationTaskResult.json | 58 - ...fulAbstractiveSummarizationTaskSubmit.json | 38 - ...uccessfulAnalyzeTextJobsCancelRequest.json | 17 - ...lyzeTextJobsMultipleTaskStatusRequest.json | 180 - ...lyzeTextJobsMultipleTaskSubmitRequest.json | 51 - .../SuccessfulEntityLinkingRequest.json | 130 - ...sfulEntityRecognitionExclusionRequest.json | 136 - ...sfulEntityRecognitionInclusionRequest.json | 133 - ...ityRecognitionInferenceOptionsRequest.json | 83 - ...cessfulEntityRecognitionOverlapPolicy.json | 79 - .../SuccessfulEntityRecognitionRequest.json | 339 - ...sfulHealthcareDocumentTypePostRequest.json | 38 - ...althcareDocumentTypeTaskStatusRequest.json | 554 - .../SuccessfulHealthcarePostRequest.json | 36 - ...SuccessfulHealthcareTaskStatusRequest.json | 222 - .../SuccessfulKeyPhraseExtractionRequest.json | 73 - .../SuccessfulLanguageDetectionRequest.json | 93 - ...lPiiEntityRecognitionExclusionRequest.json | 101 - ...fulPiiEntityRecognitionMaskedEntities.json | 82 - ...tityRecognitionRedactionPolicyRequest.json | 127 - ...SuccessfulPiiEntityRecognitionRequest.json | 123 - .../SuccessfulSentimentAnalysisRequest.json | 150 - .../data-plane/LanguageAnalyzeText/readme.md | 22 +- 50 files changed, 11 insertions(+), 15757 deletions(-) delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAbstractiveSummarizationTaskResult.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAbstractiveSummarizationTaskSubmit.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAnalyzeTextJobsCancelRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityLinkingRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityRecognitionExclusionRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityRecognitionInclusionRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityRecognitionInferenceOptionsRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityRecognitionOverlapPolicy.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityRecognitionRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulHealthcareDocumentTypePostRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulHealthcareDocumentTypeTaskStatusRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulHealthcarePostRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulHealthcareTaskStatusRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulKeyPhraseExtractionRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulLanguageDetectionRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulPiiEntityRecognitionExclusionRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulPiiEntityRecognitionMaskedEntities.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulPiiEntityRecognitionRedactionPolicyRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulPiiEntityRecognitionRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulSentimentAnalysisRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/analyzetext.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAbstractiveSummarizationTaskResult.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAbstractiveSummarizationTaskSubmit.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAnalyzeTextJobsCancelRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityLinkingRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityRecognitionExclusionRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityRecognitionInclusionRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityRecognitionInferenceOptionsRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityRecognitionOverlapPolicy.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityRecognitionRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulHealthcareDocumentTypePostRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulHealthcareDocumentTypeTaskStatusRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulHealthcarePostRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulHealthcareTaskStatusRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulKeyPhraseExtractionRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulLanguageDetectionRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulPiiEntityRecognitionExclusionRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulPiiEntityRecognitionMaskedEntities.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulPiiEntityRecognitionRedactionPolicyRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulPiiEntityRecognitionRequest.json delete mode 100644 specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulSentimentAnalysisRequest.json diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult.json deleted file mode 100644 index 0aa480cacbde..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "operationId": "AnalyzeTextJobStatus", - "title": "SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "createdDateTime": "2020-10-01T15:00:45Z", - "displayName": "Document Abstractive Summarization Task Example", - "expirationDateTime": "2020-10-03T15:01:03Z", - "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18", - "lastUpdatedDateTime": "2020-10-01T15:01:03Z", - "status": "succeeded", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "AbstractiveSummarizationLROResults", - "taskName": "Document Abstractive Summarization Task 1", - "lastUpdateDateTime": "2020-10-01T15:01:03Z", - "status": "succeeded", - "results": { - "documents": [ - { - "summaries": [ - { - "text": "XYZ-code is a joint representation of human cognition and language, which Microsoft aims to develop for cross-domain transfer learning. Learn how XYz-code can help Microsoft achieve cross-sensory and multilingual learning with human-centric approach.", - "contexts": [ - { - "offset": 0, - "length": 1619 - } - ] - } - ], - "id": "1", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "latest" - } - } - ] - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit.json deleted file mode 100644 index 754dee836340..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "operationId": "AnalyzeTextSubmitJob", - "title": "SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "{Job ID}", - "body": { - "displayName": "Document Abstractive Summarization Task Example", - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there is magic—what we call XYZ-code as illustrated in Figure 1—a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pre-trained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multi-sensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks." - } - ] - }, - "tasks": [ - { - "kind": "AbstractiveSummarization", - "taskName": "Document Abstractive Summarization Task 1", - "parameters": { - "summaryLength": "medium", - "instruction": "XYZ-code" - } - } - ] - } - }, - "responses": { - "202": { - "headers": { - "Operation-Location": "{endpoint}/language/analyze-text/jobs/{jobId}?api-version=2025-05-15-preview" - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAbstractiveSummarizationTaskResult.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAbstractiveSummarizationTaskResult.json deleted file mode 100644 index 41581ae7d7d8..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAbstractiveSummarizationTaskResult.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "operationId": "AnalyzeTextJobStatus", - "title": "SuccessfulAbstractiveSummarizationTaskResult", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "createdDateTime": "2020-10-01T15:00:45Z", - "displayName": "Document Abstractive Summarization Task Example", - "expirationDateTime": "2020-10-03T15:01:03Z", - "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18", - "lastUpdatedDateTime": "2020-10-01T15:01:03Z", - "status": "succeeded", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "AbstractiveSummarizationLROResults", - "taskName": "Document Abstractive Summarization Task 1", - "lastUpdateDateTime": "2020-10-01T15:01:03Z", - "status": "succeeded", - "results": { - "documents": [ - { - "summaries": [ - { - "text": "Microsoft have been on a quest to advance AI beyond existing techniques.", - "contexts": [ - { - "offset": 0, - "length": 1629 - } - ] - } - ], - "id": "1", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "latest" - } - } - ] - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAbstractiveSummarizationTaskSubmit.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAbstractiveSummarizationTaskSubmit.json deleted file mode 100644 index 74cf057dcbc1..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAbstractiveSummarizationTaskSubmit.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "operationId": "AnalyzeTextSubmitJob", - "title": "SuccessfulAbstractiveSummarizationTaskSubmit", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "{Job ID}", - "body": { - "displayName": "Document Abstractive Summarization Task Example", - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there is magic—what we call XYZ-code as illustrated in Figure 1—a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pre-trained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multi-sensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks." - } - ] - }, - "tasks": [ - { - "kind": "AbstractiveSummarization", - "taskName": "Document Abstractive Summarization Task 1", - "parameters": { - "sentenceCount": 1 - } - } - ] - } - }, - "responses": { - "202": { - "headers": { - "Operation-Location": "{endpoint}/language/analyze-text/jobs/{jobId}?api-version=2025-05-15-preview" - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAnalyzeTextJobsCancelRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAnalyzeTextJobsCancelRequest.json deleted file mode 100644 index 13ad6a087245..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAnalyzeTextJobsCancelRequest.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "operationId": "AnalyzeTextCancelJob", - "title": "SuccessfulAnalyzeTextJobsCancelRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18" - }, - "responses": { - "202": { - "headers": { - "Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}?api-version=2023-11-15-preview" - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json deleted file mode 100644 index eec46a940eaa..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json +++ /dev/null @@ -1,180 +0,0 @@ -{ - "operationId": "AnalyzeTextJobStatus", - "title": "SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "createdDateTime": "2020-10-01T15:00:45Z", - "displayName": "Extracting Location & US Region", - "expirationDateTime": "2020-10-03T15:01:03Z", - "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18", - "lastUpdatedDateTime": "2020-10-01T15:01:03Z", - "status": "succeeded", - "tasks": { - "completed": 2, - "failed": 0, - "inProgress": 0, - "total": 2, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "taskName": "Recognize Entities", - "lastUpdateDateTime": "2020-10-01T15:01:03Z", - "status": "succeeded", - "results": { - "documents": [ - { - "entities": [ - { - "category": "Event", - "type": "Event", - "confidenceScore": 0.61, - "length": 4, - "offset": 18, - "text": "trip", - "tags": [ - { - "name": "Event", - "confidenceScore": 0.61 - } - ] - }, - { - "category": "Location", - "type": "GPE", - "confidenceScore": 0.82, - "length": 7, - "offset": 26, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.82 - }, - { - "name": "GPE", - "confidenceScore": 0.82 - } - ], - "text": "Seattle" - }, - { - "category": "Temporal", - "type": "DateRange", - "confidenceScore": 0.8, - "length": 9, - "offset": 34, - "text": "last week", - "tags": [ - { - "name": "DateRange", - "confidenceScore": 0.8 - }, - { - "name": "Temporal", - "confidenceScore": 0.8 - } - ] - } - ], - "id": "1", - "warnings": [] - }, - { - "entities": [ - { - "category": "Location", - "type": "GPE", - "confidenceScore": 0.52, - "length": 3, - "offset": 14, - "text": "NYC", - "tags": [ - { - "name": "Location", - "confidenceScore": 0.82 - }, - { - "name": "GPE", - "confidenceScore": 0.82 - } - ] - }, - { - "category": "Temporal", - "type": "Date", - "confidenceScore": 0.8, - "length": 8, - "offset": 18, - "text": "tomorrow", - "tags": [ - { - "name": "Date", - "confidenceScore": 0.8 - }, - { - "name": "Temporal", - "confidenceScore": 0.8 - } - ] - } - ], - "id": "2", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-04-01" - } - }, - { - "kind": "CustomEntityRecognitionLROResults", - "taskName": "Recognize US Regions", - "lastUpdateDateTime": "2020-10-01T15:01:03Z", - "status": "succeeded", - "results": { - "documents": [ - { - "entities": [ - { - "category": "USRegion", - "confidenceScore": 0.85, - "length": 17, - "offset": 45, - "text": "Pacific Northwest" - } - ], - "id": "1", - "warnings": [] - }, - { - "entities": [ - { - "category": "USRegion", - "confidenceScore": 0.88, - "length": 10, - "offset": 63, - "text": "East Coast" - } - ], - "id": "2", - "warnings": [] - } - ], - "errors": [], - "projectName": "MyProject", - "deploymentName": "MyDeployment" - } - } - ] - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json deleted file mode 100644 index 8da4921853e8..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "operationId": "AnalyzeTextSubmitJob", - "title": "SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "{Job ID}", - "body": { - "displayName": "Extracting Location & US Region", - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "2", - "language": "en", - "text": "I'm flying to NYC tomorrow. See you there." - } - ] - }, - "tasks": [ - { - "kind": "EntityRecognition", - "taskName": "Recognize Entities", - "parameters": { - "modelVersion": "latest" - } - }, - { - "kind": "CustomEntityRecognition", - "taskName": "Recognize US Regions", - "parameters": { - "projectName": "MyProject", - "deploymentName": "MyDeployment" - } - } - ] - } - }, - "responses": { - "202": { - "headers": { - "Operation-Location": "{endpoint}/language/analyze-text/jobs/{jobId}?api-version=2025-05-15-preview" - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityLinkingRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityLinkingRequest.json deleted file mode 100644 index 12939588e3d8..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityLinkingRequest.json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulEntityLinkingRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "EntityLinking", - "parameters": { - "modelVersion": "latest" - }, - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "Microsoft was founded by Bill Gates and Paul Allen." - }, - { - "id": "2", - "language": "en", - "text": "Pike place market is my favorite Seattle attraction." - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "entities": [ - { - "dataSource": "Wikipedia", - "id": "Bill Gates", - "language": "en", - "matches": [ - { - "confidenceScore": 0.52, - "length": 10, - "offset": 25, - "text": "Bill Gates" - } - ], - "name": "Bill Gates", - "url": "https://en.wikipedia.org/wiki/Bill_Gates" - }, - { - "dataSource": "Wikipedia", - "id": "Paul Allen", - "language": "en", - "matches": [ - { - "confidenceScore": 0.54, - "length": 10, - "offset": 40, - "text": "Paul Allen" - } - ], - "name": "Paul Allen", - "url": "https://en.wikipedia.org/wiki/Paul_Allen" - }, - { - "dataSource": "Wikipedia", - "id": "Microsoft", - "language": "en", - "matches": [ - { - "confidenceScore": 0.49, - "length": 9, - "offset": 0, - "text": "Microsoft" - } - ], - "name": "Microsoft", - "url": "https://en.wikipedia.org/wiki/Microsoft" - } - ], - "id": "1", - "warnings": [] - }, - { - "entities": [ - { - "dataSource": "Wikipedia", - "id": "Pike Place Market", - "language": "en", - "matches": [ - { - "confidenceScore": 0.86, - "length": 17, - "offset": 0, - "text": "Pike place market" - } - ], - "name": "Pike Place Market", - "url": "https://en.wikipedia.org/wiki/Pike_Place_Market" - }, - { - "dataSource": "Wikipedia", - "id": "Seattle", - "language": "en", - "matches": [ - { - "confidenceScore": 0.27, - "length": 7, - "offset": 33, - "text": "Seattle" - } - ], - "name": "Seattle", - "url": "https://en.wikipedia.org/wiki/Seattle" - } - ], - "id": "2", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-02-01" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityRecognitionExclusionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityRecognitionExclusionRequest.json deleted file mode 100644 index a0a0464c9ad4..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityRecognitionExclusionRequest.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulEntityRecognitionExclusionRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "EntityRecognition", - "parameters": { - "modelVersion": "latest", - "exclusionList": [ - "Numeric" - ], - "overlapPolicy": { - "policyKind": "allowOverlap" - } - }, - "analysisInput": { - "documents": [ - { - "id": "2", - "language": "en", - "text": "When I was 5 years old I had $90.00 dollars to my name." - }, - { - "id": "3", - "language": "en", - "text": "When we flew from LAX it seemed like we were moving at 10 meters per second. I was lucky to see Amsterdam, Effile Tower, and the Nile." - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "entities": [], - "id": "2", - "warnings": [] - }, - { - "entities": [ - { - "text": "LAX", - "category": "Location", - "type": "Airport", - "offset": 18, - "length": 3, - "confidenceScore": 0.72, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.9 - }, - { - "name": "Structural", - "confidenceScore": 0.72 - } - ] - }, - { - "text": "Amsterdam", - "category": "Location", - "type": "City", - "offset": 96, - "length": 9, - "confidenceScore": 0.8, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.84 - }, - { - "name": "GPE", - "confidenceScore": 0.84 - }, - { - "name": "City", - "confidenceScore": 0.8 - } - ] - }, - { - "text": "Eiffel Tower", - "category": "Location", - "type": "Structural", - "offset": 107, - "length": 12, - "confidenceScore": 0.9, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.9 - }, - { - "name": "Structural", - "confidenceScore": 0.9 - } - ] - }, - { - "text": "Nile", - "category": "Location", - "type": "Geological", - "offset": 129, - "length": 4, - "confidenceScore": 0.63, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.9 - }, - { - "name": "Geological", - "confidenceScore": 0.63 - } - ] - } - ], - "id": "3", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityRecognitionInclusionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityRecognitionInclusionRequest.json deleted file mode 100644 index d9ac4bd22910..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityRecognitionInclusionRequest.json +++ /dev/null @@ -1,133 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulEntityRecognitionInclusionRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "EntityRecognition", - "parameters": { - "modelVersion": "latest", - "inclusionList": [ - "Location" - ] - }, - "analysisInput": { - "documents": [ - { - "id": "2", - "language": "en", - "text": "When I was 5 years old I had $90.00 dollars to my name." - }, - { - "id": "3", - "language": "en", - "text": "When we flew from LAX it seemed like we were moving at 10 meters per second. I was lucky to see Amsterdam, Effile Tower, and the Nile." - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "entities": [], - "id": "2", - "warnings": [] - }, - { - "entities": [ - { - "text": "LAX", - "category": "Location", - "type": "Structural", - "offset": 18, - "length": 3, - "confidenceScore": 0.72, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.9 - }, - { - "name": "Structural", - "confidenceScore": 0.72 - } - ] - }, - { - "text": "Amsterdam", - "category": "Location", - "type": "City", - "offset": 96, - "length": 9, - "confidenceScore": 0.8, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.84 - }, - { - "name": "GPE", - "confidenceScore": 0.84 - }, - { - "name": "City", - "confidenceScore": 0.8 - } - ] - }, - { - "text": "Eiffel Tower", - "category": "Location", - "type": "Structural", - "offset": 107, - "length": 12, - "confidenceScore": 0.9, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.9 - }, - { - "name": "Structural", - "confidenceScore": 0.9 - } - ] - }, - { - "text": "Nile", - "category": "Location", - "type": "Geological", - "offset": 129, - "length": 4, - "confidenceScore": 0.63, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.9 - }, - { - "name": "Geological", - "confidenceScore": 0.63 - } - ] - } - ], - "id": "3", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityRecognitionInferenceOptionsRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityRecognitionInferenceOptionsRequest.json deleted file mode 100644 index 03f9e9c7d832..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityRecognitionInferenceOptionsRequest.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulEntityRecognitionInferenceOptionsRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "EntityRecognition", - "parameters": { - "modelVersion": "latest", - "inferenceOptions": { - "excludeNormalizedValues": true - } - }, - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "When I was 5 years old I had $90.00 dollars to my name." - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "entities": [ - { - "text": "5 years old", - "category": "Numeric", - "type": "Age", - "offset": 11, - "length": 11, - "confidenceScore": 0.99, - "tags": [ - { - "name": "Numeric", - "confidenceScore": 0.99 - }, - { - "name": "Age", - "confidenceScore": 0.99 - } - ] - }, - { - "text": "$90.00", - "category": "Numeric", - "type": "Currency", - "offset": 29, - "length": 14, - "confidenceScore": 0.99, - "tags": [ - { - "name": "Numeric", - "confidenceScore": 0.99 - }, - { - "name": "Currency", - "confidenceScore": 0.99 - } - ] - } - ], - "id": "1", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-09-01" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityRecognitionOverlapPolicy.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityRecognitionOverlapPolicy.json deleted file mode 100644 index a266f02e7e6b..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityRecognitionOverlapPolicy.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulEntityRecognitionOverlapPolicy", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "EntityRecognition", - "parameters": { - "modelVersion": "latest", - "overlapPolicy": { - "policyKind": "matchLongest" - } - }, - "analysisInput": { - "documents": [ - { - "id": "4", - "language": "en", - "text": "25th April Meeting was an intresting one. At least we gont to experience the WorldCup" - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "entities": [ - { - "text": "25th April Meeting", - "category": "Event", - "type": "Event", - "offset": 0, - "length": 18, - "confidenceScore": 0.59, - "tags": [ - { - "name": "Event", - "confidenceScore": 0.59 - } - ] - }, - { - "text": "Worldcup", - "category": "Event", - "type": "SportsEvent", - "offset": 0, - "length": 8, - "confidenceScore": 0.51, - "tags": [ - { - "name": "Event", - "confidenceScore": 0.55 - }, - { - "name": "SportsEvent", - "confidenceScore": 0.51 - } - ] - } - ], - "id": "4", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityRecognitionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityRecognitionRequest.json deleted file mode 100644 index 6b8d169d0594..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulEntityRecognitionRequest.json +++ /dev/null @@ -1,339 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulEntityRecognitionRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "EntityRecognition", - "parameters": { - "modelVersion": "latest", - "overlapPolicy": { - "policyKind": "allowOverlap" - } - }, - "analysisInput": { - "documents": [ - { - "id": "2", - "language": "en", - "text": "When I was 5 years old I had $90.00 dollars to my name." - }, - { - "id": "3", - "language": "en", - "text": "When we flew from LAX it seemed like we were moving at 10 meters per second. I was lucky to see Amsterdam, Effile Tower, and the Nile." - }, - { - "id": "4", - "language": "en", - "text": "25th April Meeting was an intresting one. At least we gont to experience the WorldCup" - }, - { - "id": "5", - "language": "en", - "text": "My IP is 127.12.1.1 and my phone number is 5555555555" - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "entities": [ - { - "text": "5 years old", - "category": "Numeric", - "type": "Age", - "offset": 11, - "length": 11, - "confidenceScore": 0.99, - "tags": [ - { - "name": "Numeric", - "confidenceScore": 0.99 - }, - { - "name": "Age", - "confidenceScore": 0.99 - } - ], - "metadata": { - "metadataKind": "AgeMetadata", - "unit": "Year", - "value": 5.0 - } - }, - { - "text": "$90.00", - "category": "Numeric", - "type": "Currency", - "offset": 29, - "length": 14, - "confidenceScore": 0.99, - "tags": [ - { - "name": "Numeric", - "confidenceScore": 0.99 - }, - { - "name": "Currency", - "confidenceScore": 0.99 - } - ], - "metadata": { - "metadataKind": "CurrencyMetadata", - "unit": "Dollar", - "iso4217": "USD", - "value": 90.0 - } - } - ], - "id": "2", - "warnings": [] - }, - { - "entities": [ - { - "text": "LAX", - "category": "Location", - "type": "Structural", - "offset": 18, - "length": 3, - "confidenceScore": 0.72, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.9 - }, - { - "name": "Structural", - "confidenceScore": 0.72 - } - ] - }, - { - "text": "10 meters per second", - "category": "Numeric", - "type": "Speed", - "offset": 55, - "length": 20, - "confidenceScore": 0.8, - "tags": [ - { - "name": "Dimension", - "confidenceScore": 0.84 - }, - { - "name": "Numeric", - "confidenceScore": 0.84 - }, - { - "name": "Speed", - "confidenceScore": 0.8 - } - ], - "metadata": { - "metadataKind": "SpeedMetadata", - "unit": "MetersPerSecond", - "value": 10.0 - } - }, - { - "text": "Amsterdam", - "category": "Location", - "type": "City", - "offset": 96, - "length": 9, - "confidenceScore": 0.8, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.84 - }, - { - "name": "GPE", - "confidenceScore": 0.84 - }, - { - "name": "City", - "confidenceScore": 0.8 - } - ] - }, - { - "text": "Eiffel Tower", - "category": "Location", - "type": "Structural", - "offset": 107, - "length": 12, - "confidenceScore": 0.9, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.9 - }, - { - "name": "Structural", - "confidenceScore": 0.9 - } - ] - }, - { - "text": "Nile", - "category": "Location", - "type": "Geological", - "offset": 129, - "length": 4, - "confidenceScore": 0.63, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.9 - }, - { - "name": "Geological", - "confidenceScore": 0.63 - } - ] - } - ], - "id": "3", - "warnings": [] - }, - { - "entities": [ - { - "text": "25th April", - "category": "Temporal", - "type": "Date", - "offset": 0, - "length": 10, - "confidenceScore": 0.58, - "tags": [ - { - "name": "Temporal", - "confidenceScore": 0.9 - }, - { - "name": "Date", - "confidenceScore": 0.58 - } - ], - "metadata": { - "metadataKind": "DateMetadata", - "dateValues": [ - { - "timex": "XXXX-04-25", - "value": "2022-04-25" - }, - { - "timex": "XXXX-04-25", - "value": "2023-04-25" - } - ] - } - }, - { - "text": "25th April Meeting", - "category": "Event", - "type": "Event", - "offset": 0, - "length": 18, - "confidenceScore": 0.55, - "tags": [ - { - "name": "Event", - "confidenceScore": 0.55 - } - ] - }, - { - "text": "25th April Meeting", - "category": "Event", - "type": "CulturalEvent", - "offset": 0, - "length": 18, - "confidenceScore": 0.55, - "tags": [ - { - "name": "Event", - "confidenceScore": 0.55 - }, - { - "name": "CulturalEvent", - "confidenceScore": 0.55 - } - ] - }, - { - "text": "Worldcup", - "category": "Event", - "type": "SportsEvent", - "offset": 0, - "length": 8, - "confidenceScore": 0.51, - "tags": [ - { - "name": "Event", - "confidenceScore": 0.55 - }, - { - "name": "SportsEvent", - "confidenceScore": 0.51 - } - ] - } - ], - "id": "4", - "warnings": [] - }, - { - "entities": [ - { - "text": "127.12.1.1", - "category": "IP", - "type": "IP", - "offset": 9, - "length": 10, - "confidenceScore": 0.8, - "tags": [ - { - "name": "IP", - "confidenceScore": 0.8 - } - ] - }, - { - "text": "5555555555", - "category": "PhoneNumber", - "type": "PhoneNumber", - "offset": 45, - "length": 9, - "confidenceScore": 0.8, - "tags": [ - { - "name": "PhoneNumber", - "confidenceScore": 0.8 - } - ] - } - ], - "id": "5", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulHealthcareDocumentTypePostRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulHealthcareDocumentTypePostRequest.json deleted file mode 100644 index 3c7aff2de00f..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulHealthcareDocumentTypePostRequest.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "operationId": "AnalyzeTextSubmitJob", - "title": "SuccessfulHealthcareDocumentTypePostRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "{Job ID}", - "body": { - "analysisInput": { - "documents": [ - { - "text": "Prescribed 100mg ibuprofen, taken twice daily.", - "id": "1", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "modelVersion": "latest", - "fhirVersion": "4.0.1", - "documentType": "DischargeSummary" - } - } - ] - } - }, - "responses": { - "202": { - "headers": { - "Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}?api-version=2025-05-15-preview" - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulHealthcareDocumentTypeTaskStatusRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulHealthcareDocumentTypeTaskStatusRequest.json deleted file mode 100644 index 5121c8443744..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulHealthcareDocumentTypeTaskStatusRequest.json +++ /dev/null @@ -1,554 +0,0 @@ -{ - "operationId": "AnalyzeTextJobStatus", - "title": "SuccessfulHealthcareDocumentTypeTaskStatusRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "15e4a46b-62e2-4386-8d36-9c2a92bb45dd" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "createdDateTime": "2022-09-06T23:47:43Z", - "displayName": "Providing Document Type", - "expirationDateTime": "2022-09-07T23:47:43Z", - "jobId": "15e4a46b-62e2-4386-8d36-9c2a92bb45dd", - "lastUpdatedDateTime": "2022-09-06T23:48:10Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2022-09-06T23:48:10.1762027Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "a", - "entities": [ - { - "offset": 11, - "length": 5, - "text": "100mg", - "category": "Dosage", - "confidenceScore": 0.98 - }, - { - "offset": 17, - "length": 9, - "text": "ibuprofen", - "category": "MedicationName", - "confidenceScore": 1.0, - "name": "ibuprofen", - "links": [ - { - "dataSource": "UMLS", - "id": "C0020740" - }, - { - "dataSource": "AOD", - "id": "0000019879" - }, - { - "dataSource": "ATC", - "id": "M01AE01" - }, - { - "dataSource": "CCPSS", - "id": "0046165" - }, - { - "dataSource": "CHV", - "id": "0000006519" - }, - { - "dataSource": "CSP", - "id": "2270-2077" - }, - { - "dataSource": "DRUGBANK", - "id": "DB01050" - }, - { - "dataSource": "GS", - "id": "1611" - }, - { - "dataSource": "LCH_NW", - "id": "sh97005926" - }, - { - "dataSource": "LNC", - "id": "LP16165-0" - }, - { - "dataSource": "MEDCIN", - "id": "40458" - }, - { - "dataSource": "MMSL", - "id": "d00015" - }, - { - "dataSource": "MSH", - "id": "D007052" - }, - { - "dataSource": "MTHSPL", - "id": "WK2XYI10QM" - }, - { - "dataSource": "NCI", - "id": "C561" - }, - { - "dataSource": "NCI_CTRP", - "id": "C561" - }, - { - "dataSource": "NCI_DCP", - "id": "00803" - }, - { - "dataSource": "NCI_DTP", - "id": "NSC0256857" - }, - { - "dataSource": "NCI_FDA", - "id": "WK2XYI10QM" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000613511" - }, - { - "dataSource": "NDDF", - "id": "002377" - }, - { - "dataSource": "PDQ", - "id": "CDR0000040475" - }, - { - "dataSource": "RCD", - "id": "x02MO" - }, - { - "dataSource": "RXNORM", - "id": "5640" - }, - { - "dataSource": "SNM", - "id": "E-7772" - }, - { - "dataSource": "SNMI", - "id": "C-603C0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "387207008" - }, - { - "dataSource": "USP", - "id": "m39860" - }, - { - "dataSource": "USPMG", - "id": "MTHU000060" - }, - { - "dataSource": "VANDF", - "id": "4017840" - } - ] - }, - { - "offset": 34, - "length": 11, - "text": "twice daily", - "category": "Frequency", - "confidenceScore": 1.0 - } - ], - "relations": [ - { - "confidenceScore": 1.0, - "relationType": "DosageOfMedication", - "entities": [ - { - "ref": "#/results/documents/0/entities/0", - "role": "Dosage" - }, - { - "ref": "#/results/documents/0/entities/1", - "role": "Medication" - } - ] - }, - { - "confidenceScore": 1.0, - "relationType": "FrequencyOfMedication", - "entities": [ - { - "ref": "#/results/documents/0/entities/1", - "role": "Medication" - }, - { - "ref": "#/results/documents/0/entities/2", - "role": "Frequency" - } - ] - } - ], - "warnings": [], - "fhirBundle": { - "resourceType": "Bundle", - "id": "6ee4a7c0-5911-4c4b-bea2-3c2a1fe5c65f", - "meta": { - "profile": [ - "http://hl7.org/fhir/4.0.1/StructureDefinition/Bundle" - ] - }, - "identifier": { - "system": "urn:ietf:rfc:3986", - "value": "urn:uuid:6ee4a7c0-5911-4c4b-bea2-3c2a1fe5c65f" - }, - "type": "document", - "entry": [ - { - "fullUrl": "Composition/5bd33290-b92e-4aa5-becf-535578207946", - "resource": { - "resourceType": "Composition", - "id": "5bd33290-b92e-4aa5-becf-535578207946", - "status": "final", - "type": { - "coding": [ - { - "system": "http://loinc.org", - "code": "18842-5", - "display": "Discharge summary" - } - ], - "text": "Discharge summary" - }, - "subject": { - "reference": "Patient/efcccdf7-87f0-4061-b553-09fc11734594", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/76214457-f94c-4ccf-95ef-ab31e7232d63", - "type": "Encounter", - "display": "unknown" - }, - "date": "2022-09-06", - "author": [ - { - "reference": "Practitioner/bba2dee3-2eb3-4973-b4b9-62d498b17046", - "type": "Practitioner", - "display": "Unknown" - } - ], - "title": "Discharge summary", - "section": [ - { - "title": "General", - "code": { - "coding": [ - { - "system": "", - "display": "Unrecognized Section" - } - ], - "text": "General" - }, - "text": { - "status": "additional", - "div": "
\r\n\t\t\t\t\t\t\t

General

\r\n\t\t\t\t\t\t\t

Prescribed 100mg ibuprofen, taken twice daily.

\r\n\t\t\t\t\t
" - }, - "entry": [ - { - "reference": "List/6d743a3e-e7a2-4cee-a0b5-64361b6c93ad", - "type": "List", - "display": "General" - } - ] - } - ] - } - }, - { - "fullUrl": "Practitioner/bba2dee3-2eb3-4973-b4b9-62d498b17046", - "resource": { - "resourceType": "Practitioner", - "id": "bba2dee3-2eb3-4973-b4b9-62d498b17046", - "name": [ - { - "text": "Unknown", - "family": "Unknown" - } - ] - } - }, - { - "fullUrl": "Patient/efcccdf7-87f0-4061-b553-09fc11734594", - "resource": { - "resourceType": "Patient", - "id": "efcccdf7-87f0-4061-b553-09fc11734594", - "gender": "unknown" - } - }, - { - "fullUrl": "Encounter/76214457-f94c-4ccf-95ef-ab31e7232d63", - "resource": { - "resourceType": "Encounter", - "id": "76214457-f94c-4ccf-95ef-ab31e7232d63", - "meta": { - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" - ] - }, - "status": "finished", - "class": { - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", - "display": "unknown" - }, - "subject": { - "reference": "Patient/efcccdf7-87f0-4061-b553-09fc11734594", - "type": "Patient" - }, - "period": { - "start": "2022-09-06", - "end": "2022-09-06" - } - } - }, - { - "fullUrl": "MedicationStatement/ac0264b6-63b7-4cf2-a7c3-f7340788aca7", - "resource": { - "resourceType": "MedicationStatement", - "id": "ac0264b6-63b7-4cf2-a7c3-f7340788aca7", - "extension": [ - { - "extension": [ - { - "url": "offset", - "valueInteger": 17 - }, - { - "url": "length", - "valueInteger": 9 - } - ], - "url": "http://hl7.org/fhir/StructureDefinition/derivation-reference" - } - ], - "status": "active", - "medicationCodeableConcept": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0020740", - "display": "ibuprofen" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/aod", - "code": "0000019879" - }, - { - "system": "http://www.whocc.no/atc", - "code": "M01AE01" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "0046165" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000006519" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/csp", - "code": "2270-2077" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/drugbank", - "code": "DB01050" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/gs", - "code": "1611" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch_nw", - "code": "sh97005926" - }, - { - "system": "http://loinc.org", - "code": "LP16165-0" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "40458" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mmsl", - "code": "d00015" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/msh", - "code": "D007052" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthspl", - "code": "WK2XYI10QM" - }, - { - "system": "http://ncimeta.nci.nih.gov", - "code": "C561" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctrp", - "code": "C561" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_dcp", - "code": "00803" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_dtp", - "code": "NSC0256857" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_fda", - "code": "WK2XYI10QM" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nci-gloss", - "code": "CDR0000613511" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nddf", - "code": "002377" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pdq", - "code": "CDR0000040475" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "x02MO" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rxnorm", - "code": "5640" - }, - { - "system": "http://snomed.info/sct", - "code": "E-7772" - }, - { - "system": "http://snomed.info/sct", - "code": "C-603C0" - }, - { - "system": "http://snomed.info/sct", - "code": "387207008" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/usp", - "code": "m39860" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/uspmg", - "code": "MTHU000060" - }, - { - "system": "http://hl7.org/fhir/ndfrt", - "code": "4017840" - } - ], - "text": "ibuprofen" - }, - "subject": { - "reference": "Patient/efcccdf7-87f0-4061-b553-09fc11734594", - "type": "Patient" - }, - "context": { - "reference": "Encounter/76214457-f94c-4ccf-95ef-ab31e7232d63", - "type": "Encounter", - "display": "unknown" - }, - "dosage": [ - { - "text": "100mg", - "timing": { - "repeat": { - "frequency": 2, - "period": 1, - "periodUnit": "d" - }, - "code": { - "text": "twice daily" - } - }, - "doseAndRate": [ - { - "doseQuantity": { - "value": 100 - } - } - ] - } - ] - } - }, - { - "fullUrl": "List/6d743a3e-e7a2-4cee-a0b5-64361b6c93ad", - "resource": { - "resourceType": "List", - "id": "6d743a3e-e7a2-4cee-a0b5-64361b6c93ad", - "status": "current", - "mode": "snapshot", - "title": "General", - "subject": { - "reference": "Patient/efcccdf7-87f0-4061-b553-09fc11734594", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/76214457-f94c-4ccf-95ef-ab31e7232d63", - "type": "Encounter", - "display": "unknown" - }, - "entry": [ - { - "item": { - "reference": "MedicationStatement/ac0264b6-63b7-4cf2-a7c3-f7340788aca7", - "type": "MedicationStatement", - "display": "ibuprofen" - } - } - ] - } - } - ] - } - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulHealthcarePostRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulHealthcarePostRequest.json deleted file mode 100644 index 30793bfedaf2..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulHealthcarePostRequest.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "operationId": "AnalyzeTextSubmitJob", - "title": "SuccessfulHealthcarePostRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "{Job ID}", - "body": { - "analysisInput": { - "documents": [ - { - "text": "Prescribed 100mg ibuprofen, taken twice daily.", - "id": "1", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "modelVersion": "latest" - } - } - ] - } - }, - "responses": { - "202": { - "headers": { - "Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}?api-version=2025-05-15-preview" - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulHealthcareTaskStatusRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulHealthcareTaskStatusRequest.json deleted file mode 100644 index c6c7999f9355..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulHealthcareTaskStatusRequest.json +++ /dev/null @@ -1,222 +0,0 @@ -{ - "operationId": "AnalyzeTextJobStatus", - "title": "SuccessfulHealthcareTaskStatusRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "1780194a-e9c1-4298-b0d4-fdc59ba818a0" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "createdDateTime": "2022-07-20T18:43:35Z", - "displayName": "Extracting Location & US Region", - "expirationDateTime": "2022-07-21T18:43:35Z", - "jobId": "1780194a-e9c1-4298-b0d4-fdc59ba818a0", - "lastUpdatedDateTime": "2022-07-20T18:43:36Z", - "status": "succeeded", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2022-07-20T18:43:36.7159045Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "1", - "entities": [ - { - "offset": 11, - "length": 5, - "text": "100mg", - "category": "Dosage", - "confidenceScore": 0.98 - }, - { - "offset": 17, - "length": 9, - "text": "ibuprofen", - "category": "MedicationName", - "confidenceScore": 1, - "name": "ibuprofen", - "links": [ - { - "dataSource": "UMLS", - "id": "C0020740" - }, - { - "dataSource": "AOD", - "id": "0000019879" - }, - { - "dataSource": "ATC", - "id": "M01AE01" - }, - { - "dataSource": "CCPSS", - "id": "0046165" - }, - { - "dataSource": "CHV", - "id": "0000006519" - }, - { - "dataSource": "CSP", - "id": "2270-2077" - }, - { - "dataSource": "DRUGBANK", - "id": "DB01050" - }, - { - "dataSource": "GS", - "id": "1611" - }, - { - "dataSource": "LCH_NW", - "id": "sh97005926" - }, - { - "dataSource": "LNC", - "id": "LP16165-0" - }, - { - "dataSource": "MEDCIN", - "id": "40458" - }, - { - "dataSource": "MMSL", - "id": "d00015" - }, - { - "dataSource": "MSH", - "id": "D007052" - }, - { - "dataSource": "MTHSPL", - "id": "WK2XYI10QM" - }, - { - "dataSource": "NCI", - "id": "C561" - }, - { - "dataSource": "NCI_CTRP", - "id": "C561" - }, - { - "dataSource": "NCI_DCP", - "id": "00803" - }, - { - "dataSource": "NCI_DTP", - "id": "NSC0256857" - }, - { - "dataSource": "NCI_FDA", - "id": "WK2XYI10QM" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000613511" - }, - { - "dataSource": "NDDF", - "id": "002377" - }, - { - "dataSource": "PDQ", - "id": "CDR0000040475" - }, - { - "dataSource": "RCD", - "id": "x02MO" - }, - { - "dataSource": "RXNORM", - "id": "5640" - }, - { - "dataSource": "SNM", - "id": "E-7772" - }, - { - "dataSource": "SNMI", - "id": "C-603C0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "387207008" - }, - { - "dataSource": "USP", - "id": "m39860" - }, - { - "dataSource": "USPMG", - "id": "MTHU000060" - }, - { - "dataSource": "VANDF", - "id": "4017840" - } - ] - }, - { - "offset": 34, - "length": 11, - "text": "twice daily", - "category": "Frequency", - "confidenceScore": 1 - } - ], - "relations": [ - { - "confidenceScore": 1, - "relationType": "DosageOfMedication", - "entities": [ - { - "ref": "#/results/documents/0/entities/0", - "role": "Dosage" - }, - { - "ref": "#/results/documents/0/entities/1", - "role": "Medication" - } - ] - }, - { - "confidenceScore": 1, - "relationType": "FrequencyOfMedication", - "entities": [ - { - "ref": "#/results/documents/0/entities/1", - "role": "Medication" - }, - { - "ref": "#/results/documents/0/entities/2", - "role": "Frequency" - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulKeyPhraseExtractionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulKeyPhraseExtractionRequest.json deleted file mode 100644 index 1ce055cfabbf..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulKeyPhraseExtractionRequest.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulKeyPhraseExtractionRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "KeyPhraseExtraction", - "parameters": { - "modelVersion": "latest" - }, - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "Microsoft was founded by Bill Gates and Paul Allen." - }, - { - "id": "2", - "language": "en", - "text": "Text Analytics is one of the Azure Cognitive Services." - }, - { - "id": "3", - "language": "en", - "text": "My cat might need to see a veterinarian." - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "KeyPhraseExtractionResults", - "results": { - "documents": [ - { - "id": "1", - "keyPhrases": [ - "Bill Gates", - "Paul Allen", - "Microsoft" - ], - "warnings": [] - }, - { - "id": "2", - "keyPhrases": [ - "Azure Cognitive Services", - "Text Analytics" - ], - "warnings": [] - }, - { - "id": "3", - "keyPhrases": [ - "cat", - "veterinarian" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulLanguageDetectionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulLanguageDetectionRequest.json deleted file mode 100644 index c1de4b0e4cec..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulLanguageDetectionRequest.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulLanguageDetectionRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "LanguageDetection", - "parameters": { - "modelVersion": "latest" - }, - "analysisInput": { - "documents": [ - { - "id": "1", - "text": "Hello world" - }, - { - "id": "2", - "text": "Bonjour tout le monde" - }, - { - "id": "3", - "text": "Hola mundo" - }, - { - "id": "4", - "text": "Tumhara naam kya hai?" - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [ - { - "detectedLanguage": { - "confidenceScore": 1, - "iso6391Name": "en", - "name": "English", - "scriptName": "Latin", - "scriptIso15924Code": "Latn" - }, - "id": "1", - "warnings": [] - }, - { - "detectedLanguage": { - "confidenceScore": 1, - "iso6391Name": "fr", - "name": "French", - "scriptName": "Latin", - "scriptIso15924Code": "Latn" - }, - "id": "2", - "warnings": [] - }, - { - "detectedLanguage": { - "confidenceScore": 1, - "iso6391Name": "es", - "name": "Spanish", - "scriptName": "Latin", - "scriptIso15924Code": "Latn" - }, - "id": "3", - "warnings": [] - }, - { - "detectedLanguage": { - "confidenceScore": 1, - "iso6391Name": "hi", - "name": "Hindi", - "scriptName": "Latin", - "scriptIso15924Code": "Latn" - }, - "id": "4", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-12-01" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulPiiEntityRecognitionExclusionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulPiiEntityRecognitionExclusionRequest.json deleted file mode 100644 index 0aee08e7cbe8..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulPiiEntityRecognitionExclusionRequest.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulPiiEntityRecognitionExclusionRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "PiiEntityRecognition", - "parameters": { - "modelVersion": "latest", - "excludePiiCategories": [ - "USSocialSecurityNumber" - ] - }, - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "My SSN is 859-98-0987" - }, - { - "id": "2", - "language": "en", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." - }, - { - "id": "3", - "language": "en", - "text": "Is 998.214.865-68 your Brazilian CPF number?" - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "id": "2", - "redactedText": "Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.", - "entities": [ - { - "category": "ABARoutingNumber", - "type": "ABARoutingNumber", - "confidenceScore": 0.75, - "length": 9, - "offset": 18, - "text": "111000025", - "tags": [ - { - "name": "Number", - "confidenceScore": 0.8 - }, - { - "name": "Numeric", - "confidenceScore": 0.8 - } - ] - } - ], - "warnings": [] - }, - { - "id": "3", - "redactedText": "Is ************** your Brazilian CPF number?", - "entities": [ - { - "category": "BRCPFNumber", - "type": "BRCPFNumber", - "confidenceScore": 0.85, - "length": 14, - "offset": 3, - "text": "998.214.865-68", - "tags": [ - { - "name": "Number", - "confidenceScore": 0.8 - }, - { - "name": "Numeric", - "confidenceScore": 0.8 - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulPiiEntityRecognitionMaskedEntities.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulPiiEntityRecognitionMaskedEntities.json deleted file mode 100644 index e4ef9df573d8..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulPiiEntityRecognitionMaskedEntities.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulPiiEntityRecognitionMaskedEntitiesRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "PiiEntityRecognition", - "parameters": { - "modelVersion": "latest", - "redactionPolicy": { - "policyKind": "entityMask" - } - }, - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "My name is John Doe My phone number is 424 878 9192" - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "id": "1", - "redactedText": "My name is [PERSON_1] My phone number is [PHONENUMBER_1]", - "entities": [ - { - "category": "Person", - "type": "Person", - "tags": [ - { - "name": "Person", - "confidenceScore": 0.65 - } - ], - "length": 8, - "offset": 11, - "mask": "[Person_1]", - "maskOffset": 11, - "maskLength": 9, - "text": "John Doe", - "confidenceScore": 0.65 - }, - { - "category": "PhoneNumber", - "type": "PhoneNumber", - "tags": [ - { - "name": "PhoneNumber", - "confidenceScore": 0.8 - } - ], - "length": 12, - "offset": 36, - "mask": "[PHONENUMBER_1]", - "maskOffset": 41, - "maskLength": 13, - "text": "424 878 9192", - "confidenceScore": 0.8 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulPiiEntityRecognitionRedactionPolicyRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulPiiEntityRecognitionRedactionPolicyRequest.json deleted file mode 100644 index a9e6150507c8..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulPiiEntityRecognitionRedactionPolicyRequest.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulPiiEntityRecognitionRedactionPolicyRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "PiiEntityRecognition", - "parameters": { - "modelVersion": "latest", - "redactionPolicy": { - "policyKind": "characterMask", - "redactionCharacter": "-" - } - }, - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "My SSN is 859-98-0987" - }, - { - "id": "2", - "language": "en", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." - }, - { - "id": "3", - "language": "en", - "text": "Is 998.214.865-68 your Brazilian CPF number?" - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "id": "1", - "redactedText": "My SSN is -----------", - "entities": [ - { - "category": "USSocialSecurityNumber", - "type": "USSocialSecurityNumber", - "confidenceScore": 0.65, - "length": 11, - "offset": 28, - "text": "859-98-0987", - "tags": [ - { - "name": "Number", - "confidenceScore": 0.8 - }, - { - "name": "Numeric", - "confidenceScore": 0.8 - } - ] - } - ], - "warnings": [] - }, - { - "id": "2", - "redactedText": "Your ABA number - --------- - is the first 9 digits in the lower left hand corner of your personal check.", - "entities": [ - { - "category": "ABARoutingNumber", - "type": "ABARoutingNumber", - "confidenceScore": 0.75, - "length": 9, - "offset": 18, - "text": "111000025", - "tags": [ - { - "name": "Number", - "confidenceScore": 0.8 - }, - { - "name": "Numeric", - "confidenceScore": 0.8 - } - ] - } - ], - "warnings": [] - }, - { - "id": "3", - "redactedText": "Is -------------- your Brazilian CPF number?", - "entities": [ - { - "category": "BRCPFNumber", - "type": "", - "confidenceScore": 0.85, - "length": 14, - "offset": 3, - "text": "998.214.865-68", - "tags": [ - { - "name": "Number", - "confidenceScore": 0.8 - }, - { - "name": "Numeric", - "confidenceScore": 0.8 - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulPiiEntityRecognitionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulPiiEntityRecognitionRequest.json deleted file mode 100644 index a293143bcfaa..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulPiiEntityRecognitionRequest.json +++ /dev/null @@ -1,123 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulPiiEntityRecognitionRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "PiiEntityRecognition", - "parameters": { - "modelVersion": "latest" - }, - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "My SSN is 859-98-0987" - }, - { - "id": "2", - "language": "en", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." - }, - { - "id": "3", - "language": "en", - "text": "Is 998.214.865-68 your Brazilian CPF number?" - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "id": "1", - "redactedText": "My SSN is ***********", - "entities": [ - { - "category": "USSocialSecurityNumber", - "type": "USSocialSecurityNumber", - "confidenceScore": 0.65, - "length": 11, - "offset": 28, - "text": "859-98-0987", - "tags": [ - { - "name": "Number", - "confidenceScore": 0.8 - }, - { - "name": "Numeric", - "confidenceScore": 0.8 - } - ] - } - ], - "warnings": [] - }, - { - "id": "2", - "redactedText": "Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.", - "entities": [ - { - "category": "ABARoutingNumber", - "type": "ABARoutingNumber", - "confidenceScore": 0.75, - "length": 9, - "offset": 18, - "text": "111000025", - "tags": [ - { - "name": "Number", - "confidenceScore": 0.8 - }, - { - "name": "Numeric", - "confidenceScore": 0.8 - } - ] - } - ], - "warnings": [] - }, - { - "id": "3", - "redactedText": "Is ************** your Brazilian CPF number?", - "entities": [ - { - "category": "BRCPFNumber", - "type": "BRCPFNumber", - "confidenceScore": 0.85, - "length": 14, - "offset": 3, - "text": "998.214.865-68", - "tags": [ - { - "name": "Number", - "confidenceScore": 0.8 - }, - { - "name": "Numeric", - "confidenceScore": 0.8 - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulSentimentAnalysisRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulSentimentAnalysisRequest.json deleted file mode 100644 index e64a31f70ffd..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/examples/2025-05-15-preview/SuccessfulSentimentAnalysisRequest.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulSentimentAnalysisRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "SentimentAnalysis", - "parameters": { - "modelVersion": "latest" - }, - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "Great atmosphere. Close to plenty of restaurants, hotels, and transit! Staff are friendly and helpful." - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "confidenceScores": { - "negative": 0, - "neutral": 0, - "positive": 1 - }, - "id": "1", - "sentences": [ - { - "targets": [ - { - "confidenceScores": { - "negative": 0, - "positive": 1 - }, - "length": 10, - "offset": 6, - "relations": [ - { - "ref": "#/documents/0/sentences/0/assessments/0", - "relationType": "assessment" - } - ], - "sentiment": "positive", - "text": "atmosphere" - } - ], - "confidenceScores": { - "negative": 0, - "neutral": 0, - "positive": 1 - }, - "length": 17, - "offset": 0, - "assessments": [ - { - "confidenceScores": { - "negative": 0, - "positive": 1 - }, - "isNegated": false, - "length": 5, - "offset": 0, - "sentiment": "positive", - "text": "great" - } - ], - "sentiment": "positive", - "text": "Great atmosphere." - }, - { - "targets": [ - { - "confidenceScores": { - "negative": 0.01, - "positive": 0.99 - }, - "length": 11, - "offset": 37, - "relations": [ - { - "ref": "#/documents/0/sentences/1/assessments/0", - "relationType": "assessment" - } - ], - "sentiment": "positive", - "text": "restaurants" - }, - { - "confidenceScores": { - "negative": 0.01, - "positive": 0.99 - }, - "length": 6, - "offset": 50, - "relations": [ - { - "ref": "#/documents/0/sentences/1/assessments/0", - "relationType": "assessment" - } - ], - "sentiment": "positive", - "text": "hotels" - } - ], - "confidenceScores": { - "negative": 0.01, - "neutral": 0.86, - "positive": 0.13 - }, - "length": 52, - "offset": 18, - "assessments": [ - { - "confidenceScores": { - "negative": 0.01, - "positive": 0.99 - }, - "isNegated": false, - "length": 15, - "offset": 18, - "sentiment": "positive", - "text": "Close to plenty" - } - ], - "sentiment": "neutral", - "text": "Close to plenty of restaurants, hotels, and transit!" - } - ], - "sentiment": "positive", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-10-01" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/analyzetext.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/analyzetext.json deleted file mode 100644 index 960a3761b802..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/analyzetext.json +++ /dev/null @@ -1,9866 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Microsoft Cognitive Language Service - Text Analysis", - "version": "2025-05-15-preview", - "description": "The language service API is a suite of natural language processing (NLP) skills built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction, language detection and question answering. Further documentation can be found in https://learn.microsoft.com/azure/cognitive-services/language-service/overview.0", - "x-typespec-generated": [ - { - "emitter": "@azure-tools/typespec-autorest" - } - ] - }, - "schemes": [ - "https" - ], - "x-ms-parameterized-host": { - "hostTemplate": "{Endpoint}/language", - "useSchemePrefix": false, - "parameters": [ - { - "name": "Endpoint", - "in": "path", - "description": "Supported Cognitive Services endpoint (e.g., https://.api.cognitiveservices.azure.com).", - "required": true, - "type": "string", - "format": "uri", - "x-ms-skip-url-encoding": true - } - ] - }, - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" - ], - "security": [ - { - "ApiKeyAuth": [] - }, - { - "OAuth2Auth": [ - "https://cognitiveservices.azure.com/.default" - ] - } - ], - "securityDefinitions": { - "ApiKeyAuth": { - "type": "apiKey", - "name": "Ocp-Apim-Subscription-Key", - "in": "header" - }, - "OAuth2Auth": { - "type": "oauth2", - "flow": "accessCode", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "scopes": { - "https://cognitiveservices.azure.com/.default": "" - }, - "tokenUrl": "https://login.microsoftonline.com/common/oauth2/token" - } - }, - "tags": [], - "paths": { - "/:analyze-text": { - "post": { - "operationId": "AnalyzeText", - "description": "Request text analysis over a collection of documents.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "showStats", - "in": "query", - "description": "(Optional) if set to true, response will contain request and document level statistics.", - "required": false, - "type": "boolean" - }, - { - "name": "body", - "in": "body", - "description": "The input documents to analyze.", - "required": true, - "schema": { - "$ref": "#/definitions/AnalyzeTextTask" - } - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/AnalyzeTextTaskResult" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - }, - "x-ms-examples": { - "SuccessfulEntityLinkingRequest": { - "$ref": "./examples/SuccessfulEntityLinkingRequest.json" - }, - "SuccessfulEntityRecognitionExclusionRequest": { - "$ref": "./examples/SuccessfulEntityRecognitionExclusionRequest.json" - }, - "SuccessfulEntityRecognitionInclusionRequest": { - "$ref": "./examples/SuccessfulEntityRecognitionInclusionRequest.json" - }, - "SuccessfulEntityRecognitionInferenceOptionsRequest": { - "$ref": "./examples/SuccessfulEntityRecognitionInferenceOptionsRequest.json" - }, - "SuccessfulEntityRecognitionOverlapPolicy": { - "$ref": "./examples/SuccessfulEntityRecognitionOverlapPolicy.json" - }, - "SuccessfulEntityRecognitionRequest": { - "$ref": "./examples/SuccessfulEntityRecognitionRequest.json" - }, - "SuccessfulKeyPhraseExtractionRequest": { - "$ref": "./examples/SuccessfulKeyPhraseExtractionRequest.json" - }, - "SuccessfulLanguageDetectionRequest": { - "$ref": "./examples/SuccessfulLanguageDetectionRequest.json" - }, - "SuccessfulPiiEntityRecognitionExclusionRequest": { - "$ref": "./examples/SuccessfulPiiEntityRecognitionExclusionRequest.json" - }, - "SuccessfulPiiEntityRecognitionMaskedEntitiesRequest": { - "$ref": "./examples/SuccessfulPiiEntityRecognitionMaskedEntities.json" - }, - "SuccessfulPiiEntityRecognitionRedactionPolicyRequest": { - "$ref": "./examples/SuccessfulPiiEntityRecognitionRedactionPolicyRequest.json" - }, - "SuccessfulPiiEntityRecognitionRequest": { - "$ref": "./examples/SuccessfulPiiEntityRecognitionRequest.json" - }, - "SuccessfulSentimentAnalysisRequest": { - "$ref": "./examples/SuccessfulSentimentAnalysisRequest.json" - } - } - } - }, - "/analyze-text/jobs": { - "post": { - "operationId": "AnalyzeTextSubmitJob", - "description": "Submit a collection of text documents for analysis. Specify one or more unique tasks to be executed as a long-running operation.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AnalyzeTextJobsInput" - } - } - ], - "responses": { - "202": { - "description": "The request has been accepted for processing, but processing has not yet completed.", - "headers": { - "Operation-Location": { - "type": "string", - "format": "uri", - "description": "The location for monitoring the operation state." - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - }, - "x-ms-examples": { - "SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit": { - "$ref": "./examples/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit.json" - }, - "SuccessfulAbstractiveSummarizationTaskSubmit": { - "$ref": "./examples/SuccessfulAbstractiveSummarizationTaskSubmit.json" - }, - "SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest": { - "$ref": "./examples/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json" - }, - "SuccessfulHealthcareDocumentTypePostRequest": { - "$ref": "./examples/SuccessfulHealthcareDocumentTypePostRequest.json" - }, - "SuccessfulHealthcarePostRequest": { - "$ref": "./examples/SuccessfulHealthcarePostRequest.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/analyze-text/jobs/{jobId}": { - "get": { - "operationId": "AnalyzeTextJobStatus", - "summary": "Get analysis status and results", - "description": "Get the status of an analysis job. A job can consist of one or more tasks. After all tasks succeed, the job transitions to the succeeded state and results are available for each task.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "jobId", - "in": "path", - "description": "job ID", - "required": true, - "type": "string", - "format": "uuid" - }, - { - "name": "showStats", - "in": "query", - "description": "(Optional) if set to true, response will contain request and document level statistics.", - "required": false, - "type": "boolean" - }, - { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the collection.", - "required": false, - "type": "integer", - "format": "int32" - }, - { - "name": "skip", - "in": "query", - "description": "An offset into the collection of the first resource to be returned.", - "required": false, - "type": "integer", - "format": "int32" - } - ], - "responses": { - "200": { - "description": "The request has succeeded.", - "schema": { - "$ref": "#/definitions/AnalyzeTextJobState" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - }, - "x-ms-examples": { - "SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult": { - "$ref": "./examples/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult.json" - }, - "SuccessfulAbstractiveSummarizationTaskResult": { - "$ref": "./examples/SuccessfulAbstractiveSummarizationTaskResult.json" - }, - "SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest": { - "$ref": "./examples/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json" - }, - "SuccessfulHealthcareDocumentTypeTaskStatusRequest": { - "$ref": "./examples/SuccessfulHealthcareDocumentTypeTaskStatusRequest.json" - }, - "SuccessfulHealthcareTaskStatusRequest": { - "$ref": "./examples/SuccessfulHealthcareTaskStatusRequest.json" - } - } - } - }, - "/analyze-text/jobs/{jobId}:cancel": { - "post": { - "operationId": "AnalyzeTextCancelJob", - "summary": "Cancel a long-running Text Analysis job.", - "description": "Cancel a long-running Text Analysis job.", - "parameters": [ - { - "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" - }, - { - "name": "jobId", - "in": "path", - "description": "The job ID to cancel.", - "required": true, - "type": "string", - "format": "uuid" - } - ], - "responses": { - "202": { - "description": "The request has been accepted for processing, but processing has not yet completed.", - "headers": { - "Operation-Location": { - "type": "string", - "format": "uri", - "description": "The location for monitoring the operation state." - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - }, - "headers": { - "x-ms-error-code": { - "type": "string", - "description": "String error code indicating what went wrong." - } - } - } - }, - "x-ms-examples": { - "SuccessfulAnalyzeTextJobsCancelRequest": { - "$ref": "./examples/SuccessfulAnalyzeTextJobsCancelRequest.json" - } - }, - "x-ms-long-running-operation": true - } - } - }, - "definitions": { - "AbstractiveSummarizationLROResult": { - "type": "object", - "description": "An object representing the results for an Abstractive Summarization task.", - "properties": { - "results": { - "$ref": "#/definitions/AbstractiveSummarizationResult", - "description": "Results of the task." - } - }, - "required": [ - "results" - ], - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - ], - "x-ms-discriminator-value": "AbstractiveSummarizationLROResults" - }, - "AbstractiveSummarizationLROTask": { - "type": "object", - "description": "An object representing the task definition for an Abstractive Summarization task.", - "properties": { - "parameters": { - "$ref": "#/definitions/AbstractiveSummarizationTaskParameters", - "description": "Parameters for the Abstractive Summarization task." - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - ], - "x-ms-discriminator-value": "AbstractiveSummarization" - }, - "AbstractiveSummarizationResult": { - "type": "object", - "description": "An object representing the pre-built Abstractive Summarization results of each document.", - "properties": { - "errors": { - "type": "array", - "description": "Errors by document id.", - "items": { - "$ref": "#/definitions/DocumentError" - } - }, - "statistics": { - "$ref": "#/definitions/RequestStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the request payload." - }, - "modelVersion": { - "type": "string", - "description": "This field indicates which model is used for scoring." - }, - "documents": { - "type": "array", - "description": "Response by document", - "items": { - "$ref": "#/definitions/AbstractiveSummaryDocumentResultWithDetectedLanguage" - } - } - }, - "required": [ - "errors", - "modelVersion", - "documents" - ] - }, - "AbstractiveSummarizationTaskParameters": { - "type": "object", - "description": "Supported parameters for the pre-built Abstractive Summarization task.", - "properties": { - "loggingOptOut": { - "type": "boolean", - "description": "logging opt out", - "default": false - }, - "modelVersion": { - "type": "string", - "description": "model version", - "default": "latest" - }, - "sentenceCount": { - "type": "integer", - "format": "int32", - "description": "Controls the approximate number of sentences in the output summaries." - }, - "stringIndexType": { - "type": "string", - "description": "String index type", - "default": "TextElements_v8", - "enum": [ - "TextElements_v8", - "UnicodeCodePoint", - "Utf16CodeUnit" - ], - "x-ms-enum": { - "name": "StringIndexType", - "modelAsString": true, - "values": [ - { - "name": "TextElements_v8", - "value": "TextElements_v8", - "description": "Returned offset and length values will correspond to TextElements (Graphemes and Grapheme clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is written in .Net Framework or .Net Core and you will be using StringInfo." - }, - { - "name": "UnicodeCodePoint", - "value": "UnicodeCodePoint", - "description": "Returned offset and length values will correspond to Unicode code points. Use this option if your application is written in a language that support Unicode, for example Python." - }, - { - "name": "Utf16CodeUnit", - "value": "Utf16CodeUnit", - "description": "Returned offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript." - } - ] - } - }, - "summaryLength": { - "$ref": "#/definitions/SummaryLengthBucket", - "description": "(NOTE: Recommended to use summaryLength over sentenceCount) Controls the approximate length of the output summaries." - }, - "instruction": { - "type": "string", - "description": "(Optional) If provided, the query will be used to generate the summary." - } - } - }, - "AbstractiveSummary": { - "type": "object", - "description": "An object representing a single summary with context for given document.", - "properties": { - "text": { - "type": "string", - "description": "The text of the summary." - }, - "contexts": { - "type": "array", - "description": "The context list of the summary.", - "items": { - "$ref": "#/definitions/SummaryContext" - } - } - }, - "required": [ - "text" - ] - }, - "AbstractiveSummaryDocumentResultWithDetectedLanguage": { - "type": "object", - "description": "An object representing the Abstractive Summarization result of a single document with detected language.", - "properties": { - "id": { - "type": "string", - "description": "Unique, non-empty document identifier." - }, - "warnings": { - "type": "array", - "description": "Warnings encountered while processing document.", - "items": { - "$ref": "#/definitions/DocumentWarning" - } - }, - "statistics": { - "$ref": "#/definitions/DocumentStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the document payload." - }, - "summaries": { - "type": "array", - "description": "A list of abstractive summaries.", - "items": { - "$ref": "#/definitions/AbstractiveSummary" - } - }, - "detectedLanguage": { - "$ref": "#/definitions/DetectedLanguage", - "description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document." - } - }, - "required": [ - "id", - "warnings", - "summaries" - ] - }, - "AgeMetadata": { - "type": "object", - "description": "Represents the Age entity Metadata model.", - "properties": { - "value": { - "type": "number", - "format": "double", - "description": "The numeric value that the extracted text denotes." - }, - "unit": { - "$ref": "#/definitions/AgeUnit", - "description": "Unit of measure for age." - } - }, - "required": [ - "value", - "unit" - ], - "allOf": [ - { - "$ref": "#/definitions/BaseMetadata" - } - ], - "x-ms-discriminator-value": "AgeMetadata" - }, - "AgeUnit": { - "type": "string", - "description": "The Age Unit of measurement", - "enum": [ - "Unspecified", - "Year", - "Month", - "Week", - "Day" - ], - "x-ms-enum": { - "name": "AgeUnit", - "modelAsString": true, - "values": [ - { - "name": "Unspecified", - "value": "Unspecified", - "description": "Unspecified time period" - }, - { - "name": "Year", - "value": "Year", - "description": "Time period of a year" - }, - { - "name": "Month", - "value": "Month", - "description": "Time period of a month" - }, - { - "name": "Week", - "value": "Week", - "description": "Time period of a week" - }, - { - "name": "Day", - "value": "Day", - "description": "Time period of a day" - } - ] - } - }, - "AllowOverlapEntityPolicyType": { - "type": "object", - "description": "Represents the allow overlap policy. Will apply no post processing logic for the entities. Whatever the model predicts is what will be returned to the user. This allows the user to get a full view of every single model's possible values and apply their own custom logic on entity selection", - "allOf": [ - { - "$ref": "#/definitions/BaseEntityOverlapPolicy" - } - ], - "x-ms-discriminator-value": "allowOverlap" - }, - "AnalyzeTextEntityLinkingInput": { - "type": "object", - "description": "Contains the analyze text Entity linking input.", - "properties": { - "analysisInput": { - "$ref": "#/definitions/MultiLanguageAnalysisInput", - "description": "Contains the analysis input to be handled by the service." - }, - "parameters": { - "$ref": "#/definitions/EntityLinkingTaskParameters", - "description": "Task parameters." - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTask" - } - ], - "x-ms-discriminator-value": "EntityLinking" - }, - "AnalyzeTextEntityRecognitionInput": { - "type": "object", - "description": "The entity recognition analyze text input task request.", - "properties": { - "analysisInput": { - "$ref": "#/definitions/MultiLanguageAnalysisInput", - "description": "The input to be analyzed." - }, - "parameters": { - "$ref": "#/definitions/EntitiesTaskParameters", - "description": "Task parameters." - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTask" - } - ], - "x-ms-discriminator-value": "EntityRecognition" - }, - "AnalyzeTextJobState": { - "type": "object", - "description": "The object containing the analyze job LRO job state.", - "properties": { - "displayName": { - "type": "string", - "description": "display name" - }, - "createdDateTime": { - "type": "string", - "format": "date-time", - "description": "Date and time job created" - }, - "expirationDateTime": { - "type": "string", - "format": "date-time", - "description": "Date and time job expires" - }, - "jobId": { - "$ref": "#/definitions/Azure.Core.uuid", - "description": "job ID", - "readOnly": true - }, - "lastUpdatedDateTime": { - "type": "string", - "format": "date-time", - "description": "last updated date and time" - }, - "status": { - "$ref": "#/definitions/State", - "description": "status" - }, - "errors": { - "type": "array", - "description": "errors", - "items": { - "$ref": "#/definitions/Error" - } - }, - "nextLink": { - "type": "string", - "description": "next link" - }, - "tasks": { - "$ref": "#/definitions/Tasks", - "description": "List of tasks." - }, - "statistics": { - "$ref": "#/definitions/RequestStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the request payload." - } - }, - "required": [ - "createdDateTime", - "jobId", - "lastUpdatedDateTime", - "status", - "tasks" - ] - }, - "AnalyzeTextJobsInput": { - "type": "object", - "description": "The input object for the analyze text LRO.", - "properties": { - "displayName": { - "type": "string", - "description": "Name for the task." - }, - "analysisInput": { - "$ref": "#/definitions/MultiLanguageAnalysisInput", - "description": "Contains the input to be analyzed." - }, - "tasks": { - "type": "array", - "description": "List of tasks to be performed as part of the LRO.", - "items": { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - }, - "defaultLanguage": { - "type": "string", - "description": "Default language to use for records requesting automatic language detection." - }, - "cancelAfter": { - "type": "number", - "format": "float", - "description": "Optional duration in seconds after which the job will be canceled if not completed." - } - }, - "required": [ - "analysisInput", - "tasks" - ] - }, - "AnalyzeTextKeyPhraseExtractionInput": { - "type": "object", - "description": "Contains the analyze text KeyPhraseExtraction task input.", - "properties": { - "analysisInput": { - "$ref": "#/definitions/MultiLanguageAnalysisInput", - "description": "Contains the input documents." - }, - "parameters": { - "$ref": "#/definitions/KeyPhraseTaskParameters", - "description": "Key phrase extraction task parameters." - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTask" - } - ], - "x-ms-discriminator-value": "KeyPhraseExtraction" - }, - "AnalyzeTextLROResult": { - "type": "object", - "description": "Contains the AnalyzeText long running operation result object.", - "properties": { - "lastUpdateDateTime": { - "type": "string", - "format": "date-time", - "description": "The last updated time in UTC for the task." - }, - "status": { - "$ref": "#/definitions/State", - "description": "The status of the task at the mentioned last update time." - }, - "taskName": { - "type": "string", - "description": "task name" - }, - "kind": { - "$ref": "#/definitions/AnalyzeTextLROResultsKind", - "description": "Kind of the task." - } - }, - "discriminator": "kind", - "required": [ - "lastUpdateDateTime", - "status", - "kind" - ] - }, - "AnalyzeTextLROResultsKind": { - "type": "string", - "description": "The kind of the response object returned by the analyze-text long running task.", - "enum": [ - "SentimentAnalysisLROResults", - "EntityRecognitionLROResults", - "PiiEntityRecognitionLROResults", - "KeyPhraseExtractionLROResults", - "EntityLinkingLROResults", - "HealthcareLROResults", - "CustomEntityRecognitionLROResults", - "CustomSingleLabelClassificationLROResults", - "CustomMultiLabelClassificationLROResults", - "ExtractiveSummarizationLROResults", - "AbstractiveSummarizationLROResults" - ], - "x-ms-enum": { - "name": "AnalyzeTextLROResultsKind", - "modelAsString": true, - "values": [ - { - "name": "SentimentAnalysisLROResults", - "value": "SentimentAnalysisLROResults", - "description": "Sentiment analysis LRO results" - }, - { - "name": "EntityRecognitionLROResults", - "value": "EntityRecognitionLROResults", - "description": "Entity recognition LRO results" - }, - { - "name": "PiiEntityRecognitionLROResults", - "value": "PiiEntityRecognitionLROResults", - "description": "PII entity recognition LRO results" - }, - { - "name": "KeyPhraseExtractionLROResults", - "value": "KeyPhraseExtractionLROResults", - "description": "Key phrase extraction LRO results" - }, - { - "name": "EntityLinkingLROResults", - "value": "EntityLinkingLROResults", - "description": "Entity linking LRO results" - }, - { - "name": "HealthcareLROResults", - "value": "HealthcareLROResults", - "description": "Healthcare LRO results" - }, - { - "name": "CustomEntityRecognitionLROResults", - "value": "CustomEntityRecognitionLROResults", - "description": "Custom entity recognition LRO results" - }, - { - "name": "CustomSingleLabelClassificationLROResults", - "value": "CustomSingleLabelClassificationLROResults", - "description": "Custom single label classification LRO results" - }, - { - "name": "CustomMultiLabelClassificationLROResults", - "value": "CustomMultiLabelClassificationLROResults", - "description": "Custom multi label classification LRO results" - }, - { - "name": "ExtractiveSummarizationLROResults", - "value": "ExtractiveSummarizationLROResults", - "description": "Extractive summarization LRO results" - }, - { - "name": "AbstractiveSummarizationLROResults", - "value": "AbstractiveSummarizationLROResults", - "description": "Abstractive summarization LRO results" - } - ] - } - }, - "AnalyzeTextLROTask": { - "type": "object", - "description": "The long running task to be performed by the service on the input documents.", - "properties": { - "taskName": { - "type": "string", - "description": "task name" - }, - "kind": { - "$ref": "#/definitions/AnalyzeTextLROTaskKind", - "description": "The kind of task to perform." - } - }, - "discriminator": "kind", - "required": [ - "kind" - ] - }, - "AnalyzeTextLROTaskKind": { - "type": "string", - "description": "The kind of the long running analyze text tasks supported.", - "enum": [ - "SentimentAnalysis", - "EntityRecognition", - "PiiEntityRecognition", - "KeyPhraseExtraction", - "EntityLinking", - "Healthcare", - "CustomEntityRecognition", - "CustomSingleLabelClassification", - "CustomMultiLabelClassification", - "ExtractiveSummarization", - "AbstractiveSummarization" - ], - "x-ms-enum": { - "name": "AnalyzeTextLROTaskKind", - "modelAsString": true, - "values": [ - { - "name": "SentimentAnalysis", - "value": "SentimentAnalysis", - "description": "Sentiment analysis task" - }, - { - "name": "EntityRecognition", - "value": "EntityRecognition", - "description": "Entity recognition task" - }, - { - "name": "PiiEntityRecognition", - "value": "PiiEntityRecognition", - "description": "PII entity recognition task" - }, - { - "name": "KeyPhraseExtraction", - "value": "KeyPhraseExtraction", - "description": "Key phrase extraction task" - }, - { - "name": "EntityLinking", - "value": "EntityLinking", - "description": "Entity linking task" - }, - { - "name": "Healthcare", - "value": "Healthcare", - "description": "Healthcare task" - }, - { - "name": "CustomEntityRecognition", - "value": "CustomEntityRecognition", - "description": "Custom entity recognition task" - }, - { - "name": "CustomSingleLabelClassification", - "value": "CustomSingleLabelClassification", - "description": "Custom single label classification task" - }, - { - "name": "CustomMultiLabelClassification", - "value": "CustomMultiLabelClassification", - "description": "Custom multi label classification task" - }, - { - "name": "ExtractiveSummarization", - "value": "ExtractiveSummarization", - "description": "Extractive summarization task" - }, - { - "name": "AbstractiveSummarization", - "value": "AbstractiveSummarization", - "description": "Abstractive summarization task" - } - ] - } - }, - "AnalyzeTextLanguageDetectionInput": { - "type": "object", - "description": "Contains the language detection document analysis task input.", - "properties": { - "analysisInput": { - "$ref": "#/definitions/LanguageDetectionAnalysisInput", - "description": "Documents to be analyzed." - }, - "parameters": { - "$ref": "#/definitions/LanguageDetectionTaskParameters", - "description": "task parameters." - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTask" - } - ], - "x-ms-discriminator-value": "LanguageDetection" - }, - "AnalyzeTextPiiEntitiesRecognitionInput": { - "type": "object", - "description": "Contains the analyze text PIIEntityRecognition task input.", - "properties": { - "analysisInput": { - "$ref": "#/definitions/MultiLanguageAnalysisInput", - "description": "Contains the input documents." - }, - "parameters": { - "$ref": "#/definitions/PiiTaskParameters", - "description": "Pii task parameters." - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTask" - } - ], - "x-ms-discriminator-value": "PiiEntityRecognition" - }, - "AnalyzeTextSentimentAnalysisInput": { - "type": "object", - "description": "Contains the analyze text SentimentAnalysis task input.", - "properties": { - "analysisInput": { - "$ref": "#/definitions/MultiLanguageAnalysisInput", - "description": "Contains the input documents." - }, - "parameters": { - "$ref": "#/definitions/SentimentAnalysisTaskParameters", - "description": "Sentiment Analysis task parameters." - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTask" - } - ], - "x-ms-discriminator-value": "SentimentAnalysis" - }, - "AnalyzeTextTask": { - "type": "object", - "description": "Collection of documents to analyze and a single task to execute.", - "properties": { - "kind": { - "$ref": "#/definitions/AnalyzeTextTaskKind", - "description": "The kind of task to perform." - } - }, - "discriminator": "kind", - "required": [ - "kind" - ] - }, - "AnalyzeTextTaskKind": { - "type": "string", - "description": "The kind of the analyze-text tasks supported.", - "enum": [ - "SentimentAnalysis", - "EntityRecognition", - "PiiEntityRecognition", - "KeyPhraseExtraction", - "LanguageDetection", - "EntityLinking" - ], - "x-ms-enum": { - "name": "AnalyzeTextTaskKind", - "modelAsString": true, - "values": [ - { - "name": "SentimentAnalysis", - "value": "SentimentAnalysis", - "description": "Sentiment analysis task" - }, - { - "name": "EntityRecognition", - "value": "EntityRecognition", - "description": "Entity recognition task" - }, - { - "name": "PiiEntityRecognition", - "value": "PiiEntityRecognition", - "description": "PII entity recognition task" - }, - { - "name": "KeyPhraseExtraction", - "value": "KeyPhraseExtraction", - "description": "Key phrase extraction task" - }, - { - "name": "LanguageDetection", - "value": "LanguageDetection", - "description": "Language detection task" - }, - { - "name": "EntityLinking", - "value": "EntityLinking", - "description": "Entity linking task" - } - ] - } - }, - "AnalyzeTextTaskResult": { - "type": "object", - "description": "The result object for the analyze task.", - "properties": { - "kind": { - "$ref": "#/definitions/AnalyzeTextTaskResultsKind", - "description": "The kind of task result." - } - }, - "discriminator": "kind", - "required": [ - "kind" - ] - }, - "AnalyzeTextTaskResultsKind": { - "type": "string", - "description": "The kind of the response object returned by the analyze-text task.", - "enum": [ - "SentimentAnalysisResults", - "EntityRecognitionResults", - "PiiEntityRecognitionResults", - "KeyPhraseExtractionResults", - "LanguageDetectionResults", - "EntityLinkingResults" - ], - "x-ms-enum": { - "name": "AnalyzeTextTaskResultsKind", - "modelAsString": true, - "values": [ - { - "name": "SentimentAnalysisResults", - "value": "SentimentAnalysisResults", - "description": "Sentiment analysis results" - }, - { - "name": "EntityRecognitionResults", - "value": "EntityRecognitionResults", - "description": "Entity recognition results" - }, - { - "name": "PiiEntityRecognitionResults", - "value": "PiiEntityRecognitionResults", - "description": "PII entity recognition results" - }, - { - "name": "KeyPhraseExtractionResults", - "value": "KeyPhraseExtractionResults", - "description": "Key phrase extraction results" - }, - { - "name": "LanguageDetectionResults", - "value": "LanguageDetectionResults", - "description": "Language detection results" - }, - { - "name": "EntityLinkingResults", - "value": "EntityLinkingResults", - "description": "Entity linking results" - } - ] - } - }, - "AreaMetadata": { - "type": "object", - "description": "Represents the Area entity Metadata model.", - "properties": { - "value": { - "type": "number", - "format": "double", - "description": "The numeric value that the extracted text denotes." - }, - "unit": { - "$ref": "#/definitions/AreaUnit", - "description": "Unit of measure for area." - } - }, - "required": [ - "value", - "unit" - ], - "allOf": [ - { - "$ref": "#/definitions/BaseMetadata" - } - ], - "x-ms-discriminator-value": "AreaMetadata" - }, - "AreaUnit": { - "type": "string", - "description": "The area unit of measurement.", - "enum": [ - "Unspecified", - "SquareKilometer", - "SquareHectometer", - "SquareDecameter", - "SquareDecimeter", - "SquareMeter", - "SquareCentimeter", - "SquareMillimeter", - "SquareInch", - "SquareFoot", - "SquareMile", - "SquareYard", - "Acre" - ], - "x-ms-enum": { - "name": "AreaUnit", - "modelAsString": true, - "values": [ - { - "name": "Unspecified", - "value": "Unspecified", - "description": "Unspecified area unit" - }, - { - "name": "SquareKilometer", - "value": "SquareKilometer", - "description": "Area unit in square kilometers" - }, - { - "name": "SquareHectometer", - "value": "SquareHectometer", - "description": "Area unit in square hectometers" - }, - { - "name": "SquareDecameter", - "value": "SquareDecameter", - "description": "Area unit in square decameters" - }, - { - "name": "SquareDecimeter", - "value": "SquareDecimeter", - "description": "Area unit in square decimeters" - }, - { - "name": "SquareMeter", - "value": "SquareMeter", - "description": "Area unit in square meters" - }, - { - "name": "SquareCentimeter", - "value": "SquareCentimeter", - "description": "Area unit in square centimeters" - }, - { - "name": "SquareMillimeter", - "value": "SquareMillimeter", - "description": "Area unit in square millimeters" - }, - { - "name": "SquareInch", - "value": "SquareInch", - "description": "Area unit in square inches" - }, - { - "name": "SquareFoot", - "value": "SquareFoot", - "description": "Area unit in square feet" - }, - { - "name": "SquareMile", - "value": "SquareMile", - "description": "Area unit in square miles" - }, - { - "name": "SquareYard", - "value": "SquareYard", - "description": "Area unit in square yards" - }, - { - "name": "Acre", - "value": "Acre", - "description": "Area unit in acres" - } - ] - } - }, - "Association": { - "type": "string", - "description": "Describes if the entity is the subject of the text or if it describes someone else.", - "enum": [ - "subject", - "other" - ], - "x-ms-enum": { - "name": "Association", - "modelAsString": false, - "values": [ - { - "name": "subject", - "value": "subject", - "description": "Subject association" - }, - { - "name": "other", - "value": "other", - "description": "Other association" - } - ] - } - }, - "Azure.Core.uuid": { - "type": "string", - "format": "uuid", - "description": "Universally Unique Identifier" - }, - "BaseEntityOverlapPolicy": { - "type": "object", - "description": "The abstract base class for entity OverlapPolicy.", - "properties": { - "policyKind": { - "type": "string", - "description": "The entity OverlapPolicy object kind.", - "default": "matchLongest", - "enum": [ - "matchLongest", - "allowOverlap" - ], - "x-ms-enum": { - "name": "policyKind", - "modelAsString": true, - "values": [ - { - "name": "matchLongest", - "value": "matchLongest", - "description": "Represents MatchLongestEntityPolicyType" - }, - { - "name": "allowOverlap", - "value": "allowOverlap", - "description": "Represents AllowOverlapEntityPolicyType" - } - ] - } - } - }, - "discriminator": "policyKind", - "required": [ - "policyKind" - ] - }, - "BaseMetadata": { - "type": "object", - "description": "The abstract base class for entity Metadata.", - "properties": { - "metadataKind": { - "$ref": "#/definitions/MetadataKind", - "description": "The entity Metadata object kind." - } - }, - "discriminator": "metadataKind", - "required": [ - "metadataKind" - ] - }, - "BaseRedactionPolicy": { - "type": "object", - "description": "The abstract base class for RedactionPolicy.", - "properties": { - "policyKind": { - "type": "string", - "description": "The entity RedactionPolicy object kind.", - "default": "characterMask", - "enum": [ - "noMask", - "characterMask", - "entityMask" - ], - "x-ms-enum": { - "name": "RedactionPolicyKind", - "modelAsString": true, - "values": [ - { - "name": "noMask", - "value": "noMask", - "description": "Do not redact detected entities." - }, - { - "name": "characterMask", - "value": "characterMask", - "description": "React detected entities with redaction character." - }, - { - "name": "entityMask", - "value": "entityMask", - "description": "Redact detected entities with entity type." - } - ] - } - } - }, - "discriminator": "policyKind", - "required": [ - "policyKind" - ] - }, - "Certainty": { - "type": "string", - "description": "Describes the entities certainty and polarity.", - "enum": [ - "positive", - "positivePossible", - "neutralPossible", - "negativePossible", - "negative" - ], - "x-ms-enum": { - "name": "Certainty", - "modelAsString": false, - "values": [ - { - "name": "positive", - "value": "positive", - "description": "Positive certainty" - }, - { - "name": "positivePossible", - "value": "positivePossible", - "description": "Possibly positive certainty" - }, - { - "name": "neutralPossible", - "value": "neutralPossible", - "description": "Possibly neutral certainty" - }, - { - "name": "negativePossible", - "value": "negativePossible", - "description": "Possibly negative certainty" - }, - { - "name": "negative", - "value": "negative", - "description": "Negative certainty" - } - ] - } - }, - "CharacterMaskPolicyType": { - "type": "object", - "description": "Represents the policy of redacting with a redaction character", - "properties": { - "redactionCharacter": { - "type": "string", - "description": "Optional parameter to use a Custom Character to be used for redaction in PII responses. Default character will bce * as before. We allow specific ascii characters for redaction.", - "default": "*", - "enum": [ - "!", - "#", - "$", - "%", - "&", - "*", - "+", - "-", - "=", - "?", - "@", - "^", - "_", - "~" - ], - "x-ms-enum": { - "name": "redactionCharacter", - "modelAsString": true, - "values": [ - { - "name": "exclamationPoint", - "value": "!", - "description": "Exclamation point character" - }, - { - "name": "numberSign", - "value": "#", - "description": "Number sign character" - }, - { - "name": "dollar", - "value": "$", - "description": "Dollar sign character" - }, - { - "name": "perCent", - "value": "%", - "description": "Percent sign character" - }, - { - "name": "ampersand", - "value": "&", - "description": "Ampersand character" - }, - { - "name": "asterisk", - "value": "*", - "description": "Asterisk character" - }, - { - "name": "plus", - "value": "+", - "description": "Plus sign character" - }, - { - "name": "minus", - "value": "-", - "description": "Minus sign character" - }, - { - "name": "equals", - "value": "=", - "description": "Equals sign character" - }, - { - "name": "questionMark", - "value": "?", - "description": "Question mark character" - }, - { - "name": "atSign", - "value": "@", - "description": "At sign character" - }, - { - "name": "caret", - "value": "^", - "description": "Caret character" - }, - { - "name": "underscore", - "value": "_", - "description": "Underscore character" - }, - { - "name": "tilde", - "value": "~", - "description": "Tilde character" - } - ] - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/BaseRedactionPolicy" - } - ], - "x-ms-discriminator-value": "characterMask" - }, - "ClassificationDocumentResultWithDetectedLanguage": { - "type": "object", - "description": "Contains the classification doc result for the task with detected language.", - "properties": { - "id": { - "type": "string", - "description": "Unique, non-empty document identifier." - }, - "warnings": { - "type": "array", - "description": "Warnings encountered while processing document.", - "items": { - "$ref": "#/definitions/DocumentWarning" - } - }, - "statistics": { - "$ref": "#/definitions/DocumentStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the document payload." - }, - "class": { - "type": "array", - "description": "Contains the classification doc results for all docs.", - "items": { - "$ref": "#/definitions/ClassificationResult" - } - }, - "detectedLanguage": { - "$ref": "#/definitions/DetectedLanguage", - "description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document." - } - }, - "required": [ - "id", - "warnings", - "class" - ] - }, - "ClassificationResult": { - "type": "object", - "description": "Contains the classification result.", - "properties": { - "category": { - "type": "string", - "description": "Classification type." - }, - "confidenceScore": { - "type": "number", - "format": "double", - "description": "Confidence score between 0 and 1 of the recognized class." - } - }, - "required": [ - "category", - "confidenceScore" - ] - }, - "Conditionality": { - "type": "string", - "description": "Describes any conditionality on the entity.", - "enum": [ - "hypothetical", - "conditional" - ], - "x-ms-enum": { - "name": "Conditionality", - "modelAsString": false, - "values": [ - { - "name": "hypothetical", - "value": "hypothetical", - "description": "Hypothetical conditionality" - }, - { - "name": "conditional", - "value": "conditional", - "description": "Conditional conditionality" - } - ] - } - }, - "CurrencyMetadata": { - "type": "object", - "description": "Represents the Currency ) entity Metadata model.", - "properties": { - "value": { - "type": "number", - "format": "double", - "description": "The numeric value that the extracted text denotes." - }, - "unit": { - "type": "string", - "description": "Currency unit." - }, - "iso4217": { - "type": "string", - "description": "The alphabetic code based on another ISO standard, ISO 3166, which lists the codes for country names. The first two letters of the ISO 4217 three-letter code are the same as the code for the country name, and, where possible, the third letter corresponds to the first letter of the currency name." - } - }, - "required": [ - "value", - "unit" - ], - "allOf": [ - { - "$ref": "#/definitions/BaseMetadata" - } - ], - "x-ms-discriminator-value": "CurrencyMetadata" - }, - "CustomEntitiesLROTask": { - "type": "object", - "description": "Contains the custom text LRO task.", - "properties": { - "parameters": { - "$ref": "#/definitions/CustomEntitiesTaskParameters", - "description": "task parameters." - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - ], - "x-ms-discriminator-value": "CustomEntityRecognition" - }, - "CustomEntitiesResult": { - "type": "object", - "description": "Contains the list of detected custom entities result for the documents.", - "properties": { - "errors": { - "type": "array", - "description": "Errors by document id.", - "items": { - "$ref": "#/definitions/DocumentError" - } - }, - "statistics": { - "$ref": "#/definitions/RequestStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the request payload." - }, - "projectName": { - "type": "string", - "description": "This field indicates the project name for the model." - }, - "deploymentName": { - "type": "string", - "description": "This field indicates the deployment name for the model." - }, - "documents": { - "type": "array", - "description": "Enumeration of the document results.", - "items": { - "$ref": "#/definitions/EntitiesDocumentResultWithDetectedLanguage" - } - } - }, - "required": [ - "errors", - "projectName", - "deploymentName", - "documents" - ] - }, - "CustomEntitiesTaskParameters": { - "type": "object", - "description": "Supported parameters for a Custom Entities task.", - "properties": { - "loggingOptOut": { - "type": "boolean", - "description": "logging opt out", - "default": false - }, - "projectName": { - "type": "string", - "description": "This field indicates the project name for the model." - }, - "deploymentName": { - "type": "string", - "description": "This field indicates the deployment name for the model." - }, - "stringIndexType": { - "type": "string", - "description": "Optional parameter to provide the string index type used to interpret string offsets. Defaults to TextElements (Graphemes).", - "default": "TextElements_v8", - "enum": [ - "TextElements_v8", - "UnicodeCodePoint", - "Utf16CodeUnit" - ], - "x-ms-enum": { - "name": "StringIndexType", - "modelAsString": true, - "values": [ - { - "name": "TextElements_v8", - "value": "TextElements_v8", - "description": "Returned offset and length values will correspond to TextElements (Graphemes and Grapheme clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is written in .Net Framework or .Net Core and you will be using StringInfo." - }, - { - "name": "UnicodeCodePoint", - "value": "UnicodeCodePoint", - "description": "Returned offset and length values will correspond to Unicode code points. Use this option if your application is written in a language that support Unicode, for example Python." - }, - { - "name": "Utf16CodeUnit", - "value": "Utf16CodeUnit", - "description": "Returned offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript." - } - ] - } - } - }, - "required": [ - "projectName", - "deploymentName" - ] - }, - "CustomEntityRecognitionLROResult": { - "type": "object", - "description": "Contains the custom entity recognition job result.", - "properties": { - "results": { - "$ref": "#/definitions/CustomEntitiesResult", - "description": "List of results." - } - }, - "required": [ - "results" - ], - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - ], - "x-ms-discriminator-value": "CustomEntityRecognitionLROResults" - }, - "CustomLabelClassificationResult": { - "type": "object", - "description": "Contains the custom label classification results.", - "properties": { - "errors": { - "type": "array", - "description": "Errors by document id.", - "items": { - "$ref": "#/definitions/DocumentError" - } - }, - "statistics": { - "$ref": "#/definitions/RequestStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the request payload." - }, - "projectName": { - "type": "string", - "description": "This field indicates the project name for the model." - }, - "deploymentName": { - "type": "string", - "description": "This field indicates the deployment name for the model." - }, - "documents": { - "type": "array", - "description": "Response by document", - "items": { - "$ref": "#/definitions/ClassificationDocumentResultWithDetectedLanguage" - } - } - }, - "required": [ - "errors", - "projectName", - "deploymentName", - "documents" - ] - }, - "CustomMultiLabelClassificationLROResult": { - "type": "object", - "description": "Contains the custom multi label classification job result.", - "properties": { - "results": { - "$ref": "#/definitions/CustomLabelClassificationResult", - "description": "List of results." - } - }, - "required": [ - "results" - ], - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - ], - "x-ms-discriminator-value": "CustomMultiLabelClassificationLROResults" - }, - "CustomMultiLabelClassificationLROTask": { - "type": "object", - "description": "Use custom models to classify text into multi label taxonomy", - "properties": { - "parameters": { - "$ref": "#/definitions/CustomMultiLabelClassificationTaskParameters", - "description": "Task parameters." - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - ], - "x-ms-discriminator-value": "CustomMultiLabelClassification" - }, - "CustomMultiLabelClassificationTaskParameters": { - "type": "object", - "description": "Supported parameters for a Custom Multi Classification task.", - "properties": { - "loggingOptOut": { - "type": "boolean", - "description": "logging opt out", - "default": false - }, - "projectName": { - "type": "string", - "description": "This field indicates the project name for the model." - }, - "deploymentName": { - "type": "string", - "description": "This field indicates the deployment name for the model." - } - }, - "required": [ - "projectName", - "deploymentName" - ] - }, - "CustomSingleLabelClassificationLROResult": { - "type": "object", - "description": "Contains the custom single label classification job result.", - "properties": { - "results": { - "$ref": "#/definitions/CustomLabelClassificationResult", - "description": "List of results." - } - }, - "required": [ - "results" - ], - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - ], - "x-ms-discriminator-value": "CustomSingleLabelClassificationLROResults" - }, - "CustomSingleLabelClassificationLROTask": { - "type": "object", - "description": "Use custom models to classify text into single label taxonomy", - "properties": { - "parameters": { - "$ref": "#/definitions/CustomSingleLabelClassificationTaskParameters", - "description": "Task parameters" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - ], - "x-ms-discriminator-value": "CustomSingleLabelClassification" - }, - "CustomSingleLabelClassificationTaskParameters": { - "type": "object", - "description": "Supported parameters for a Custom Single Classification task.", - "properties": { - "loggingOptOut": { - "type": "boolean", - "description": "logging opt out", - "default": false - }, - "projectName": { - "type": "string", - "description": "This field indicates the project name for the model." - }, - "deploymentName": { - "type": "string", - "description": "This field indicates the deployment name for the model." - } - }, - "required": [ - "projectName", - "deploymentName" - ] - }, - "DateMetadata": { - "type": "object", - "description": "A Metadata for date entity instances.", - "properties": { - "dateValues": { - "type": "array", - "description": "List of date values.", - "items": { - "$ref": "#/definitions/DateValue" - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/BaseMetadata" - } - ], - "x-ms-discriminator-value": "DateMetadata" - }, - "DateTimeMetadata": { - "type": "object", - "description": "A Metadata for datetime entity instances.", - "properties": { - "dateValues": { - "type": "array", - "description": "List of date values.", - "items": { - "$ref": "#/definitions/DateValue" - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/BaseMetadata" - } - ], - "x-ms-discriminator-value": "DateTimeMetadata" - }, - "DateValue": { - "type": "object", - "description": "Represents the date value.", - "properties": { - "timex": { - "type": "string", - "description": "An extended ISO 8601 date/time representation as described in (https://github.com/Microsoft/Recognizers-Text/blob/master/Patterns/English/English-DateTime.yaml)" - }, - "value": { - "type": "string", - "description": "The actual time that the extracted text denote." - }, - "modifier": { - "$ref": "#/definitions/TemporalModifier", - "description": "Modifier for datetime to indicate point of reference like before, after etc." - } - }, - "required": [ - "timex", - "value" - ] - }, - "DetectedLanguage": { - "type": "object", - "description": "Contains the details of the detected language for the text.", - "properties": { - "name": { - "type": "string", - "description": "Long name of a detected language (e.g. English, French)." - }, - "iso6391Name": { - "type": "string", - "description": "A two letter representation of the detected language according to the ISO 639-1 standard (e.g. en, fr)." - }, - "confidenceScore": { - "type": "number", - "format": "double", - "description": "A confidence score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true." - }, - "scriptName": { - "$ref": "#/definitions/ScriptKind", - "description": "Identifies the script name of the input document according to the ISO 15924 standard." - }, - "scriptIso15924Code": { - "$ref": "#/definitions/ScriptCode", - "description": "Identifies the script code of the input document according to the ISO 15924 standard." - } - }, - "required": [ - "name", - "iso6391Name", - "confidenceScore" - ] - }, - "DocumentError": { - "type": "object", - "description": "Contains details of errors encountered during a job execution.", - "properties": { - "id": { - "type": "string", - "description": "The ID of the input document." - }, - "error": { - "$ref": "#/definitions/Error", - "description": "Error encountered." - } - }, - "required": [ - "id", - "error" - ] - }, - "DocumentSentimentValue": { - "type": "string", - "description": "Predicted sentiment for document (Negative, Neutral, Positive, or Mixed).", - "enum": [ - "positive", - "neutral", - "negative", - "mixed" - ], - "x-ms-enum": { - "name": "DocumentSentimentValue", - "modelAsString": false, - "values": [ - { - "name": "positive", - "value": "positive", - "description": "Positive statement" - }, - { - "name": "neutral", - "value": "neutral", - "description": "Neutral statement" - }, - { - "name": "negative", - "value": "negative", - "description": "Negative statement" - }, - { - "name": "mixed", - "value": "mixed", - "description": "Mixed statement" - } - ] - } - }, - "DocumentStatistics": { - "type": "object", - "description": "if showStats=true was specified in the request this field will contain information about the document payload.", - "properties": { - "charactersCount": { - "type": "integer", - "format": "int32", - "description": "Number of text elements recognized in the document." - }, - "transactionsCount": { - "type": "integer", - "format": "int32", - "description": "Number of transactions for the document." - } - }, - "required": [ - "charactersCount", - "transactionsCount" - ] - }, - "DocumentWarning": { - "type": "object", - "description": "Contains the warnings object with warnings encountered for the processed document.", - "properties": { - "code": { - "$ref": "#/definitions/WarningCodeValue", - "description": "Warning code." - }, - "message": { - "type": "string", - "description": "Warning message." - }, - "targetRef": { - "type": "string", - "description": "A JSON pointer reference indicating the target object." - } - }, - "required": [ - "code", - "message" - ] - }, - "EntitiesDocumentResultWithDetectedLanguage": { - "type": "object", - "description": "Contains the entity recognition task result for the document with detected language.", - "properties": { - "id": { - "type": "string", - "description": "Unique, non-empty document identifier." - }, - "warnings": { - "type": "array", - "description": "Warnings encountered while processing document.", - "items": { - "$ref": "#/definitions/DocumentWarning" - } - }, - "statistics": { - "$ref": "#/definitions/DocumentStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the document payload." - }, - "entities": { - "type": "array", - "description": "Recognized entities in the document.", - "items": { - "$ref": "#/definitions/Entity" - } - }, - "detectedLanguage": { - "$ref": "#/definitions/DetectedLanguage", - "description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document." - } - }, - "required": [ - "id", - "warnings", - "entities" - ] - }, - "EntitiesDocumentResultWithMetadata": { - "type": "object", - "description": "Entity documents result with metadata.", - "properties": { - "id": { - "type": "string", - "description": "Unique, non-empty document identifier." - }, - "warnings": { - "type": "array", - "description": "Warnings encountered while processing document.", - "items": { - "$ref": "#/definitions/DocumentWarning" - } - }, - "statistics": { - "$ref": "#/definitions/DocumentStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the document payload." - }, - "entities": { - "type": "array", - "description": "Recognized entities in the document.", - "items": { - "$ref": "#/definitions/EntityWithMetadata" - } - } - }, - "required": [ - "id", - "warnings", - "entities" - ] - }, - "EntitiesDocumentResultWithMetadataDetectedLanguage": { - "type": "object", - "description": "Contains the entity recognition task result for the document with metadata and detected language.", - "properties": { - "id": { - "type": "string", - "description": "Unique, non-empty document identifier." - }, - "warnings": { - "type": "array", - "description": "Warnings encountered while processing document.", - "items": { - "$ref": "#/definitions/DocumentWarning" - } - }, - "statistics": { - "$ref": "#/definitions/DocumentStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the document payload." - }, - "entities": { - "type": "array", - "description": "Recognized entities in the document.", - "items": { - "$ref": "#/definitions/EntityWithMetadata" - } - }, - "detectedLanguage": { - "$ref": "#/definitions/DetectedLanguage", - "description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document." - } - }, - "required": [ - "id", - "warnings", - "entities" - ] - }, - "EntitiesLROTask": { - "type": "object", - "description": "An object representing the task definition for an Entities Recognition task.", - "properties": { - "parameters": { - "$ref": "#/definitions/EntitiesTaskParameters", - "description": "Task parameters." - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - ], - "x-ms-discriminator-value": "EntityRecognition" - }, - "EntitiesResult": { - "type": "object", - "description": "Contains the entity recognition task result.", - "properties": { - "errors": { - "type": "array", - "description": "Errors by document id.", - "items": { - "$ref": "#/definitions/DocumentError" - } - }, - "statistics": { - "$ref": "#/definitions/RequestStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the request payload." - }, - "modelVersion": { - "type": "string", - "description": "This field indicates which model is used for scoring." - }, - "documents": { - "type": "array", - "description": "Response by document", - "items": { - "$ref": "#/definitions/EntitiesDocumentResultWithMetadata" - } - } - }, - "required": [ - "errors", - "modelVersion", - "documents" - ] - }, - "EntitiesTaskParameters": { - "type": "object", - "description": "Supported parameters for an Entity Recognition task.", - "properties": { - "loggingOptOut": { - "type": "boolean", - "description": "logging opt out", - "default": false - }, - "modelVersion": { - "type": "string", - "description": "model version", - "default": "latest" - }, - "stringIndexType": { - "type": "string", - "description": "(Optional) parameter to provide the string index type used to interpret string offsets. Defaults to TextElements (Graphemes).", - "default": "TextElements_v8", - "enum": [ - "TextElements_v8", - "UnicodeCodePoint", - "Utf16CodeUnit" - ], - "x-ms-enum": { - "name": "StringIndexType", - "modelAsString": true, - "values": [ - { - "name": "TextElements_v8", - "value": "TextElements_v8", - "description": "Returned offset and length values will correspond to TextElements (Graphemes and Grapheme clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is written in .Net Framework or .Net Core and you will be using StringInfo." - }, - { - "name": "UnicodeCodePoint", - "value": "UnicodeCodePoint", - "description": "Returned offset and length values will correspond to Unicode code points. Use this option if your application is written in a language that support Unicode, for example Python." - }, - { - "name": "Utf16CodeUnit", - "value": "Utf16CodeUnit", - "description": "Returned offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript." - } - ] - } - }, - "inclusionList": { - "type": "array", - "description": "(Optional) request parameter that limits the output to the requested entity types included in this list. We will apply inclusionList before exclusionList", - "items": { - "$ref": "#/definitions/EntityCategory" - } - }, - "exclusionList": { - "type": "array", - "description": "(Optional) request parameter that filters out any entities that are included the excludeList. When a user specifies an excludeList, they cannot get a prediction returned with an entity in that list. We will apply inclusionList before exclusionList", - "items": { - "$ref": "#/definitions/EntityCategory" - } - }, - "overlapPolicy": { - "$ref": "#/definitions/BaseEntityOverlapPolicy", - "description": "(Optional) describes the type of overlap policy to apply to the ner output." - }, - "inferenceOptions": { - "$ref": "#/definitions/EntityInferenceOptions", - "description": "(Optional) request parameter that allows the user to provide settings for running the inference." - } - } - }, - "EntitiesTaskResult": { - "type": "object", - "description": "Contains the entity task", - "properties": { - "results": { - "$ref": "#/definitions/EntitiesWithMetadataAutoResult", - "description": "Results for entity recognition." - } - }, - "required": [ - "results" - ], - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTaskResult" - } - ], - "x-ms-discriminator-value": "EntityRecognitionResults" - }, - "EntitiesWithMetadataAutoResult": { - "type": "object", - "description": "Contains the entity recognition task result.", - "properties": { - "errors": { - "type": "array", - "description": "Errors by document id.", - "items": { - "$ref": "#/definitions/DocumentError" - } - }, - "statistics": { - "$ref": "#/definitions/RequestStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the request payload." - }, - "modelVersion": { - "type": "string", - "description": "This field indicates which model is used for scoring." - }, - "documents": { - "type": "array", - "description": "Response by document", - "items": { - "$ref": "#/definitions/EntitiesDocumentResultWithMetadataDetectedLanguage" - } - } - }, - "required": [ - "errors", - "modelVersion", - "documents" - ] - }, - "Entity": { - "type": "object", - "description": "Defines the detected entity object containing the entity category and entity text detected, etc.", - "properties": { - "text": { - "type": "string", - "description": "Entity text as appears in the request." - }, - "category": { - "type": "string", - "description": "Entity type." - }, - "subcategory": { - "type": "string", - "description": "(Optional) Entity sub type." - }, - "offset": { - "type": "integer", - "format": "int32", - "description": "Start position for the entity text. Use of different 'stringIndexType' values can affect the offset returned." - }, - "length": { - "type": "integer", - "format": "int32", - "description": "Length for the entity text. Use of different 'stringIndexType' values can affect the length returned." - }, - "confidenceScore": { - "type": "number", - "format": "double", - "description": "Confidence score between 0 and 1 of the extracted entity." - } - }, - "required": [ - "text", - "category", - "offset", - "length", - "confidenceScore" - ] - }, - "EntityCategory": { - "type": "string", - "description": "Contains all the entity categories detected by entity recognition.", - "enum": [ - "Address", - "Numeric", - "Age", - "Currency", - "Number", - "NumberRange", - "Percentage", - "Ordinal", - "Temperature", - "Dimension", - "Length", - "Weight", - "Height", - "Speed", - "Area", - "Volume", - "Information", - "Temporal", - "Date", - "Time", - "DateTime", - "DateRange", - "TimeRange", - "DateTimeRange", - "Duration", - "SetTemporal", - "Event", - "SportsEvent", - "CulturalEvent", - "NaturalEvent", - "Location", - "GPE", - "City", - "State", - "CountryRegion", - "Continent", - "Structural", - "Airport", - "Geological", - "Organization", - "OrganizationMedical", - "OrganizationStockExchange", - "OrganizationSports", - "Person", - "PersonType", - "Email", - "URL", - "IP", - "PhoneNumber", - "Product", - "ComputingProduct", - "Skill" - ], - "x-ms-enum": { - "name": "EntityCategory", - "modelAsString": true, - "values": [ - { - "name": "Address", - "value": "Address", - "description": "Specific street-level mentions of locations: house/building numbers, streets, avenues, highways, intersections referenced by name." - }, - { - "name": "Numeric", - "value": "Numeric", - "description": "Numeric values, including digits and number words." - }, - { - "name": "Age", - "value": "Age", - "description": "Age-related values." - }, - { - "name": "Currency", - "value": "Currency", - "description": "Currency-related values." - }, - { - "name": "Number", - "value": "Number", - "description": "Numbers without a unit" - }, - { - "name": "NumberRange", - "value": "NumberRange", - "description": "Range of Numbers" - }, - { - "name": "Percentage", - "value": "Percentage", - "description": "Percentage-related values." - }, - { - "name": "Ordinal", - "value": "Ordinal", - "description": "Ordinal numbers." - }, - { - "name": "Temperature", - "value": "Temperature", - "description": "Temperature-related values." - }, - { - "name": "Dimension", - "value": "Dimension", - "description": "Dimension of measurements" - }, - { - "name": "Length", - "value": "Length", - "description": "Length of an object." - }, - { - "name": "Weight", - "value": "Weight", - "description": "Weight of an object." - }, - { - "name": "Height", - "value": "Height", - "description": "Height of an object." - }, - { - "name": "Speed", - "value": "Speed", - "description": "Speed of an object." - }, - { - "name": "Area", - "value": "Area", - "description": "Area of an object." - }, - { - "name": "Volume", - "value": "Volume", - "description": "Volume of an object." - }, - { - "name": "Information", - "value": "Information", - "description": "Unit of measure for digital information." - }, - { - "name": "Temporal", - "value": "Temporal", - "description": "Items relating to time." - }, - { - "name": "Date", - "value": "Date", - "description": "Calendar dates." - }, - { - "name": "Time", - "value": "Time", - "description": "Times of day." - }, - { - "name": "DateTime", - "value": "DateTime", - "description": "Calendar dates with time." - }, - { - "name": "DateRange", - "value": "DateRange", - "description": "Range of dates." - }, - { - "name": "TimeRange", - "value": "TimeRange", - "description": "Range of times." - }, - { - "name": "DateTimeRange", - "value": "DateTimeRange", - "description": "Range of date and time." - }, - { - "name": "Duration", - "value": "Duration", - "description": "Duration of time." - }, - { - "name": "SetTemporal", - "value": "SetTemporal", - "description": "Set of time-related values." - }, - { - "name": "Event", - "value": "Event", - "description": "Social, sports, business, political, educational, natural, historical, criminal, violent, legal, military events with a timed period." - }, - { - "name": "SportsEvent", - "value": "SportsEvent", - "description": "Sports event-related values." - }, - { - "name": "CulturalEvent", - "value": "CulturalEvent", - "description": "Cultural event-related values." - }, - { - "name": "NaturalEvent", - "value": "NaturalEvent", - "description": "Natural event-related values." - }, - { - "name": "Location", - "value": "Location", - "description": "Particular point or place in physical space." - }, - { - "name": "GPE", - "value": "GPE", - "description": "Cities, countries/regions, states." - }, - { - "name": "City", - "value": "City", - "description": "City-related values." - }, - { - "name": "State", - "value": "State", - "description": "State-related values." - }, - { - "name": "CountryRegion", - "value": "CountryRegion", - "description": "Country or region-related values." - }, - { - "name": "Continent", - "value": "Continent", - "description": "Continent-related values." - }, - { - "name": "Structural", - "value": "Structural", - "description": "Manmade structures." - }, - { - "name": "Airport", - "value": "Airport", - "description": "Airports." - }, - { - "name": "Geological", - "value": "Geological", - "description": "Geographic and natural features such as rivers, oceans, and deserts." - }, - { - "name": "Organization", - "value": "Organization", - "description": "Corporations, agencies, and other groups of people defined by some established organizational structure. These labels can include companies, political parties/movements, musical bands, sport clubs, government bodies, and public organizations. Nationalities or religions are not ORGANIZATION." - }, - { - "name": "OrganizationMedical", - "value": "OrganizationMedical", - "description": "Medical companies and groups." - }, - { - "name": "OrganizationStockExchange", - "value": "OrganizationStockExchange", - "description": "Stock exchange groups." - }, - { - "name": "OrganizationSports", - "value": "OrganizationSports", - "description": "Sports-related organizations." - }, - { - "name": "Person", - "value": "Person", - "description": "First, last, and middle names, names of fictional characters, and aliases. Titles, such as 'Mr.' or 'President', are not considered part of the named entity." - }, - { - "name": "PersonType", - "value": "PersonType", - "description": "Human roles classified by a group membership." - }, - { - "name": "Email", - "value": "Email", - "description": "Email addresses." - }, - { - "name": "URL", - "value": "URL", - "description": "URLs to websites." - }, - { - "name": "IP", - "value": "IP", - "description": "network IP addresses." - }, - { - "name": "PhoneNumber", - "value": "PhoneNumber", - "description": "Phone numbers (US and EU phone numbers only)." - }, - { - "name": "Product", - "value": "Product", - "description": "Single or group of commercial, consumable objects, electronics, vehicles, food groups." - }, - { - "name": "ComputingProduct", - "value": "ComputingProduct", - "description": "Computing products." - }, - { - "name": "Skill", - "value": "Skill", - "description": "A capability, skill, or expertise." - } - ] - } - }, - "EntityInferenceOptions": { - "type": "object", - "description": "The class that houses the inference options allowed for named entity recognition.", - "properties": { - "excludeNormalizedValues": { - "type": "boolean", - "description": "Option to include/exclude the detected entity values to be normalized and included in the metadata. The numeric and temporal entity types support value normalization.", - "default": false - } - } - }, - "EntityLinkingLROResult": { - "type": "object", - "description": "Contains the analyze text Entity linking task LRO result.", - "properties": { - "results": { - "$ref": "#/definitions/EntityLinkingResult", - "description": "Entity linking result." - } - }, - "required": [ - "results" - ], - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - ], - "x-ms-discriminator-value": "EntityLinkingLROResults" - }, - "EntityLinkingLROTask": { - "type": "object", - "description": "Contains the analyze text Entity linking LRO task.", - "properties": { - "parameters": { - "$ref": "#/definitions/EntityLinkingTaskParameters", - "description": "Task parameters." - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - ], - "x-ms-discriminator-value": "EntityLinking" - }, - "EntityLinkingResult": { - "type": "object", - "description": "Entity linking result.", - "properties": { - "errors": { - "type": "array", - "description": "Errors by document id.", - "items": { - "$ref": "#/definitions/DocumentError" - } - }, - "statistics": { - "$ref": "#/definitions/RequestStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the request payload." - }, - "modelVersion": { - "type": "string", - "description": "This field indicates which model is used for scoring." - }, - "documents": { - "type": "array", - "description": "Response by document", - "items": { - "$ref": "#/definitions/EntityLinkingResultWithDetectedLanguage" - } - } - }, - "required": [ - "errors", - "modelVersion", - "documents" - ] - }, - "EntityLinkingResultWithDetectedLanguage": { - "type": "object", - "description": "Entity linking document result with auto language detection.", - "properties": { - "id": { - "type": "string", - "description": "Unique, non-empty document identifier." - }, - "warnings": { - "type": "array", - "description": "Warnings encountered while processing document.", - "items": { - "$ref": "#/definitions/DocumentWarning" - } - }, - "statistics": { - "$ref": "#/definitions/DocumentStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the document payload." - }, - "entities": { - "type": "array", - "description": "Recognized well known entities in the document.", - "items": { - "$ref": "#/definitions/LinkedEntity" - } - }, - "detectedLanguage": { - "$ref": "#/definitions/DetectedLanguage", - "description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document." - } - }, - "required": [ - "id", - "warnings", - "entities" - ] - }, - "EntityLinkingTaskParameters": { - "type": "object", - "description": "Supported parameters for an Entity Linking task.", - "properties": { - "loggingOptOut": { - "type": "boolean", - "description": "logging opt out", - "default": false - }, - "modelVersion": { - "type": "string", - "description": "model version", - "default": "latest" - }, - "stringIndexType": { - "type": "string", - "description": "Optional parameter to provide the string index type used to interpret string offsets. Defaults to TextElements (Graphemes).", - "default": "TextElements_v8", - "enum": [ - "TextElements_v8", - "UnicodeCodePoint", - "Utf16CodeUnit" - ], - "x-ms-enum": { - "name": "StringIndexType", - "modelAsString": true, - "values": [ - { - "name": "TextElements_v8", - "value": "TextElements_v8", - "description": "Returned offset and length values will correspond to TextElements (Graphemes and Grapheme clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is written in .Net Framework or .Net Core and you will be using StringInfo." - }, - { - "name": "UnicodeCodePoint", - "value": "UnicodeCodePoint", - "description": "Returned offset and length values will correspond to Unicode code points. Use this option if your application is written in a language that support Unicode, for example Python." - }, - { - "name": "Utf16CodeUnit", - "value": "Utf16CodeUnit", - "description": "Returned offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript." - } - ] - } - } - } - }, - "EntityLinkingTaskResult": { - "type": "object", - "description": "Contains the analyze text Entity linking task result.", - "properties": { - "results": { - "$ref": "#/definitions/EntityLinkingResult", - "description": "Entity linking result." - } - }, - "required": [ - "results" - ], - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTaskResult" - } - ], - "x-ms-discriminator-value": "EntityLinkingResults" - }, - "EntityMaskPolicyType": { - "type": "object", - "description": "Represents the policy of redacting PII with the entity type.", - "allOf": [ - { - "$ref": "#/definitions/BaseRedactionPolicy" - } - ], - "x-ms-discriminator-value": "entityMask" - }, - "EntityRecognitionLROResult": { - "type": "object", - "description": "Contains the entity recognition job task result.", - "properties": { - "results": { - "$ref": "#/definitions/EntitiesResult", - "description": "Results for the task." - } - }, - "required": [ - "results" - ], - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - ], - "x-ms-discriminator-value": "EntityRecognitionLROResults" - }, - "EntitySynonym": { - "type": "object", - "description": "The entity synonyms used to enhance pii entity detection", - "properties": { - "synonym": { - "type": "string", - "description": "The synonym to be used for context" - }, - "language": { - "type": "string", - "description": "The 2 letter ISO 639-1 language the synonym" - } - }, - "required": [ - "synonym" - ] - }, - "EntitySynonyms": { - "type": "object", - "description": "Object that allows the user to provide synonyms for context words that to enhance pii entity detection.", - "properties": { - "entityType": { - "$ref": "#/definitions/EntityCategory", - "description": "The entity name" - }, - "synonyms": { - "type": "array", - "description": "The entity synonyms", - "items": { - "$ref": "#/definitions/EntitySynonym" - } - } - }, - "required": [ - "entityType", - "synonyms" - ] - }, - "EntityTag": { - "type": "object", - "description": "Entity tag object which contains the name of the tags abd any associated confidence score. Entity Tags are used to express some similarities/affinity between entities.", - "properties": { - "name": { - "type": "string", - "description": "Name of the tag. Entity Tag names will be unique globally." - }, - "confidenceScore": { - "type": "number", - "format": "double", - "description": "Detection score between 0 and 1 of the extracted entity." - } - }, - "required": [ - "name" - ] - }, - "EntityWithMetadata": { - "type": "object", - "description": "Entity object with tags and metadata.", - "properties": { - "text": { - "type": "string", - "description": "Entity text as appears in the request." - }, - "category": { - "type": "string", - "description": "Entity type." - }, - "subcategory": { - "type": "string", - "description": "(Optional) Entity sub type." - }, - "offset": { - "type": "integer", - "format": "int32", - "description": "Start position for the entity text. Use of different 'stringIndexType' values can affect the offset returned." - }, - "length": { - "type": "integer", - "format": "int32", - "description": "Length for the entity text. Use of different 'stringIndexType' values can affect the length returned." - }, - "confidenceScore": { - "type": "number", - "format": "double", - "description": "Confidence score between 0 and 1 of the extracted entity." - }, - "type": { - "type": "string", - "description": "An entity type is the lowest (or finest) granularity at which the entity has been detected. The type maps to the specific metadata attributes associated with the entity detected." - }, - "tags": { - "type": "array", - "description": "List of entity tags. Tags are to express some similarities/affinity between entities.", - "items": { - "$ref": "#/definitions/EntityTag" - } - }, - "metadata": { - "$ref": "#/definitions/BaseMetadata", - "description": "The entity metadata object." - } - }, - "required": [ - "text", - "category", - "offset", - "length", - "confidenceScore" - ] - }, - "Error": { - "type": "object", - "description": "The error response object returned when the service encounters some errors during processing the request.", - "properties": { - "code": { - "$ref": "#/definitions/ErrorCode", - "description": "One of a server-defined set of error codes." - }, - "message": { - "type": "string", - "description": "A human-readable representation of the error." - }, - "target": { - "type": "string", - "description": "The target of the error." - }, - "details": { - "type": "array", - "description": "An array of details about specific errors that led to this reported error.", - "items": { - "$ref": "#/definitions/Error" - } - }, - "innererror": { - "$ref": "#/definitions/InnerErrorModel", - "description": "An object containing more specific information than the current object about the error." - } - }, - "required": [ - "code", - "message" - ] - }, - "ErrorCode": { - "type": "string", - "description": "Human-readable error code.", - "enum": [ - "InvalidRequest", - "InvalidArgument", - "Unauthorized", - "Forbidden", - "NotFound", - "ProjectNotFound", - "OperationNotFound", - "AzureCognitiveSearchNotFound", - "AzureCognitiveSearchIndexNotFound", - "TooManyRequests", - "AzureCognitiveSearchThrottling", - "AzureCognitiveSearchIndexLimitReached", - "InternalServerError", - "ServiceUnavailable", - "Timeout", - "QuotaExceeded", - "Conflict", - "Warning" - ], - "x-ms-enum": { - "name": "ErrorCode", - "modelAsString": true, - "values": [ - { - "name": "InvalidRequest", - "value": "InvalidRequest", - "description": "Invalid request error" - }, - { - "name": "InvalidArgument", - "value": "InvalidArgument", - "description": "Invalid argument error" - }, - { - "name": "Unauthorized", - "value": "Unauthorized", - "description": "Unauthorized access error" - }, - { - "name": "Forbidden", - "value": "Forbidden", - "description": "Forbidden access error" - }, - { - "name": "NotFound", - "value": "NotFound", - "description": "Not found error" - }, - { - "name": "ProjectNotFound", - "value": "ProjectNotFound", - "description": "Project not found error" - }, - { - "name": "OperationNotFound", - "value": "OperationNotFound", - "description": "Operation not found error" - }, - { - "name": "AzureCognitiveSearchNotFound", - "value": "AzureCognitiveSearchNotFound", - "description": "Azure Cognitive Search not found error" - }, - { - "name": "AzureCognitiveSearchIndexNotFound", - "value": "AzureCognitiveSearchIndexNotFound", - "description": "Azure Cognitive Search index not found error" - }, - { - "name": "TooManyRequests", - "value": "TooManyRequests", - "description": "Too many requests error" - }, - { - "name": "AzureCognitiveSearchThrottling", - "value": "AzureCognitiveSearchThrottling", - "description": "Azure Cognitive Search throttling error" - }, - { - "name": "AzureCognitiveSearchIndexLimitReached", - "value": "AzureCognitiveSearchIndexLimitReached", - "description": "Azure Cognitive Search index limit reached error" - }, - { - "name": "InternalServerError", - "value": "InternalServerError", - "description": "Internal server error" - }, - { - "name": "ServiceUnavailable", - "value": "ServiceUnavailable", - "description": "Service unavailable error" - }, - { - "name": "Timeout", - "value": "Timeout", - "description": "Timeout error" - }, - { - "name": "QuotaExceeded", - "value": "QuotaExceeded", - "description": "Quota exceeded error" - }, - { - "name": "Conflict", - "value": "Conflict", - "description": "Conflict error" - }, - { - "name": "Warning", - "value": "Warning", - "description": "Warning error" - } - ] - } - }, - "ErrorResponse": { - "type": "object", - "description": "Error response.", - "properties": { - "error": { - "$ref": "#/definitions/Error", - "description": "The error object." - } - }, - "required": [ - "error" - ] - }, - "ExtractedSummaryDocumentResultWithDetectedLanguage": { - "type": "object", - "description": "A ranked list of sentences representing the extracted summary.", - "properties": { - "id": { - "type": "string", - "description": "Unique, non-empty document identifier." - }, - "warnings": { - "type": "array", - "description": "Warnings encountered while processing document.", - "items": { - "$ref": "#/definitions/DocumentWarning" - } - }, - "statistics": { - "$ref": "#/definitions/DocumentStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the document payload." - }, - "sentences": { - "type": "array", - "description": "Specifies the the extracted sentences from the input document.", - "items": { - "$ref": "#/definitions/ExtractedSummarySentence" - } - }, - "detectedLanguage": { - "$ref": "#/definitions/DetectedLanguage", - "description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document." - } - }, - "required": [ - "id", - "warnings", - "sentences" - ] - }, - "ExtractedSummarySentence": { - "type": "object", - "description": "Represents an extracted sentences from the input document.", - "properties": { - "text": { - "type": "string", - "description": "The extracted sentence text." - }, - "rankScore": { - "type": "number", - "format": "double", - "description": "A double value representing the relevance of the sentence within the summary. Higher values indicate higher importance." - }, - "offset": { - "type": "integer", - "format": "int32", - "description": "The sentence offset from the start of the document, based on the value of the parameter StringIndexType." - }, - "length": { - "type": "integer", - "format": "int32", - "description": "The length of the sentence." - } - }, - "required": [ - "text", - "rankScore", - "offset", - "length" - ] - }, - "ExtractiveSummarizationLROResult": { - "type": "object", - "description": "An object representing the results for an Extractive Summarization task.", - "properties": { - "results": { - "$ref": "#/definitions/ExtractiveSummarizationResult", - "description": "Results of the task." - } - }, - "required": [ - "results" - ], - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - ], - "x-ms-discriminator-value": "ExtractiveSummarizationLROResults" - }, - "ExtractiveSummarizationLROTask": { - "type": "object", - "description": "An object representing the task definition for an Extractive Summarization task.", - "properties": { - "parameters": { - "$ref": "#/definitions/ExtractiveSummarizationTaskParameters", - "description": "Parameters for the Extractive Summarization task." - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - ], - "x-ms-discriminator-value": "ExtractiveSummarization" - }, - "ExtractiveSummarizationResult": { - "type": "object", - "description": "An object representing the pre-built Extractive Summarization results of each document.", - "properties": { - "errors": { - "type": "array", - "description": "Errors by document id.", - "items": { - "$ref": "#/definitions/DocumentError" - } - }, - "statistics": { - "$ref": "#/definitions/RequestStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the request payload." - }, - "modelVersion": { - "type": "string", - "description": "This field indicates which model is used for scoring." - }, - "documents": { - "type": "array", - "description": "Response by document", - "items": { - "$ref": "#/definitions/ExtractedSummaryDocumentResultWithDetectedLanguage" - } - } - }, - "required": [ - "errors", - "modelVersion", - "documents" - ] - }, - "ExtractiveSummarizationTaskParameters": { - "type": "object", - "description": "Supported parameters for an Extractive Summarization task.", - "properties": { - "loggingOptOut": { - "type": "boolean", - "description": "logging opt out", - "default": false - }, - "modelVersion": { - "type": "string", - "description": "model version", - "default": "latest" - }, - "sentenceCount": { - "type": "integer", - "format": "int64", - "description": "Specifies the number of sentences in the extracted summary.", - "default": 3 - }, - "sortBy": { - "type": "string", - "description": "Specifies how to sort the extracted summaries.", - "default": "Offset", - "enum": [ - "Offset", - "Rank" - ], - "x-ms-enum": { - "name": "ExtractiveSummarizationSortingCriteria", - "modelAsString": true, - "values": [ - { - "name": "Offset", - "value": "Offset", - "description": "Indicates that results should be sorted in order of appearance in the text." - }, - { - "name": "Rank", - "value": "Rank", - "description": "Indicates that results should be sorted in order of importance (i.e. rank score) according to the model." - } - ] - } - }, - "stringIndexType": { - "type": "string", - "description": "Specifies the method used to interpret string offsets.", - "default": "TextElements_v8", - "enum": [ - "TextElements_v8", - "UnicodeCodePoint", - "Utf16CodeUnit" - ], - "x-ms-enum": { - "name": "StringIndexType", - "modelAsString": true, - "values": [ - { - "name": "TextElements_v8", - "value": "TextElements_v8", - "description": "Returned offset and length values will correspond to TextElements (Graphemes and Grapheme clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is written in .Net Framework or .Net Core and you will be using StringInfo." - }, - { - "name": "UnicodeCodePoint", - "value": "UnicodeCodePoint", - "description": "Returned offset and length values will correspond to Unicode code points. Use this option if your application is written in a language that support Unicode, for example Python." - }, - { - "name": "Utf16CodeUnit", - "value": "Utf16CodeUnit", - "description": "Returned offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript." - } - ] - } - }, - "query": { - "type": "string", - "description": "(Optional) If provided, the query will be used to extract most relevant sentences from the document." - } - } - }, - "FhirBundle": { - "type": "object", - "description": "JSON bundle containing a FHIR compatible object for consumption in other Healthcare tools. For additional information see https://www.hl7.org/fhir/overview.html.", - "additionalProperties": {} - }, - "HealthcareAssertion": { - "type": "object", - "description": "Assertion of the entity.", - "properties": { - "conditionality": { - "$ref": "#/definitions/Conditionality", - "description": "Describes any conditionality on the entity." - }, - "certainty": { - "$ref": "#/definitions/Certainty", - "description": "Describes the entities certainty and polarity." - }, - "association": { - "$ref": "#/definitions/Association", - "description": "Describes if the entity is the subject of the text or if it describes someone else." - }, - "temporality": { - "$ref": "#/definitions/Temporality", - "description": "Describes temporal information regarding the entity." - } - } - }, - "HealthcareEntitiesDocumentResultWithDocumentDetectedLanguage": { - "type": "object", - "description": "Result object for the processed Healthcare document with detected language.", - "properties": { - "id": { - "type": "string", - "description": "Unique, non-empty document identifier." - }, - "warnings": { - "type": "array", - "description": "Warnings encountered while processing document.", - "items": { - "$ref": "#/definitions/DocumentWarning" - } - }, - "statistics": { - "$ref": "#/definitions/DocumentStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the document payload." - }, - "entities": { - "type": "array", - "description": "Healthcare entities.", - "items": { - "$ref": "#/definitions/HealthcareEntity" - } - }, - "relations": { - "type": "array", - "description": "Healthcare entity relations.", - "items": { - "$ref": "#/definitions/HealthcareRelation" - } - }, - "fhirBundle": { - "$ref": "#/definitions/FhirBundle", - "description": "JSON bundle containing a FHIR compatible object for consumption in other Healthcare tools. For additional information see https://www.hl7.org/fhir/overview.html." - }, - "detectedLanguage": { - "$ref": "#/definitions/DetectedLanguage", - "description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document." - } - }, - "required": [ - "id", - "warnings", - "entities", - "relations" - ] - }, - "HealthcareEntity": { - "type": "object", - "description": "Healthcare entity extracted from the document", - "properties": { - "text": { - "type": "string", - "description": "Entity text as appears in the request." - }, - "category": { - "$ref": "#/definitions/healthcareEntityCategory", - "description": "Healthcare Entity Category." - }, - "subcategory": { - "type": "string", - "description": "(Optional) Entity sub type." - }, - "offset": { - "type": "integer", - "format": "int32", - "description": "Start position for the entity text. Use of different 'stringIndexType' values can affect the offset returned." - }, - "length": { - "type": "integer", - "format": "int32", - "description": "Length for the entity text. Use of different 'stringIndexType' values can affect the length returned." - }, - "confidenceScore": { - "type": "number", - "format": "double", - "description": "Confidence score between 0 and 1 of the extracted entity." - }, - "assertion": { - "$ref": "#/definitions/HealthcareAssertion", - "description": "Assertion of the entity." - }, - "name": { - "type": "string", - "description": "Preferred name for the entity. Example: 'histologically' would have a 'name' of 'histologic'." - }, - "links": { - "type": "array", - "description": "Entity references in known data sources.", - "items": { - "$ref": "#/definitions/HealthcareEntityLink" - } - } - }, - "required": [ - "text", - "category", - "offset", - "length", - "confidenceScore" - ] - }, - "HealthcareEntityLink": { - "type": "object", - "description": "Reference to an entity in known data sources.", - "properties": { - "dataSource": { - "type": "string", - "description": "Entity Catalog. Examples include: UMLS, CHV, MSH, etc." - }, - "id": { - "type": "string", - "description": "Entity id in the given source catalog." - } - }, - "required": [ - "dataSource", - "id" - ] - }, - "HealthcareLROResult": { - "type": "object", - "description": "Healthcare Analyze Text long tunning operation result object.", - "properties": { - "results": { - "$ref": "#/definitions/HealthcareResult", - "description": "Results of the task." - } - }, - "required": [ - "results" - ], - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - ], - "x-ms-discriminator-value": "HealthcareLROResults" - }, - "HealthcareLROTask": { - "type": "object", - "description": "The long running task to be performed by the service on the Healthcare input documents.", - "properties": { - "parameters": { - "$ref": "#/definitions/HealthcareTaskParameters", - "description": "Parameters for the Healthcare task." - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - ], - "x-ms-discriminator-value": "Healthcare" - }, - "HealthcareRelation": { - "type": "object", - "description": "Every relation is an entity graph of a certain relationType, where all entities are connected and have specific roles within the relation context.", - "properties": { - "relationType": { - "$ref": "#/definitions/relationType", - "description": "Type of relation. Examples include: `DosageOfMedication` or 'FrequencyOfMedication', etc." - }, - "entities": { - "type": "array", - "description": "The entities in the relation.", - "items": { - "$ref": "#/definitions/HealthcareRelationEntity" - } - }, - "confidenceScore": { - "type": "number", - "format": "double", - "description": "Confidence score between 0 and 1 of the extracted relation." - } - }, - "required": [ - "relationType", - "entities" - ] - }, - "HealthcareRelationEntity": { - "type": "object", - "description": "Entity in the relation.", - "properties": { - "ref": { - "type": "string", - "description": "Reference link object, using a JSON pointer RFC 6901 (URI Fragment Identifier Representation), pointing to the entity ." - }, - "role": { - "type": "string", - "description": "Role of entity in the relationship. For example: 'CD20-positive diffuse large B-cell lymphoma' has the following entities with their roles in parenthesis: CD20 (GeneOrProtein), Positive (Expression), diffuse large B-cell lymphoma (Diagnosis)." - } - }, - "required": [ - "ref", - "role" - ] - }, - "HealthcareResult": { - "type": "object", - "description": "Result object for the processed Healthcare task.", - "properties": { - "errors": { - "type": "array", - "description": "Errors by document id.", - "items": { - "$ref": "#/definitions/DocumentError" - } - }, - "statistics": { - "$ref": "#/definitions/RequestStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the request payload." - }, - "modelVersion": { - "type": "string", - "description": "This field indicates which model is used for scoring." - }, - "documents": { - "type": "array", - "description": "List of result objects for the processed Healthcare documents.", - "items": { - "$ref": "#/definitions/HealthcareEntitiesDocumentResultWithDocumentDetectedLanguage" - } - } - }, - "required": [ - "errors", - "modelVersion", - "documents" - ] - }, - "HealthcareTaskParameters": { - "type": "object", - "description": "Supported parameters for a Healthcare task.", - "properties": { - "loggingOptOut": { - "type": "boolean", - "description": "logging opt out", - "default": false - }, - "modelVersion": { - "type": "string", - "description": "model version", - "default": "latest" - }, - "stringIndexType": { - "type": "string", - "description": "Specifies the method used to interpret string offsets.", - "default": "TextElements_v8", - "enum": [ - "TextElements_v8", - "UnicodeCodePoint", - "Utf16CodeUnit" - ], - "x-ms-enum": { - "name": "StringIndexType", - "modelAsString": true, - "values": [ - { - "name": "TextElements_v8", - "value": "TextElements_v8", - "description": "Returned offset and length values will correspond to TextElements (Graphemes and Grapheme clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is written in .Net Framework or .Net Core and you will be using StringInfo." - }, - { - "name": "UnicodeCodePoint", - "value": "UnicodeCodePoint", - "description": "Returned offset and length values will correspond to Unicode code points. Use this option if your application is written in a language that support Unicode, for example Python." - }, - { - "name": "Utf16CodeUnit", - "value": "Utf16CodeUnit", - "description": "Returned offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript." - } - ] - } - }, - "fhirVersion": { - "$ref": "#/definitions/fhirVersion", - "description": "The FHIR Spec version that the result will use to format the fhirBundle. For additional information see https://www.hl7.org/fhir/overview.html." - }, - "documentType": { - "$ref": "#/definitions/healthcareDocumentType", - "description": "Document type that can be provided as input for Fhir Documents. Expect to have fhirVersion provided when used. Behavior of using None enum is the same as not using the documentType parameter." - } - } - }, - "InformationMetadata": { - "type": "object", - "description": "Represents the Information (data) entity Metadata model.", - "properties": { - "value": { - "type": "number", - "format": "double", - "description": "The numeric value that the extracted text denotes." - }, - "unit": { - "$ref": "#/definitions/InformationUnit", - "description": "Unit of measure for information." - } - }, - "required": [ - "value", - "unit" - ], - "allOf": [ - { - "$ref": "#/definitions/BaseMetadata" - } - ], - "x-ms-discriminator-value": "InformationMetadata" - }, - "InformationUnit": { - "type": "string", - "description": "The information (data) Unit of measurement.", - "enum": [ - "Unspecified", - "Bit", - "Kilobit", - "Megabit", - "Gigabit", - "Terabit", - "Petabit", - "Byte", - "Kilobyte", - "Megabyte", - "Gigabyte", - "Terabyte", - "Petabyte" - ], - "x-ms-enum": { - "name": "InformationUnit", - "modelAsString": true, - "values": [ - { - "name": "Unspecified", - "value": "Unspecified", - "description": "Unspecified data size unit" - }, - { - "name": "Bit", - "value": "Bit", - "description": "Data size unit in bits" - }, - { - "name": "Kilobit", - "value": "Kilobit", - "description": "Data size unit in kilobits" - }, - { - "name": "Megabit", - "value": "Megabit", - "description": "Data size unit in megabits" - }, - { - "name": "Gigabit", - "value": "Gigabit", - "description": "Data size unit in gigabits" - }, - { - "name": "Terabit", - "value": "Terabit", - "description": "Data size unit in terabits" - }, - { - "name": "Petabit", - "value": "Petabit", - "description": "Data size unit in petabits" - }, - { - "name": "Byte", - "value": "Byte", - "description": "Data size unit in bytes" - }, - { - "name": "Kilobyte", - "value": "Kilobyte", - "description": "Data size unit in kilobytes" - }, - { - "name": "Megabyte", - "value": "Megabyte", - "description": "Data size unit in megabytes" - }, - { - "name": "Gigabyte", - "value": "Gigabyte", - "description": "Data size unit in gigabytes" - }, - { - "name": "Terabyte", - "value": "Terabyte", - "description": "Data size unit in terabytes" - }, - { - "name": "Petabyte", - "value": "Petabyte", - "description": "Data size unit in petabytes" - } - ] - } - }, - "InnerErrorCode": { - "type": "string", - "description": "Human-readable error code.", - "enum": [ - "InvalidRequest", - "InvalidParameterValue", - "KnowledgeBaseNotFound", - "AzureCognitiveSearchNotFound", - "AzureCognitiveSearchThrottling", - "ExtractionFailure", - "InvalidRequestBodyFormat", - "EmptyRequest", - "MissingInputDocuments", - "InvalidDocument", - "ModelVersionIncorrect", - "InvalidDocumentBatch", - "UnsupportedLanguageCode", - "InvalidCountryHint" - ], - "x-ms-enum": { - "name": "InnerErrorCode", - "modelAsString": true, - "values": [ - { - "name": "InvalidRequest", - "value": "InvalidRequest", - "description": "Invalid request error" - }, - { - "name": "InvalidParameterValue", - "value": "InvalidParameterValue", - "description": "Invalid parameter value error" - }, - { - "name": "KnowledgeBaseNotFound", - "value": "KnowledgeBaseNotFound", - "description": "Knowledge base not found error" - }, - { - "name": "AzureCognitiveSearchNotFound", - "value": "AzureCognitiveSearchNotFound", - "description": "Azure Cognitive Search not found error" - }, - { - "name": "AzureCognitiveSearchThrottling", - "value": "AzureCognitiveSearchThrottling", - "description": "Azure Cognitive Search throttling error" - }, - { - "name": "ExtractionFailure", - "value": "ExtractionFailure", - "description": "Extraction failure error" - }, - { - "name": "InvalidRequestBodyFormat", - "value": "InvalidRequestBodyFormat", - "description": "Invalid request body format error" - }, - { - "name": "EmptyRequest", - "value": "EmptyRequest", - "description": "Empty request error" - }, - { - "name": "MissingInputDocuments", - "value": "MissingInputDocuments", - "description": "Missing input documents error" - }, - { - "name": "InvalidDocument", - "value": "InvalidDocument", - "description": "Invalid document error" - }, - { - "name": "ModelVersionIncorrect", - "value": "ModelVersionIncorrect", - "description": "Model version incorrect error" - }, - { - "name": "InvalidDocumentBatch", - "value": "InvalidDocumentBatch", - "description": "Invalid document batch error" - }, - { - "name": "UnsupportedLanguageCode", - "value": "UnsupportedLanguageCode", - "description": "Unsupported language code error" - }, - { - "name": "InvalidCountryHint", - "value": "InvalidCountryHint", - "description": "Invalid country hint error" - } - ] - } - }, - "InnerErrorModel": { - "type": "object", - "description": "An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.", - "properties": { - "code": { - "$ref": "#/definitions/InnerErrorCode", - "description": "One of a server-defined set of error codes." - }, - "message": { - "type": "string", - "description": "Error message." - }, - "details": { - "type": "object", - "description": "Error details.", - "additionalProperties": { - "type": "string" - } - }, - "target": { - "type": "string", - "description": "Error target." - }, - "innererror": { - "$ref": "#/definitions/InnerErrorModel", - "description": "An object containing more specific information than the current object about the error." - } - }, - "required": [ - "code", - "message" - ] - }, - "KeyPhraseExtractionLROResult": { - "type": "object", - "description": "Contains the analyze text KeyPhraseExtraction LRO task.", - "properties": { - "results": { - "$ref": "#/definitions/KeyPhraseResult", - "description": "The list of Key phrase extraction results" - } - }, - "required": [ - "results" - ], - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - ], - "x-ms-discriminator-value": "KeyPhraseExtractionLROResults" - }, - "KeyPhraseLROTask": { - "type": "object", - "description": "An object representing the task definition for a Key Phrase Extraction task.", - "properties": { - "parameters": { - "$ref": "#/definitions/KeyPhraseTaskParameters", - "description": "Key phrase extraction task parameters." - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - ], - "x-ms-discriminator-value": "KeyPhraseExtraction" - }, - "KeyPhraseResult": { - "type": "object", - "description": "Contains the KeyPhraseResult.", - "properties": { - "errors": { - "type": "array", - "description": "Errors by document id.", - "items": { - "$ref": "#/definitions/DocumentError" - } - }, - "statistics": { - "$ref": "#/definitions/RequestStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the request payload." - }, - "modelVersion": { - "type": "string", - "description": "This field indicates which model is used for scoring." - }, - "documents": { - "type": "array", - "description": "Response by document", - "items": { - "$ref": "#/definitions/KeyPhrasesDocumentResultWithDetectedLanguage" - } - } - }, - "required": [ - "errors", - "modelVersion", - "documents" - ] - }, - "KeyPhraseTaskParameters": { - "type": "object", - "description": "Supported parameters for a Key Phrase Extraction task.", - "properties": { - "loggingOptOut": { - "type": "boolean", - "description": "logging opt out", - "default": false - }, - "modelVersion": { - "type": "string", - "description": "model version", - "default": "latest" - } - } - }, - "KeyPhraseTaskResult": { - "type": "object", - "description": "Contains the analyze text KeyPhraseExtraction task result.", - "properties": { - "results": { - "$ref": "#/definitions/KeyPhraseResult", - "description": "The list of Key phrase extraction results" - } - }, - "required": [ - "results" - ], - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTaskResult" - } - ], - "x-ms-discriminator-value": "KeyPhraseExtractionResults" - }, - "KeyPhrasesDocumentResultWithDetectedLanguage": { - "type": "object", - "description": "A ranked list of sentences representing the extracted summary.", - "properties": { - "id": { - "type": "string", - "description": "Unique, non-empty document identifier." - }, - "warnings": { - "type": "array", - "description": "Warnings encountered while processing document.", - "items": { - "$ref": "#/definitions/DocumentWarning" - } - }, - "statistics": { - "$ref": "#/definitions/DocumentStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the document payload." - }, - "keyPhrases": { - "type": "array", - "description": "A list of representative words or phrases. The number of key phrases returned is proportional to the number of words in the input document.", - "items": { - "type": "string" - } - }, - "detectedLanguage": { - "$ref": "#/definitions/DetectedLanguage", - "description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document." - } - }, - "required": [ - "id", - "warnings", - "keyPhrases" - ] - }, - "LanguageDetectionAnalysisInput": { - "type": "object", - "description": "Contains the language detection document analysis input.", - "properties": { - "documents": { - "type": "array", - "description": "List of documents to be analyzed.", - "items": { - "$ref": "#/definitions/LanguageInput" - } - } - } - }, - "LanguageDetectionDocumentResult": { - "type": "object", - "description": "Contains the language detection for a document.", - "properties": { - "id": { - "type": "string", - "description": "Unique, non-empty document identifier." - }, - "warnings": { - "type": "array", - "description": "Warnings encountered while processing document.", - "items": { - "$ref": "#/definitions/DocumentWarning" - } - }, - "statistics": { - "$ref": "#/definitions/DocumentStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the document payload." - }, - "detectedLanguage": { - "$ref": "#/definitions/DetectedLanguage", - "description": "Detected Language." - } - }, - "required": [ - "id", - "warnings", - "detectedLanguage" - ] - }, - "LanguageDetectionResult": { - "type": "object", - "description": "Contains the language detection result for the request.", - "properties": { - "errors": { - "type": "array", - "description": "Errors by document id.", - "items": { - "$ref": "#/definitions/DocumentError" - } - }, - "statistics": { - "$ref": "#/definitions/RequestStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the request payload." - }, - "modelVersion": { - "type": "string", - "description": "This field indicates which model is used for scoring." - }, - "documents": { - "type": "array", - "description": "Enumeration of language detection results for each input document.", - "items": { - "$ref": "#/definitions/LanguageDetectionDocumentResult" - } - } - }, - "required": [ - "errors", - "modelVersion", - "documents" - ] - }, - "LanguageDetectionTaskParameters": { - "type": "object", - "description": "Supported parameters for a Language Detection task.", - "properties": { - "loggingOptOut": { - "type": "boolean", - "description": "logging opt out", - "default": false - }, - "modelVersion": { - "type": "string", - "description": "model version", - "default": "latest" - } - } - }, - "LanguageDetectionTaskResult": { - "type": "object", - "description": "Contains the language detection task result for the request.", - "properties": { - "results": { - "$ref": "#/definitions/LanguageDetectionResult", - "description": "Contains the language detection results." - } - }, - "required": [ - "results" - ], - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTaskResult" - } - ], - "x-ms-discriminator-value": "LanguageDetectionResults" - }, - "LanguageInput": { - "type": "object", - "description": "Contains the language detection input.", - "properties": { - "id": { - "type": "string", - "description": "A unique, non-empty document identifier." - }, - "text": { - "type": "string", - "description": "The input text to process." - }, - "countryHint": { - "type": "string", - "description": "The country hint to help with language detection of the text." - } - }, - "required": [ - "id", - "text" - ] - }, - "LengthMetadata": { - "type": "object", - "description": "Represents the Length entity Metadata model.", - "properties": { - "value": { - "type": "number", - "format": "double", - "description": "The numeric value that the extracted text denotes." - }, - "unit": { - "$ref": "#/definitions/LengthUnit", - "description": "Unit of measure for length." - } - }, - "required": [ - "value", - "unit" - ], - "allOf": [ - { - "$ref": "#/definitions/BaseMetadata" - } - ], - "x-ms-discriminator-value": "LengthMetadata" - }, - "LengthUnit": { - "type": "string", - "description": "The length unit of measurement.", - "enum": [ - "Unspecified", - "Kilometer", - "Hectometer", - "Decameter", - "Meter", - "Decimeter", - "Centimeter", - "Millimeter", - "Micrometer", - "Nanometer", - "Picometer", - "Mile", - "Yard", - "Inch", - "Foot", - "LightYear", - "Point" - ], - "x-ms-enum": { - "name": "LengthUnit", - "modelAsString": true, - "values": [ - { - "name": "Unspecified", - "value": "Unspecified", - "description": "Unspecified length unit." - }, - { - "name": "Kilometer", - "value": "Kilometer", - "description": "Length unit in kilometers." - }, - { - "name": "Hectometer", - "value": "Hectometer", - "description": "Length unit in hectometers." - }, - { - "name": "Decameter", - "value": "Decameter", - "description": "Length unit in decameters." - }, - { - "name": "Meter", - "value": "Meter", - "description": "Length unit in meters." - }, - { - "name": "Decimeter", - "value": "Decimeter", - "description": "Length unit in decimeters." - }, - { - "name": "Centimeter", - "value": "Centimeter", - "description": "Length unit in centimeters." - }, - { - "name": "Millimeter", - "value": "Millimeter", - "description": "Length unit in millimeters." - }, - { - "name": "Micrometer", - "value": "Micrometer", - "description": "Length unit in micrometers." - }, - { - "name": "Nanometer", - "value": "Nanometer", - "description": "Length unit in nanometers." - }, - { - "name": "Picometer", - "value": "Picometer", - "description": "Length unit in picometers." - }, - { - "name": "Mile", - "value": "Mile", - "description": "Length unit in miles." - }, - { - "name": "Yard", - "value": "Yard", - "description": "Length unit in yards." - }, - { - "name": "Inch", - "value": "Inch", - "description": "Length unit in inches." - }, - { - "name": "Foot", - "value": "Foot", - "description": "Length unit in feet." - }, - { - "name": "LightYear", - "value": "LightYear", - "description": "Length unit in light years." - }, - { - "name": "Point", - "value": "Point", - "description": "Length unit in points." - } - ] - } - }, - "LinkedEntity": { - "type": "object", - "description": "The LinkedEntity object containing the detected entity with the associated sources/links.", - "properties": { - "name": { - "type": "string", - "description": "Entity Linking formal name." - }, - "matches": { - "type": "array", - "description": "List of instances this entity appears in the text.", - "items": { - "$ref": "#/definitions/Match" - } - }, - "language": { - "type": "string", - "description": "Language used in the data source." - }, - "id": { - "type": "string", - "description": "Unique identifier of the recognized entity from the data source." - }, - "url": { - "type": "string", - "description": "URL for the entity's page from the data source." - }, - "dataSource": { - "type": "string", - "description": "Data source used to extract entity linking, such as Wiki/Bing etc." - }, - "bingId": { - "type": "string", - "description": "Bing Entity Search API unique identifier of the recognized entity." - } - }, - "required": [ - "name", - "matches", - "language", - "url", - "dataSource" - ] - }, - "Match": { - "type": "object", - "description": "The Match object containing the detected entity text with the offset and the length.", - "properties": { - "confidenceScore": { - "type": "number", - "format": "double", - "description": "If a well known item is recognized, a decimal number denoting the confidence level between 0 and 1 will be returned." - }, - "text": { - "type": "string", - "description": "Entity text as appears in the request." - }, - "offset": { - "type": "integer", - "format": "int32", - "description": "Start position for the entity match text." - }, - "length": { - "type": "integer", - "format": "int32", - "description": "Length for the entity match text." - } - }, - "required": [ - "confidenceScore", - "text", - "offset", - "length" - ] - }, - "MatchLongestEntityPolicyType": { - "type": "object", - "description": "Represents the Match longest overlap policy. No overlapping entities as far as it is possible. 1. If there are overlapping entities, the longest one will be returned. 2. If the set of characters predicted for 2 or more entities are exactly the same, select the entity that has the higher confidence score.3. If the entity scores are identical, return all entities that are still present after applying the previous rules. 3. If there is partial overlap (as in Hello Text Analytics) follow the above steps starting from 1.", - "allOf": [ - { - "$ref": "#/definitions/BaseEntityOverlapPolicy" - } - ], - "x-ms-discriminator-value": "matchLongest" - }, - "MetadataKind": { - "type": "string", - "description": "The entity Metadata object kind.", - "enum": [ - "DateMetadata", - "DateTimeMetadata", - "TimeMetadata", - "TemporalSetMetadata", - "NumberMetadata", - "OrdinalMetadata", - "SpeedMetadata", - "WeightMetadata", - "LengthMetadata", - "VolumeMetadata", - "AreaMetadata", - "AgeMetadata", - "InformationMetadata", - "TemperatureMetadata", - "CurrencyMetadata", - "NumericRangeMetadata", - "TemporalSpanMetadata" - ], - "x-ms-enum": { - "name": "MetadataKind", - "modelAsString": true, - "values": [ - { - "name": "DateMetadata", - "value": "DateMetadata", - "description": "Metadata for date-related values." - }, - { - "name": "DateTimeMetadata", - "value": "DateTimeMetadata", - "description": "Metadata for date and time-related values." - }, - { - "name": "TimeMetadata", - "value": "TimeMetadata", - "description": "Metadata for time-related values." - }, - { - "name": "TemporalSetMetadata", - "value": "TemporalSetMetadata", - "description": "Metadata for set of time-related values." - }, - { - "name": "NumberMetadata", - "value": "NumberMetadata", - "description": "Metadata for numeric values." - }, - { - "name": "OrdinalMetadata", - "value": "OrdinalMetadata", - "description": "Metadata for ordinal numbers." - }, - { - "name": "SpeedMetadata", - "value": "SpeedMetadata", - "description": "Metadata for speed-related values." - }, - { - "name": "WeightMetadata", - "value": "WeightMetadata", - "description": "Metadata for weight-related values." - }, - { - "name": "LengthMetadata", - "value": "LengthMetadata", - "description": "Metadata for length-related values." - }, - { - "name": "VolumeMetadata", - "value": "VolumeMetadata", - "description": "Metadata for volume-related values." - }, - { - "name": "AreaMetadata", - "value": "AreaMetadata", - "description": "Metadata for area-related values." - }, - { - "name": "AgeMetadata", - "value": "AgeMetadata", - "description": "Metadata for age-related values." - }, - { - "name": "InformationMetadata", - "value": "InformationMetadata", - "description": "Metadata for information-related values." - }, - { - "name": "TemperatureMetadata", - "value": "TemperatureMetadata", - "description": "Metadata for temperature-related values." - }, - { - "name": "CurrencyMetadata", - "value": "CurrencyMetadata", - "description": "Metadata for currency-related values." - }, - { - "name": "NumericRangeMetadata", - "value": "NumericRangeMetadata", - "description": "Metadata for numeric range values." - }, - { - "name": "TemporalSpanMetadata", - "value": "TemporalSpanMetadata", - "description": "Metadata for temporal span values." - } - ] - } - }, - "MultiLanguageAnalysisInput": { - "type": "object", - "description": "Collection of input documents to be analyzed by the service.", - "properties": { - "documents": { - "type": "array", - "description": "The input documents to be analyzed.", - "items": { - "$ref": "#/definitions/MultiLanguageInput" - } - } - } - }, - "MultiLanguageInput": { - "type": "object", - "description": "Contains an input document to be analyzed by the service.", - "properties": { - "id": { - "type": "string", - "description": "A unique, non-empty document identifier." - }, - "text": { - "type": "string", - "description": "The input text to process." - }, - "language": { - "type": "string", - "description": "(Optional) This is the 2 letter ISO 639-1 representation of a language. For example, use \\\"en\\\" for English; \\\"es\\\" for Spanish etc. If not set, use \\\"en\\\" for English as default. (Following only applies to 2023-04-15-preview and above) For Auto Language Detection, use \\\"auto\\\". If not set, use \\\"en\\\" for English as default." - } - }, - "required": [ - "id", - "text" - ] - }, - "NoMaskPolicyType": { - "type": "object", - "description": "Represents the policy of not redacting found PII.", - "allOf": [ - { - "$ref": "#/definitions/BaseRedactionPolicy" - } - ], - "x-ms-discriminator-value": "noMask" - }, - "NumberKind": { - "type": "string", - "description": "The type of the extracted number entity.", - "enum": [ - "Integer", - "Decimal", - "Power", - "Fraction", - "Percent", - "Unspecified" - ], - "x-ms-enum": { - "name": "NumberKind", - "modelAsString": true, - "values": [ - { - "name": "Integer", - "value": "Integer", - "description": "Integer number" - }, - { - "name": "Decimal", - "value": "Decimal", - "description": "Decimal number" - }, - { - "name": "Power", - "value": "Power", - "description": "Power number" - }, - { - "name": "Fraction", - "value": "Fraction", - "description": "Fraction number" - }, - { - "name": "Percent", - "value": "Percent", - "description": "Percent number" - }, - { - "name": "Unspecified", - "value": "Unspecified", - "description": "Unspecified number kind" - } - ] - } - }, - "NumberMetadata": { - "type": "object", - "description": "A metadata for numeric entity instances.", - "properties": { - "numberKind": { - "$ref": "#/definitions/NumberKind", - "description": "Kind of the number type." - }, - "value": { - "type": "number", - "format": "double", - "description": "A numeric representation of what the extracted text denotes." - } - }, - "required": [ - "numberKind", - "value" - ], - "allOf": [ - { - "$ref": "#/definitions/BaseMetadata" - } - ], - "x-ms-discriminator-value": "NumberMetadata" - }, - "NumericRangeMetadata": { - "type": "object", - "description": "represents the Metadata of numeric intervals.", - "properties": { - "rangeKind": { - "$ref": "#/definitions/RangeKind", - "description": "Kind of numeric ranges supported - like Number, Speed, etc." - }, - "minimum": { - "type": "number", - "format": "double", - "description": "The beginning value of the interval." - }, - "maximum": { - "type": "number", - "format": "double", - "description": "The ending value of the interval." - }, - "rangeInclusivity": { - "$ref": "#/definitions/RangeInclusivity", - "description": "The inclusiveness of this range." - } - }, - "required": [ - "rangeKind", - "minimum", - "maximum" - ], - "allOf": [ - { - "$ref": "#/definitions/BaseMetadata" - } - ], - "x-ms-discriminator-value": "NumericRangeMetadata" - }, - "OrdinalMetadata": { - "type": "object", - "description": "A metadata for numeric entity instances.", - "properties": { - "offset": { - "type": "string", - "description": "The offset with respect to the reference (e.g., offset = -1 indicates the second to last)" - }, - "relativeTo": { - "$ref": "#/definitions/RelativeTo", - "description": "The reference point that the ordinal number denotes." - }, - "value": { - "type": "string", - "description": "A simple arithmetic expression that the ordinal denotes." - } - }, - "required": [ - "offset", - "relativeTo", - "value" - ], - "allOf": [ - { - "$ref": "#/definitions/BaseMetadata" - } - ], - "x-ms-discriminator-value": "OrdinalMetadata" - }, - "PiiCategoriesExclude": { - "type": "string", - "description": "(Optional) describes the PII categories to return", - "enum": [ - "ABARoutingNumber", - "ARNationalIdentityNumber", - "AUBankAccountNumber", - "AUDriversLicenseNumber", - "AUMedicalAccountNumber", - "AUPassportNumber", - "AUTaxFileNumber", - "AUBusinessNumber", - "AUCompanyNumber", - "ATIdentityCard", - "ATTaxIdentificationNumber", - "ATValueAddedTaxNumber", - "AzureDocumentDBAuthKey", - "AzureIAASDatabaseConnectionAndSQLString", - "AzureIoTConnectionString", - "AzurePublishSettingPassword", - "AzureRedisCacheString", - "AzureSAS", - "AzureServiceBusString", - "AzureStorageAccountKey", - "AzureStorageAccountGeneric", - "BENationalNumber", - "BENationalNumberV2", - "BEValueAddedTaxNumber", - "BRCPFNumber", - "BRLegalEntityNumber", - "BRNationalIDRG", - "BGUniformCivilNumber", - "CABankAccountNumber", - "CADriversLicenseNumber", - "CAHealthServiceNumber", - "CAPassportNumber", - "CAPersonalHealthIdentification", - "CASocialInsuranceNumber", - "CLIdentityCardNumber", - "CNResidentIdentityCardNumber", - "CreditCardNumber", - "HRIdentityCardNumber", - "HRNationalIDNumber", - "HRPersonalIdentificationNumber", - "HRPersonalIdentificationOIBNumberV2", - "CYIdentityCard", - "CYTaxIdentificationNumber", - "CZPersonalIdentityNumber", - "CZPersonalIdentityV2", - "DKPersonalIdentificationNumber", - "DKPersonalIdentificationV2", - "DrugEnforcementAgencyNumber", - "EEPersonalIdentificationCode", - "EUDebitCardNumber", - "EUDriversLicenseNumber", - "EUGPSCoordinates", - "EUNationalIdentificationNumber", - "EUPassportNumber", - "EUSocialSecurityNumber", - "EUTaxIdentificationNumber", - "FIEuropeanHealthNumber", - "FINationalID", - "FINationalIDV2", - "FIPassportNumber", - "FRDriversLicenseNumber", - "FRHealthInsuranceNumber", - "FRNationalID", - "FRPassportNumber", - "FRSocialSecurityNumber", - "FRTaxIdentificationNumber", - "FRValueAddedTaxNumber", - "DEDriversLicenseNumber", - "DEPassportNumber", - "DEIdentityCardNumber", - "DETaxIdentificationNumber", - "DEValueAddedNumber", - "GRNationalIDCard", - "GRNationalIDV2", - "GRTaxIdentificationNumber", - "HKIdentityCardNumber", - "HUValueAddedNumber", - "HUPersonalIdentificationNumber", - "HUTaxIdentificationNumber", - "INPermanentAccount", - "INUniqueIdentificationNumber", - "IDIdentityCardNumber", - "InternationalBankingAccountNumber", - "IEPersonalPublicServiceNumber", - "IEPersonalPublicServiceNumberV2", - "ILBankAccountNumber", - "ILNationalID", - "ITDriversLicenseNumber", - "ITFiscalCode", - "ITValueAddedTaxNumber", - "JPBankAccountNumber", - "JPDriversLicenseNumber", - "JPPassportNumber", - "JPResidentRegistrationNumber", - "JPSocialInsuranceNumber", - "JPMyNumberCorporate", - "JPMyNumberPersonal", - "JPResidenceCardNumber", - "LVPersonalCode", - "LTPersonalCode", - "LUNationalIdentificationNumberNatural", - "LUNationalIdentificationNumberNonNatural", - "MYIdentityCardNumber", - "MTIdentityCardNumber", - "MTTaxIDNumber", - "NLCitizensServiceNumber", - "NLCitizensServiceNumberV2", - "NLTaxIdentificationNumber", - "NLValueAddedTaxNumber", - "NZBankAccountNumber", - "NZDriversLicenseNumber", - "NZInlandRevenueNumber", - "NZMinistryOfHealthNumber", - "NZSocialWelfareNumber", - "NOIdentityNumber", - "PHUnifiedMultiPurposeIDNumber", - "PLIdentityCard", - "PLNationalID", - "PLNationalIDV2", - "PLPassportNumber", - "PLTaxIdentificationNumber", - "PLREGONNumber", - "PTCitizenCardNumber", - "PTCitizenCardNumberV2", - "PTTaxIdentificationNumber", - "ROPersonalNumericalCode", - "RUPassportNumberDomestic", - "RUPassportNumberInternational", - "SANationalID", - "SGNationalRegistrationIdentityCardNumber", - "SKPersonalNumber", - "SITaxIdentificationNumber", - "SIUniqueMasterCitizenNumber", - "ZAIdentificationNumber", - "KRResidentRegistrationNumber", - "ESDNI", - "ESSocialSecurityNumber", - "ESTaxIdentificationNumber", - "SQLServerConnectionString", - "SENationalID", - "SENationalIDV2", - "SEPassportNumber", - "SETaxIdentificationNumber", - "SWIFTCode", - "CHSocialSecurityNumber", - "TWNationalID", - "TWPassportNumber", - "TWResidentCertificate", - "THPopulationIdentificationCode", - "TRNationalIdentificationNumber", - "UKDriversLicenseNumber", - "UKElectoralRollNumber", - "UKNationalHealthNumber", - "UKNationalInsuranceNumber", - "UKUniqueTaxpayerNumber", - "USUKPassportNumber", - "USBankAccountNumber", - "USDriversLicenseNumber", - "USIndividualTaxpayerIdentification", - "USSocialSecurityNumber", - "UAPassportNumberDomestic", - "UAPassportNumberInternational", - "Organization", - "Email", - "URL", - "Age", - "PhoneNumber", - "IPAddress", - "Date", - "Person", - "Address", - "DateOfBirth", - "BankAccountNumber", - "PassportNumber", - "DriversLicenseNumber", - "Neighborhood", - "SortCode", - "PIN", - "VIN", - "LicensePlate" - ], - "x-ms-enum": { - "name": "PiiCategoriesExclude", - "modelAsString": true, - "values": [ - { - "name": "ABARoutingNumber", - "value": "ABARoutingNumber", - "description": "ABA Routing number" - }, - { - "name": "ARNationalIdentityNumber", - "value": "ARNationalIdentityNumber", - "description": "AR National Identity Number" - }, - { - "name": "AUBankAccountNumber", - "value": "AUBankAccountNumber", - "description": "AT Bank Account Number" - }, - { - "name": "AUDriversLicenseNumber", - "value": "AUDriversLicenseNumber", - "description": "AU Driver's License Number" - }, - { - "name": "AUMedicalAccountNumber", - "value": "AUMedicalAccountNumber", - "description": "AU Medical Account Number" - }, - { - "name": "AUPassportNumber", - "value": "AUPassportNumber", - "description": "AU Passport Number" - }, - { - "name": "AUTaxFileNumber", - "value": "AUTaxFileNumber", - "description": "AU Tax File Number" - }, - { - "name": "AUBusinessNumber", - "value": "AUBusinessNumber", - "description": "AU Business Number" - }, - { - "name": "AUCompanyNumber", - "value": "AUCompanyNumber", - "description": "AU Company Number" - }, - { - "name": "ATIdentityCard", - "value": "ATIdentityCard", - "description": "AT Identity Card" - }, - { - "name": "ATTaxIdentificationNumber", - "value": "ATTaxIdentificationNumber", - "description": "AT Tax Identification Number" - }, - { - "name": "ATValueAddedTaxNumber", - "value": "ATValueAddedTaxNumber", - "description": "AT Value Added Tax Number" - }, - { - "name": "AzureDocumentDBAuthKey", - "value": "AzureDocumentDBAuthKey", - "description": "Azure Document DB Auth Key" - }, - { - "name": "AzureIAASDatabaseConnectionAndSQLString", - "value": "AzureIAASDatabaseConnectionAndSQLString", - "description": "Azure IAAS Database Connection And SQL String" - }, - { - "name": "AzureIoTConnectionString", - "value": "AzureIoTConnectionString", - "description": "Azure IoT Connection String" - }, - { - "name": "AzurePublishSettingPassword", - "value": "AzurePublishSettingPassword", - "description": "Azure Publish Setting Password" - }, - { - "name": "AzureRedisCacheString", - "value": "AzureRedisCacheString", - "description": "Azure Redis Cache String" - }, - { - "name": "AzureSAS", - "value": "AzureSAS", - "description": "Azure SAS" - }, - { - "name": "AzureServiceBusString", - "value": "AzureServiceBusString", - "description": "Azure Service Bus String" - }, - { - "name": "AzureStorageAccountKey", - "value": "AzureStorageAccountKey", - "description": "Azure Storage Account Key" - }, - { - "name": "AzureStorageAccountGeneric", - "value": "AzureStorageAccountGeneric", - "description": "Azure Storage Account Generic" - }, - { - "name": "BENationalNumber", - "value": "BENationalNumber", - "description": "BE National Number" - }, - { - "name": "BENationalNumberV2", - "value": "BENationalNumberV2", - "description": "BE National Number V2" - }, - { - "name": "BEValueAddedTaxNumber", - "value": "BEValueAddedTaxNumber", - "description": "BE Value Added Tax Number" - }, - { - "name": "BRCPFNumber", - "value": "BRCPFNumber", - "description": "BR CPF Number" - }, - { - "name": "BRLegalEntityNumber", - "value": "BRLegalEntityNumber", - "description": "BR Legal Entity Number" - }, - { - "name": "BRNationalIDRG", - "value": "BRNationalIDRG", - "description": "BR National ID RG" - }, - { - "name": "BGUniformCivilNumber", - "value": "BGUniformCivilNumber", - "description": "BG Uniform Civil Number" - }, - { - "name": "CABankAccountNumber", - "value": "CABankAccountNumber", - "description": "CA Bank Account Number" - }, - { - "name": "CADriversLicenseNumber", - "value": "CADriversLicenseNumber", - "description": "CA Driver's License Number" - }, - { - "name": "CAHealthServiceNumber", - "value": "CAHealthServiceNumber", - "description": "CA Health Service Number" - }, - { - "name": "CAPassportNumber", - "value": "CAPassportNumber", - "description": "CA Passport Number" - }, - { - "name": "CAPersonalHealthIdentification", - "value": "CAPersonalHealthIdentification", - "description": "CA Personal Health Identification" - }, - { - "name": "CASocialInsuranceNumber", - "value": "CASocialInsuranceNumber", - "description": "CA Social Insurance Number" - }, - { - "name": "CLIdentityCardNumber", - "value": "CLIdentityCardNumber", - "description": "CL Identity Card Number" - }, - { - "name": "CNResidentIdentityCardNumber", - "value": "CNResidentIdentityCardNumber", - "description": "CN Resident Identity Card Number" - }, - { - "name": "CreditCardNumber", - "value": "CreditCardNumber", - "description": "Credit Card Number" - }, - { - "name": "HRIdentityCardNumber", - "value": "HRIdentityCardNumber", - "description": "HR Identity Card Number" - }, - { - "name": "HRNationalIDNumber", - "value": "HRNationalIDNumber", - "description": "HR National ID Number" - }, - { - "name": "HRPersonalIdentificationNumber", - "value": "HRPersonalIdentificationNumber", - "description": "HR Personal Identification Number" - }, - { - "name": "HRPersonalIdentificationOIBNumberV2", - "value": "HRPersonalIdentificationOIBNumberV2", - "description": "HR Personal Identification OIB Number V2" - }, - { - "name": "CYIdentityCard", - "value": "CYIdentityCard", - "description": "CY Identity Card" - }, - { - "name": "CYTaxIdentificationNumber", - "value": "CYTaxIdentificationNumber", - "description": "CY Tax Identification Number" - }, - { - "name": "CZPersonalIdentityNumber", - "value": "CZPersonalIdentityNumber", - "description": "CZ Personal Identity Number" - }, - { - "name": "CZPersonalIdentityV2", - "value": "CZPersonalIdentityV2", - "description": "CZ Personal Identity V2" - }, - { - "name": "DKPersonalIdentificationNumber", - "value": "DKPersonalIdentificationNumber", - "description": "DK Personal Identification Number" - }, - { - "name": "DKPersonalIdentificationV2", - "value": "DKPersonalIdentificationV2", - "description": "DK Personal Identification V2" - }, - { - "name": "DrugEnforcementAgencyNumber", - "value": "DrugEnforcementAgencyNumber", - "description": "Drug Enforcement Agency Number" - }, - { - "name": "EEPersonalIdentificationCode", - "value": "EEPersonalIdentificationCode", - "description": "EE Personal Identification Code" - }, - { - "name": "EUDebitCardNumber", - "value": "EUDebitCardNumber", - "description": "EU Debit Card Number" - }, - { - "name": "EUDriversLicenseNumber", - "value": "EUDriversLicenseNumber", - "description": "EU Driver's License Number" - }, - { - "name": "EUGPSCoordinates", - "value": "EUGPSCoordinates", - "description": "EU GPS Coordinates" - }, - { - "name": "EUNationalIdentificationNumber", - "value": "EUNationalIdentificationNumber", - "description": "EU National Identification Number" - }, - { - "name": "EUPassportNumber", - "value": "EUPassportNumber", - "description": "EU Passport Number" - }, - { - "name": "EUSocialSecurityNumber", - "value": "EUSocialSecurityNumber", - "description": "EU Social Security Number" - }, - { - "name": "EUTaxIdentificationNumber", - "value": "EUTaxIdentificationNumber", - "description": "EU Tax Identification Number" - }, - { - "name": "FIEuropeanHealthNumber", - "value": "FIEuropeanHealthNumber", - "description": "FI European Health Number" - }, - { - "name": "FINationalID", - "value": "FINationalID", - "description": "FI National ID" - }, - { - "name": "FINationalIDV2", - "value": "FINationalIDV2", - "description": "FI National ID V2" - }, - { - "name": "FIPassportNumber", - "value": "FIPassportNumber", - "description": "FI Passport Number" - }, - { - "name": "FRDriversLicenseNumber", - "value": "FRDriversLicenseNumber", - "description": "FR Driver's License Number" - }, - { - "name": "FRHealthInsuranceNumber", - "value": "FRHealthInsuranceNumber", - "description": "FR Health Insurance Number" - }, - { - "name": "FRNationalID", - "value": "FRNationalID", - "description": "FR National ID" - }, - { - "name": "FRPassportNumber", - "value": "FRPassportNumber", - "description": "FR Passport Number" - }, - { - "name": "FRSocialSecurityNumber", - "value": "FRSocialSecurityNumber", - "description": "FR Social Security Number" - }, - { - "name": "FRTaxIdentificationNumber", - "value": "FRTaxIdentificationNumber", - "description": "FR Tax Identification Number" - }, - { - "name": "FRValueAddedTaxNumber", - "value": "FRValueAddedTaxNumber", - "description": "FR Value Added Tax Number" - }, - { - "name": "DEDriversLicenseNumber", - "value": "DEDriversLicenseNumber", - "description": "DE Driver's License Number" - }, - { - "name": "DEPassportNumber", - "value": "DEPassportNumber", - "description": "DE Passport Number" - }, - { - "name": "DEIdentityCardNumber", - "value": "DEIdentityCardNumber", - "description": "DE Identity Card Number" - }, - { - "name": "DETaxIdentificationNumber", - "value": "DETaxIdentificationNumber", - "description": "DE Tax Identification Number" - }, - { - "name": "DEValueAddedNumber", - "value": "DEValueAddedNumber", - "description": "DE Value Added Number" - }, - { - "name": "GRNationalIDCard", - "value": "GRNationalIDCard", - "description": "GR National ID Card" - }, - { - "name": "GRNationalIDV2", - "value": "GRNationalIDV2", - "description": "GR National ID V2" - }, - { - "name": "GRTaxIdentificationNumber", - "value": "GRTaxIdentificationNumber", - "description": "GR Tax Identification Number" - }, - { - "name": "HKIdentityCardNumber", - "value": "HKIdentityCardNumber", - "description": "HK Identity Card Number" - }, - { - "name": "HUValueAddedNumber", - "value": "HUValueAddedNumber", - "description": "HU Value Added Number" - }, - { - "name": "HUPersonalIdentificationNumber", - "value": "HUPersonalIdentificationNumber", - "description": "HU Personal Identification Number" - }, - { - "name": "HUTaxIdentificationNumber", - "value": "HUTaxIdentificationNumber", - "description": "HU Tax Identification Number" - }, - { - "name": "INPermanentAccount", - "value": "INPermanentAccount", - "description": "IN Permanent Account" - }, - { - "name": "INUniqueIdentificationNumber", - "value": "INUniqueIdentificationNumber", - "description": "IN Unique Identification Number" - }, - { - "name": "IDIdentityCardNumber", - "value": "IDIdentityCardNumber", - "description": "ID Identity Card Number" - }, - { - "name": "InternationalBankingAccountNumber", - "value": "InternationalBankingAccountNumber", - "description": "International Banking Account Number" - }, - { - "name": "IEPersonalPublicServiceNumber", - "value": "IEPersonalPublicServiceNumber", - "description": "IE Personal Public Service Number" - }, - { - "name": "IEPersonalPublicServiceNumberV2", - "value": "IEPersonalPublicServiceNumberV2", - "description": "IE Personal Public Service Number V2" - }, - { - "name": "ILBankAccountNumber", - "value": "ILBankAccountNumber", - "description": "IL Bank Account Number" - }, - { - "name": "ILNationalID", - "value": "ILNationalID", - "description": "IL National ID" - }, - { - "name": "ITDriversLicenseNumber", - "value": "ITDriversLicenseNumber", - "description": "IT Driver's License Number" - }, - { - "name": "ITFiscalCode", - "value": "ITFiscalCode", - "description": "IT Fiscal Code" - }, - { - "name": "ITValueAddedTaxNumber", - "value": "ITValueAddedTaxNumber", - "description": "IT Value Added Tax Number" - }, - { - "name": "JPBankAccountNumber", - "value": "JPBankAccountNumber", - "description": "JP Bank Account Number" - }, - { - "name": "JPDriversLicenseNumber", - "value": "JPDriversLicenseNumber", - "description": "JP Driver's License Number" - }, - { - "name": "JPPassportNumber", - "value": "JPPassportNumber", - "description": "JP Passport Number" - }, - { - "name": "JPResidentRegistrationNumber", - "value": "JPResidentRegistrationNumber", - "description": "JP Resident Registration Number" - }, - { - "name": "JPSocialInsuranceNumber", - "value": "JPSocialInsuranceNumber", - "description": "JP Social Insurance Number" - }, - { - "name": "JPMyNumberCorporate", - "value": "JPMyNumberCorporate", - "description": "JP My Number Corporate" - }, - { - "name": "JPMyNumberPersonal", - "value": "JPMyNumberPersonal", - "description": "JP My Number Personal" - }, - { - "name": "JPResidenceCardNumber", - "value": "JPResidenceCardNumber", - "description": "JP Residence Card Number" - }, - { - "name": "LVPersonalCode", - "value": "LVPersonalCode", - "description": "LV Personal Code" - }, - { - "name": "LTPersonalCode", - "value": "LTPersonalCode", - "description": "LT Personal Code" - }, - { - "name": "LUNationalIdentificationNumberNatural", - "value": "LUNationalIdentificationNumberNatural", - "description": "LU National Identification Number Natural" - }, - { - "name": "LUNationalIdentificationNumberNonNatural", - "value": "LUNationalIdentificationNumberNonNatural", - "description": "LU National Identification Number Non Natural" - }, - { - "name": "MYIdentityCardNumber", - "value": "MYIdentityCardNumber", - "description": "MY Identity Card Number" - }, - { - "name": "MTIdentityCardNumber", - "value": "MTIdentityCardNumber", - "description": "MT Identity Card Number" - }, - { - "name": "MTTaxIDNumber", - "value": "MTTaxIDNumber", - "description": "MT Tax ID Number" - }, - { - "name": "NLCitizensServiceNumber", - "value": "NLCitizensServiceNumber", - "description": "NL Citizens Service Number" - }, - { - "name": "NLCitizensServiceNumberV2", - "value": "NLCitizensServiceNumberV2", - "description": "NL Citizens Service Number V2" - }, - { - "name": "NLTaxIdentificationNumber", - "value": "NLTaxIdentificationNumber", - "description": "NL Tax Identification Number" - }, - { - "name": "NLValueAddedTaxNumber", - "value": "NLValueAddedTaxNumber", - "description": "NL Value Added Tax Number" - }, - { - "name": "NZBankAccountNumber", - "value": "NZBankAccountNumber", - "description": "NZ Bank Account Number" - }, - { - "name": "NZDriversLicenseNumber", - "value": "NZDriversLicenseNumber", - "description": "NZ Driver's License Number" - }, - { - "name": "NZInlandRevenueNumber", - "value": "NZInlandRevenueNumber", - "description": "NZ Inland Revenue Number" - }, - { - "name": "NZMinistryOfHealthNumber", - "value": "NZMinistryOfHealthNumber", - "description": "NZ Ministry Of Health Number" - }, - { - "name": "NZSocialWelfareNumber", - "value": "NZSocialWelfareNumber", - "description": "NZ Social Welfare Number" - }, - { - "name": "NOIdentityNumber", - "value": "NOIdentityNumber", - "description": "NO Identity Number" - }, - { - "name": "PHUnifiedMultiPurposeIDNumber", - "value": "PHUnifiedMultiPurposeIDNumber", - "description": "PH Unified Multi Purpose ID Number" - }, - { - "name": "PLIdentityCard", - "value": "PLIdentityCard", - "description": "PL Identity Card" - }, - { - "name": "PLNationalID", - "value": "PLNationalID", - "description": "PL National ID" - }, - { - "name": "PLNationalIDV2", - "value": "PLNationalIDV2", - "description": "PL National ID V2" - }, - { - "name": "PLPassportNumber", - "value": "PLPassportNumber", - "description": "PL Passport Number" - }, - { - "name": "PLTaxIdentificationNumber", - "value": "PLTaxIdentificationNumber", - "description": "PL Tax Identification Number" - }, - { - "name": "PLREGONNumber", - "value": "PLREGONNumber", - "description": "PL REGON Number" - }, - { - "name": "PTCitizenCardNumber", - "value": "PTCitizenCardNumber", - "description": "PT Citizen Card Number" - }, - { - "name": "PTCitizenCardNumberV2", - "value": "PTCitizenCardNumberV2", - "description": "PT Citizen Card Number V2" - }, - { - "name": "PTTaxIdentificationNumber", - "value": "PTTaxIdentificationNumber", - "description": "PT Tax Identification Number" - }, - { - "name": "ROPersonalNumericalCode", - "value": "ROPersonalNumericalCode", - "description": "RO Personal Numerical Code" - }, - { - "name": "RUPassportNumberDomestic", - "value": "RUPassportNumberDomestic", - "description": "RU Passport Number Domestic" - }, - { - "name": "RUPassportNumberInternational", - "value": "RUPassportNumberInternational", - "description": "RU Passport Number International" - }, - { - "name": "SANationalID", - "value": "SANationalID", - "description": "SA National ID" - }, - { - "name": "SGNationalRegistrationIdentityCardNumber", - "value": "SGNationalRegistrationIdentityCardNumber", - "description": "SG National Registration Identity Card Number" - }, - { - "name": "SKPersonalNumber", - "value": "SKPersonalNumber", - "description": "SK Personal Number" - }, - { - "name": "SITaxIdentificationNumber", - "value": "SITaxIdentificationNumber", - "description": "SI Tax Identification Number" - }, - { - "name": "SIUniqueMasterCitizenNumber", - "value": "SIUniqueMasterCitizenNumber", - "description": "SI Unique Master Citizen Number" - }, - { - "name": "ZAIdentificationNumber", - "value": "ZAIdentificationNumber", - "description": "ZA Identification Number" - }, - { - "name": "KRResidentRegistrationNumber", - "value": "KRResidentRegistrationNumber", - "description": "KR Resident Registration Number" - }, - { - "name": "ESDNI", - "value": "ESDNI", - "description": "ES DNI" - }, - { - "name": "ESSocialSecurityNumber", - "value": "ESSocialSecurityNumber", - "description": "ES Social Security Number" - }, - { - "name": "ESTaxIdentificationNumber", - "value": "ESTaxIdentificationNumber", - "description": "ES Tax Identification Number" - }, - { - "name": "SQLServerConnectionString", - "value": "SQLServerConnectionString", - "description": "SQL Server Connection String" - }, - { - "name": "SENationalID", - "value": "SENationalID", - "description": "SE National ID" - }, - { - "name": "SENationalIDV2", - "value": "SENationalIDV2", - "description": "SE National ID V2" - }, - { - "name": "SEPassportNumber", - "value": "SEPassportNumber", - "description": "SE Passport Number" - }, - { - "name": "SETaxIdentificationNumber", - "value": "SETaxIdentificationNumber", - "description": "SE Tax Identification Number" - }, - { - "name": "SWIFTCode", - "value": "SWIFTCode", - "description": "SWIFT Code" - }, - { - "name": "CHSocialSecurityNumber", - "value": "CHSocialSecurityNumber", - "description": "CH Social Security Number" - }, - { - "name": "TWNationalID", - "value": "TWNationalID", - "description": "TW National ID" - }, - { - "name": "TWPassportNumber", - "value": "TWPassportNumber", - "description": "TW Passport Number" - }, - { - "name": "TWResidentCertificate", - "value": "TWResidentCertificate", - "description": "TW Resident Certificate" - }, - { - "name": "THPopulationIdentificationCode", - "value": "THPopulationIdentificationCode", - "description": "TH Population Identification Code" - }, - { - "name": "TRNationalIdentificationNumber", - "value": "TRNationalIdentificationNumber", - "description": "TR National Identification Number" - }, - { - "name": "UKDriversLicenseNumber", - "value": "UKDriversLicenseNumber", - "description": "UK Driver's License Number" - }, - { - "name": "UKElectoralRollNumber", - "value": "UKElectoralRollNumber", - "description": "UK Electoral Roll Number" - }, - { - "name": "UKNationalHealthNumber", - "value": "UKNationalHealthNumber", - "description": "UK National Health Number" - }, - { - "name": "UKNationalInsuranceNumber", - "value": "UKNationalInsuranceNumber", - "description": "UK National Insurance Number" - }, - { - "name": "UKUniqueTaxpayerNumber", - "value": "UKUniqueTaxpayerNumber", - "description": "UK Unique Taxpayer Number" - }, - { - "name": "USUKPassportNumber", - "value": "USUKPassportNumber", - "description": "US UK Passport Number" - }, - { - "name": "USBankAccountNumber", - "value": "USBankAccountNumber", - "description": "US Bank Account Number" - }, - { - "name": "USDriversLicenseNumber", - "value": "USDriversLicenseNumber", - "description": "US Driver's License Number" - }, - { - "name": "USIndividualTaxpayerIdentification", - "value": "USIndividualTaxpayerIdentification", - "description": "US Individual Taxpayer Identification" - }, - { - "name": "USSocialSecurityNumber", - "value": "USSocialSecurityNumber", - "description": "US Social Security Number" - }, - { - "name": "UAPassportNumberDomestic", - "value": "UAPassportNumberDomestic", - "description": "UA Passport Number Domestic" - }, - { - "name": "UAPassportNumberInternational", - "value": "UAPassportNumberInternational", - "description": "UA Passport Number International" - }, - { - "name": "Organization", - "value": "Organization", - "description": "Organization" - }, - { - "name": "Email", - "value": "Email", - "description": "Email" - }, - { - "name": "URL", - "value": "URL", - "description": "URL" - }, - { - "name": "Age", - "value": "Age", - "description": "Age" - }, - { - "name": "PhoneNumber", - "value": "PhoneNumber", - "description": "Phone Number" - }, - { - "name": "IPAddress", - "value": "IPAddress", - "description": "IP Address" - }, - { - "name": "Date", - "value": "Date", - "description": "Date" - }, - { - "name": "Person", - "value": "Person", - "description": "Person" - }, - { - "name": "Address", - "value": "Address", - "description": "Address" - }, - { - "name": "DateOfBirth", - "value": "DateOfBirth", - "description": "Date Of Birth" - }, - { - "name": "BankAccountNumber", - "value": "BankAccountNumber", - "description": "Bank Account Number" - }, - { - "name": "PassportNumber", - "value": "PassportNumber", - "description": "Passport Number" - }, - { - "name": "DriversLicenseNumber", - "value": "DriversLicenseNumber", - "description": "Drivers License Number" - }, - { - "name": "Neighborhood", - "value": "Neighborhood", - "description": "Neighborhood" - }, - { - "name": "SortCode", - "value": "SortCode", - "description": "Sort Code. 6-digit number used in the UK to identify a specific bank and branch where a bank account is held" - }, - { - "name": "PIN", - "value": "PIN", - "description": "PIN" - }, - { - "name": "VIN", - "value": "VIN", - "description": "VIN" - }, - { - "name": "LicensePlate", - "value": "LicensePlate", - "description": "License Plate" - } - ] - } - }, - "PiiCategory": { - "type": "string", - "description": "(Optional) describes the PII categories to return", - "enum": [ - "ABARoutingNumber", - "ARNationalIdentityNumber", - "AUBankAccountNumber", - "AUDriversLicenseNumber", - "AUMedicalAccountNumber", - "AUPassportNumber", - "AUTaxFileNumber", - "AUBusinessNumber", - "AUCompanyNumber", - "ATIdentityCard", - "ATTaxIdentificationNumber", - "ATValueAddedTaxNumber", - "AzureDocumentDBAuthKey", - "AzureIAASDatabaseConnectionAndSQLString", - "AzureIoTConnectionString", - "AzurePublishSettingPassword", - "AzureRedisCacheString", - "AzureSAS", - "AzureServiceBusString", - "AzureStorageAccountKey", - "AzureStorageAccountGeneric", - "BENationalNumber", - "BENationalNumberV2", - "BEValueAddedTaxNumber", - "BRCPFNumber", - "BRLegalEntityNumber", - "BRNationalIDRG", - "BGUniformCivilNumber", - "CABankAccountNumber", - "CADriversLicenseNumber", - "CAHealthServiceNumber", - "CAPassportNumber", - "CAPersonalHealthIdentification", - "CASocialInsuranceNumber", - "CLIdentityCardNumber", - "CNResidentIdentityCardNumber", - "CreditCardNumber", - "HRIdentityCardNumber", - "HRNationalIDNumber", - "HRPersonalIdentificationNumber", - "HRPersonalIdentificationOIBNumberV2", - "CYIdentityCard", - "CYTaxIdentificationNumber", - "CZPersonalIdentityNumber", - "CZPersonalIdentityV2", - "DKPersonalIdentificationNumber", - "DKPersonalIdentificationV2", - "DrugEnforcementAgencyNumber", - "EEPersonalIdentificationCode", - "EUDebitCardNumber", - "EUDriversLicenseNumber", - "EUGPSCoordinates", - "EUNationalIdentificationNumber", - "EUPassportNumber", - "EUSocialSecurityNumber", - "EUTaxIdentificationNumber", - "FIEuropeanHealthNumber", - "FINationalID", - "FINationalIDV2", - "FIPassportNumber", - "FRDriversLicenseNumber", - "FRHealthInsuranceNumber", - "FRNationalID", - "FRPassportNumber", - "FRSocialSecurityNumber", - "FRTaxIdentificationNumber", - "FRValueAddedTaxNumber", - "DEDriversLicenseNumber", - "DEPassportNumber", - "DEIdentityCardNumber", - "DETaxIdentificationNumber", - "DEValueAddedNumber", - "GRNationalIDCard", - "GRNationalIDV2", - "GRTaxIdentificationNumber", - "HKIdentityCardNumber", - "HUValueAddedNumber", - "HUPersonalIdentificationNumber", - "HUTaxIdentificationNumber", - "INPermanentAccount", - "INUniqueIdentificationNumber", - "IDIdentityCardNumber", - "InternationalBankingAccountNumber", - "IEPersonalPublicServiceNumber", - "IEPersonalPublicServiceNumberV2", - "ILBankAccountNumber", - "ILNationalID", - "ITDriversLicenseNumber", - "ITFiscalCode", - "ITValueAddedTaxNumber", - "JPBankAccountNumber", - "JPDriversLicenseNumber", - "JPPassportNumber", - "JPResidentRegistrationNumber", - "JPSocialInsuranceNumber", - "JPMyNumberCorporate", - "JPMyNumberPersonal", - "JPResidenceCardNumber", - "LVPersonalCode", - "LTPersonalCode", - "LUNationalIdentificationNumberNatural", - "LUNationalIdentificationNumberNonNatural", - "MYIdentityCardNumber", - "MTIdentityCardNumber", - "MTTaxIDNumber", - "NLCitizensServiceNumber", - "NLCitizensServiceNumberV2", - "NLTaxIdentificationNumber", - "NLValueAddedTaxNumber", - "NZBankAccountNumber", - "NZDriversLicenseNumber", - "NZInlandRevenueNumber", - "NZMinistryOfHealthNumber", - "NZSocialWelfareNumber", - "NOIdentityNumber", - "PHUnifiedMultiPurposeIDNumber", - "PLIdentityCard", - "PLNationalID", - "PLNationalIDV2", - "PLPassportNumber", - "PLTaxIdentificationNumber", - "PLREGONNumber", - "PTCitizenCardNumber", - "PTCitizenCardNumberV2", - "PTTaxIdentificationNumber", - "ROPersonalNumericalCode", - "RUPassportNumberDomestic", - "RUPassportNumberInternational", - "SANationalID", - "SGNationalRegistrationIdentityCardNumber", - "SKPersonalNumber", - "SITaxIdentificationNumber", - "SIUniqueMasterCitizenNumber", - "ZAIdentificationNumber", - "KRResidentRegistrationNumber", - "ESDNI", - "ESSocialSecurityNumber", - "ESTaxIdentificationNumber", - "SQLServerConnectionString", - "SENationalID", - "SENationalIDV2", - "SEPassportNumber", - "SETaxIdentificationNumber", - "SWIFTCode", - "CHSocialSecurityNumber", - "TWNationalID", - "TWPassportNumber", - "TWResidentCertificate", - "THPopulationIdentificationCode", - "TRNationalIdentificationNumber", - "UKDriversLicenseNumber", - "UKElectoralRollNumber", - "UKNationalHealthNumber", - "UKNationalInsuranceNumber", - "UKUniqueTaxpayerNumber", - "USUKPassportNumber", - "USBankAccountNumber", - "USDriversLicenseNumber", - "USIndividualTaxpayerIdentification", - "USSocialSecurityNumber", - "UAPassportNumberDomestic", - "UAPassportNumberInternational", - "Organization", - "Email", - "URL", - "Age", - "PhoneNumber", - "IPAddress", - "Date", - "Person", - "Address", - "DateOfBirth", - "BankAccountNumber", - "PassportNumber", - "DriversLicenseNumber", - "Neighborhood", - "SortCode", - "PIN", - "VIN", - "LicensePlate", - "All", - "Default" - ], - "x-ms-enum": { - "name": "PiiCategory", - "modelAsString": true, - "values": [ - { - "name": "ABARoutingNumber", - "value": "ABARoutingNumber", - "description": "ABA Routing number" - }, - { - "name": "ARNationalIdentityNumber", - "value": "ARNationalIdentityNumber", - "description": "AR National Identity Number" - }, - { - "name": "AUBankAccountNumber", - "value": "AUBankAccountNumber", - "description": "AT Bank Account Number" - }, - { - "name": "AUDriversLicenseNumber", - "value": "AUDriversLicenseNumber", - "description": "AU Driver's License Number" - }, - { - "name": "AUMedicalAccountNumber", - "value": "AUMedicalAccountNumber", - "description": "AU Medical Account Number" - }, - { - "name": "AUPassportNumber", - "value": "AUPassportNumber", - "description": "AU Passport Number" - }, - { - "name": "AUTaxFileNumber", - "value": "AUTaxFileNumber", - "description": "AU Tax File Number" - }, - { - "name": "AUBusinessNumber", - "value": "AUBusinessNumber", - "description": "AU Business Number" - }, - { - "name": "AUCompanyNumber", - "value": "AUCompanyNumber", - "description": "AU Company Number" - }, - { - "name": "ATIdentityCard", - "value": "ATIdentityCard", - "description": "AT Identity Card" - }, - { - "name": "ATTaxIdentificationNumber", - "value": "ATTaxIdentificationNumber", - "description": "AT Tax Identification Number" - }, - { - "name": "ATValueAddedTaxNumber", - "value": "ATValueAddedTaxNumber", - "description": "AT Value Added Tax Number" - }, - { - "name": "AzureDocumentDBAuthKey", - "value": "AzureDocumentDBAuthKey", - "description": "Azure Document DB Auth Key" - }, - { - "name": "AzureIAASDatabaseConnectionAndSQLString", - "value": "AzureIAASDatabaseConnectionAndSQLString", - "description": "Azure IAAS Database Connection And SQL String" - }, - { - "name": "AzureIoTConnectionString", - "value": "AzureIoTConnectionString", - "description": "Azure IoT Connection String" - }, - { - "name": "AzurePublishSettingPassword", - "value": "AzurePublishSettingPassword", - "description": "Azure Publish Setting Password" - }, - { - "name": "AzureRedisCacheString", - "value": "AzureRedisCacheString", - "description": "Azure Redis Cache String" - }, - { - "name": "AzureSAS", - "value": "AzureSAS", - "description": "Azure SAS" - }, - { - "name": "AzureServiceBusString", - "value": "AzureServiceBusString", - "description": "Azure Service Bus String" - }, - { - "name": "AzureStorageAccountKey", - "value": "AzureStorageAccountKey", - "description": "Azure Storage Account Key" - }, - { - "name": "AzureStorageAccountGeneric", - "value": "AzureStorageAccountGeneric", - "description": "Azure Storage Account Generic" - }, - { - "name": "BENationalNumber", - "value": "BENationalNumber", - "description": "BE National Number" - }, - { - "name": "BENationalNumberV2", - "value": "BENationalNumberV2", - "description": "BE National Number V2" - }, - { - "name": "BEValueAddedTaxNumber", - "value": "BEValueAddedTaxNumber", - "description": "BE Value Added Tax Number" - }, - { - "name": "BRCPFNumber", - "value": "BRCPFNumber", - "description": "BR CPF Number" - }, - { - "name": "BRLegalEntityNumber", - "value": "BRLegalEntityNumber", - "description": "BR Legal Entity Number" - }, - { - "name": "BRNationalIDRG", - "value": "BRNationalIDRG", - "description": "BR National ID RG" - }, - { - "name": "BGUniformCivilNumber", - "value": "BGUniformCivilNumber", - "description": "BG Uniform Civil Number" - }, - { - "name": "CABankAccountNumber", - "value": "CABankAccountNumber", - "description": "CA Bank Account Number" - }, - { - "name": "CADriversLicenseNumber", - "value": "CADriversLicenseNumber", - "description": "CA Driver's License Number" - }, - { - "name": "CAHealthServiceNumber", - "value": "CAHealthServiceNumber", - "description": "CA Health Service Number" - }, - { - "name": "CAPassportNumber", - "value": "CAPassportNumber", - "description": "CA Passport Number" - }, - { - "name": "CAPersonalHealthIdentification", - "value": "CAPersonalHealthIdentification", - "description": "CA Personal Health Identification" - }, - { - "name": "CASocialInsuranceNumber", - "value": "CASocialInsuranceNumber", - "description": "CA Social Insurance Number" - }, - { - "name": "CLIdentityCardNumber", - "value": "CLIdentityCardNumber", - "description": "CL Identity Card Number" - }, - { - "name": "CNResidentIdentityCardNumber", - "value": "CNResidentIdentityCardNumber", - "description": "CN Resident Identity Card Number" - }, - { - "name": "CreditCardNumber", - "value": "CreditCardNumber", - "description": "Credit Card Number" - }, - { - "name": "HRIdentityCardNumber", - "value": "HRIdentityCardNumber", - "description": "HR Identity Card Number" - }, - { - "name": "HRNationalIDNumber", - "value": "HRNationalIDNumber", - "description": "HR National ID Number" - }, - { - "name": "HRPersonalIdentificationNumber", - "value": "HRPersonalIdentificationNumber", - "description": "HR Personal Identification Number" - }, - { - "name": "HRPersonalIdentificationOIBNumberV2", - "value": "HRPersonalIdentificationOIBNumberV2", - "description": "HR Personal Identification OIB Number V2" - }, - { - "name": "CYIdentityCard", - "value": "CYIdentityCard", - "description": "CY Identity Card" - }, - { - "name": "CYTaxIdentificationNumber", - "value": "CYTaxIdentificationNumber", - "description": "CY Tax Identification Number" - }, - { - "name": "CZPersonalIdentityNumber", - "value": "CZPersonalIdentityNumber", - "description": "CZ Personal Identity Number" - }, - { - "name": "CZPersonalIdentityV2", - "value": "CZPersonalIdentityV2", - "description": "CZ Personal Identity V2" - }, - { - "name": "DKPersonalIdentificationNumber", - "value": "DKPersonalIdentificationNumber", - "description": "DK Personal Identification Number" - }, - { - "name": "DKPersonalIdentificationV2", - "value": "DKPersonalIdentificationV2", - "description": "DK Personal Identification V2" - }, - { - "name": "DrugEnforcementAgencyNumber", - "value": "DrugEnforcementAgencyNumber", - "description": "Drug Enforcement Agency Number" - }, - { - "name": "EEPersonalIdentificationCode", - "value": "EEPersonalIdentificationCode", - "description": "EE Personal Identification Code" - }, - { - "name": "EUDebitCardNumber", - "value": "EUDebitCardNumber", - "description": "EU Debit Card Number" - }, - { - "name": "EUDriversLicenseNumber", - "value": "EUDriversLicenseNumber", - "description": "EU Driver's License Number" - }, - { - "name": "EUGPSCoordinates", - "value": "EUGPSCoordinates", - "description": "EU GPS Coordinates" - }, - { - "name": "EUNationalIdentificationNumber", - "value": "EUNationalIdentificationNumber", - "description": "EU National Identification Number" - }, - { - "name": "EUPassportNumber", - "value": "EUPassportNumber", - "description": "EU Passport Number" - }, - { - "name": "EUSocialSecurityNumber", - "value": "EUSocialSecurityNumber", - "description": "EU Social Security Number" - }, - { - "name": "EUTaxIdentificationNumber", - "value": "EUTaxIdentificationNumber", - "description": "EU Tax Identification Number" - }, - { - "name": "FIEuropeanHealthNumber", - "value": "FIEuropeanHealthNumber", - "description": "FI European Health Number" - }, - { - "name": "FINationalID", - "value": "FINationalID", - "description": "FI National ID" - }, - { - "name": "FINationalIDV2", - "value": "FINationalIDV2", - "description": "FI National ID V2" - }, - { - "name": "FIPassportNumber", - "value": "FIPassportNumber", - "description": "FI Passport Number" - }, - { - "name": "FRDriversLicenseNumber", - "value": "FRDriversLicenseNumber", - "description": "FR Driver's License Number" - }, - { - "name": "FRHealthInsuranceNumber", - "value": "FRHealthInsuranceNumber", - "description": "FR Health Insurance Number" - }, - { - "name": "FRNationalID", - "value": "FRNationalID", - "description": "FR National ID" - }, - { - "name": "FRPassportNumber", - "value": "FRPassportNumber", - "description": "FR Passport Number" - }, - { - "name": "FRSocialSecurityNumber", - "value": "FRSocialSecurityNumber", - "description": "FR Social Security Number" - }, - { - "name": "FRTaxIdentificationNumber", - "value": "FRTaxIdentificationNumber", - "description": "FR Tax Identification Number" - }, - { - "name": "FRValueAddedTaxNumber", - "value": "FRValueAddedTaxNumber", - "description": "FR Value Added Tax Number" - }, - { - "name": "DEDriversLicenseNumber", - "value": "DEDriversLicenseNumber", - "description": "DE Driver's License Number" - }, - { - "name": "DEPassportNumber", - "value": "DEPassportNumber", - "description": "DE Passport Number" - }, - { - "name": "DEIdentityCardNumber", - "value": "DEIdentityCardNumber", - "description": "DE Identity Card Number" - }, - { - "name": "DETaxIdentificationNumber", - "value": "DETaxIdentificationNumber", - "description": "DE Tax Identification Number" - }, - { - "name": "DEValueAddedNumber", - "value": "DEValueAddedNumber", - "description": "DE Value Added Number" - }, - { - "name": "GRNationalIDCard", - "value": "GRNationalIDCard", - "description": "GR National ID Card" - }, - { - "name": "GRNationalIDV2", - "value": "GRNationalIDV2", - "description": "GR National ID V2" - }, - { - "name": "GRTaxIdentificationNumber", - "value": "GRTaxIdentificationNumber", - "description": "GR Tax Identification Number" - }, - { - "name": "HKIdentityCardNumber", - "value": "HKIdentityCardNumber", - "description": "HK Identity Card Number" - }, - { - "name": "HUValueAddedNumber", - "value": "HUValueAddedNumber", - "description": "HU Value Added Number" - }, - { - "name": "HUPersonalIdentificationNumber", - "value": "HUPersonalIdentificationNumber", - "description": "HU Personal Identification Number" - }, - { - "name": "HUTaxIdentificationNumber", - "value": "HUTaxIdentificationNumber", - "description": "HU Tax Identification Number" - }, - { - "name": "INPermanentAccount", - "value": "INPermanentAccount", - "description": "IN Permanent Account" - }, - { - "name": "INUniqueIdentificationNumber", - "value": "INUniqueIdentificationNumber", - "description": "IN Unique Identification Number" - }, - { - "name": "IDIdentityCardNumber", - "value": "IDIdentityCardNumber", - "description": "ID Identity Card Number" - }, - { - "name": "InternationalBankingAccountNumber", - "value": "InternationalBankingAccountNumber", - "description": "International Banking Account Number" - }, - { - "name": "IEPersonalPublicServiceNumber", - "value": "IEPersonalPublicServiceNumber", - "description": "IE Personal Public Service Number" - }, - { - "name": "IEPersonalPublicServiceNumberV2", - "value": "IEPersonalPublicServiceNumberV2", - "description": "IE Personal Public Service Number V2" - }, - { - "name": "ILBankAccountNumber", - "value": "ILBankAccountNumber", - "description": "IL Bank Account Number" - }, - { - "name": "ILNationalID", - "value": "ILNationalID", - "description": "IL National ID" - }, - { - "name": "ITDriversLicenseNumber", - "value": "ITDriversLicenseNumber", - "description": "IT Driver's License Number" - }, - { - "name": "ITFiscalCode", - "value": "ITFiscalCode", - "description": "IT Fiscal Code" - }, - { - "name": "ITValueAddedTaxNumber", - "value": "ITValueAddedTaxNumber", - "description": "IT Value Added Tax Number" - }, - { - "name": "JPBankAccountNumber", - "value": "JPBankAccountNumber", - "description": "JP Bank Account Number" - }, - { - "name": "JPDriversLicenseNumber", - "value": "JPDriversLicenseNumber", - "description": "JP Driver's License Number" - }, - { - "name": "JPPassportNumber", - "value": "JPPassportNumber", - "description": "JP Passport Number" - }, - { - "name": "JPResidentRegistrationNumber", - "value": "JPResidentRegistrationNumber", - "description": "JP Resident Registration Number" - }, - { - "name": "JPSocialInsuranceNumber", - "value": "JPSocialInsuranceNumber", - "description": "JP Social Insurance Number" - }, - { - "name": "JPMyNumberCorporate", - "value": "JPMyNumberCorporate", - "description": "JP My Number Corporate" - }, - { - "name": "JPMyNumberPersonal", - "value": "JPMyNumberPersonal", - "description": "JP My Number Personal" - }, - { - "name": "JPResidenceCardNumber", - "value": "JPResidenceCardNumber", - "description": "JP Residence Card Number" - }, - { - "name": "LVPersonalCode", - "value": "LVPersonalCode", - "description": "LV Personal Code" - }, - { - "name": "LTPersonalCode", - "value": "LTPersonalCode", - "description": "LT Personal Code" - }, - { - "name": "LUNationalIdentificationNumberNatural", - "value": "LUNationalIdentificationNumberNatural", - "description": "LU National Identification Number Natural" - }, - { - "name": "LUNationalIdentificationNumberNonNatural", - "value": "LUNationalIdentificationNumberNonNatural", - "description": "LU National Identification Number Non Natural" - }, - { - "name": "MYIdentityCardNumber", - "value": "MYIdentityCardNumber", - "description": "MY Identity Card Number" - }, - { - "name": "MTIdentityCardNumber", - "value": "MTIdentityCardNumber", - "description": "MT Identity Card Number" - }, - { - "name": "MTTaxIDNumber", - "value": "MTTaxIDNumber", - "description": "MT Tax ID Number" - }, - { - "name": "NLCitizensServiceNumber", - "value": "NLCitizensServiceNumber", - "description": "NL Citizens Service Number" - }, - { - "name": "NLCitizensServiceNumberV2", - "value": "NLCitizensServiceNumberV2", - "description": "NL Citizens Service Number V2" - }, - { - "name": "NLTaxIdentificationNumber", - "value": "NLTaxIdentificationNumber", - "description": "NL Tax Identification Number" - }, - { - "name": "NLValueAddedTaxNumber", - "value": "NLValueAddedTaxNumber", - "description": "NL Value Added Tax Number" - }, - { - "name": "NZBankAccountNumber", - "value": "NZBankAccountNumber", - "description": "NZ Bank Account Number" - }, - { - "name": "NZDriversLicenseNumber", - "value": "NZDriversLicenseNumber", - "description": "NZ Driver's License Number" - }, - { - "name": "NZInlandRevenueNumber", - "value": "NZInlandRevenueNumber", - "description": "NZ Inland Revenue Number" - }, - { - "name": "NZMinistryOfHealthNumber", - "value": "NZMinistryOfHealthNumber", - "description": "NZ Ministry Of Health Number" - }, - { - "name": "NZSocialWelfareNumber", - "value": "NZSocialWelfareNumber", - "description": "NZ Social Welfare Number" - }, - { - "name": "NOIdentityNumber", - "value": "NOIdentityNumber", - "description": "NO Identity Number" - }, - { - "name": "PHUnifiedMultiPurposeIDNumber", - "value": "PHUnifiedMultiPurposeIDNumber", - "description": "PH Unified Multi Purpose ID Number" - }, - { - "name": "PLIdentityCard", - "value": "PLIdentityCard", - "description": "PL Identity Card" - }, - { - "name": "PLNationalID", - "value": "PLNationalID", - "description": "PL National ID" - }, - { - "name": "PLNationalIDV2", - "value": "PLNationalIDV2", - "description": "PL National ID V2" - }, - { - "name": "PLPassportNumber", - "value": "PLPassportNumber", - "description": "PL Passport Number" - }, - { - "name": "PLTaxIdentificationNumber", - "value": "PLTaxIdentificationNumber", - "description": "PL Tax Identification Number" - }, - { - "name": "PLREGONNumber", - "value": "PLREGONNumber", - "description": "PL REGON Number" - }, - { - "name": "PTCitizenCardNumber", - "value": "PTCitizenCardNumber", - "description": "PT Citizen Card Number" - }, - { - "name": "PTCitizenCardNumberV2", - "value": "PTCitizenCardNumberV2", - "description": "PT Citizen Card Number V2" - }, - { - "name": "PTTaxIdentificationNumber", - "value": "PTTaxIdentificationNumber", - "description": "PT Tax Identification Number" - }, - { - "name": "ROPersonalNumericalCode", - "value": "ROPersonalNumericalCode", - "description": "RO Personal Numerical Code" - }, - { - "name": "RUPassportNumberDomestic", - "value": "RUPassportNumberDomestic", - "description": "RU Passport Number Domestic" - }, - { - "name": "RUPassportNumberInternational", - "value": "RUPassportNumberInternational", - "description": "RU Passport Number International" - }, - { - "name": "SANationalID", - "value": "SANationalID", - "description": "SA National ID" - }, - { - "name": "SGNationalRegistrationIdentityCardNumber", - "value": "SGNationalRegistrationIdentityCardNumber", - "description": "SG National Registration Identity Card Number" - }, - { - "name": "SKPersonalNumber", - "value": "SKPersonalNumber", - "description": "SK Personal Number" - }, - { - "name": "SITaxIdentificationNumber", - "value": "SITaxIdentificationNumber", - "description": "SI Tax Identification Number" - }, - { - "name": "SIUniqueMasterCitizenNumber", - "value": "SIUniqueMasterCitizenNumber", - "description": "SI Unique Master Citizen Number" - }, - { - "name": "ZAIdentificationNumber", - "value": "ZAIdentificationNumber", - "description": "ZA Identification Number" - }, - { - "name": "KRResidentRegistrationNumber", - "value": "KRResidentRegistrationNumber", - "description": "KR Resident Registration Number" - }, - { - "name": "ESDNI", - "value": "ESDNI", - "description": "ES DNI" - }, - { - "name": "ESSocialSecurityNumber", - "value": "ESSocialSecurityNumber", - "description": "ES Social Security Number" - }, - { - "name": "ESTaxIdentificationNumber", - "value": "ESTaxIdentificationNumber", - "description": "ES Tax Identification Number" - }, - { - "name": "SQLServerConnectionString", - "value": "SQLServerConnectionString", - "description": "SQL Server Connection String" - }, - { - "name": "SENationalID", - "value": "SENationalID", - "description": "SE National ID" - }, - { - "name": "SENationalIDV2", - "value": "SENationalIDV2", - "description": "SE National ID V2" - }, - { - "name": "SEPassportNumber", - "value": "SEPassportNumber", - "description": "SE Passport Number" - }, - { - "name": "SETaxIdentificationNumber", - "value": "SETaxIdentificationNumber", - "description": "SE Tax Identification Number" - }, - { - "name": "SWIFTCode", - "value": "SWIFTCode", - "description": "SWIFT Code" - }, - { - "name": "CHSocialSecurityNumber", - "value": "CHSocialSecurityNumber", - "description": "CH Social Security Number" - }, - { - "name": "TWNationalID", - "value": "TWNationalID", - "description": "TW National ID" - }, - { - "name": "TWPassportNumber", - "value": "TWPassportNumber", - "description": "TW Passport Number" - }, - { - "name": "TWResidentCertificate", - "value": "TWResidentCertificate", - "description": "TW Resident Certificate" - }, - { - "name": "THPopulationIdentificationCode", - "value": "THPopulationIdentificationCode", - "description": "TH Population Identification Code" - }, - { - "name": "TRNationalIdentificationNumber", - "value": "TRNationalIdentificationNumber", - "description": "TR National Identification Number" - }, - { - "name": "UKDriversLicenseNumber", - "value": "UKDriversLicenseNumber", - "description": "UK Driver's License Number" - }, - { - "name": "UKElectoralRollNumber", - "value": "UKElectoralRollNumber", - "description": "UK Electoral Roll Number" - }, - { - "name": "UKNationalHealthNumber", - "value": "UKNationalHealthNumber", - "description": "UK National Health Number" - }, - { - "name": "UKNationalInsuranceNumber", - "value": "UKNationalInsuranceNumber", - "description": "UK National Insurance Number" - }, - { - "name": "UKUniqueTaxpayerNumber", - "value": "UKUniqueTaxpayerNumber", - "description": "UK Unique Taxpayer Number" - }, - { - "name": "USUKPassportNumber", - "value": "USUKPassportNumber", - "description": "US UK Passport Number" - }, - { - "name": "USBankAccountNumber", - "value": "USBankAccountNumber", - "description": "US Bank Account Number" - }, - { - "name": "USDriversLicenseNumber", - "value": "USDriversLicenseNumber", - "description": "US Driver's License Number" - }, - { - "name": "USIndividualTaxpayerIdentification", - "value": "USIndividualTaxpayerIdentification", - "description": "US Individual Taxpayer Identification" - }, - { - "name": "USSocialSecurityNumber", - "value": "USSocialSecurityNumber", - "description": "US Social Security Number" - }, - { - "name": "UAPassportNumberDomestic", - "value": "UAPassportNumberDomestic", - "description": "UA Passport Number Domestic" - }, - { - "name": "UAPassportNumberInternational", - "value": "UAPassportNumberInternational", - "description": "UA Passport Number International" - }, - { - "name": "Organization", - "value": "Organization", - "description": "Organization" - }, - { - "name": "Email", - "value": "Email", - "description": "Email" - }, - { - "name": "URL", - "value": "URL", - "description": "URL" - }, - { - "name": "Age", - "value": "Age", - "description": "Age" - }, - { - "name": "PhoneNumber", - "value": "PhoneNumber", - "description": "Phone Number" - }, - { - "name": "IPAddress", - "value": "IPAddress", - "description": "IP Address" - }, - { - "name": "Date", - "value": "Date", - "description": "Date" - }, - { - "name": "Person", - "value": "Person", - "description": "Person" - }, - { - "name": "Address", - "value": "Address", - "description": "Address" - }, - { - "name": "DateOfBirth", - "value": "DateOfBirth", - "description": "Date Of Birth" - }, - { - "name": "BankAccountNumber", - "value": "BankAccountNumber", - "description": "Bank Account Number" - }, - { - "name": "PassportNumber", - "value": "PassportNumber", - "description": "Passport Number" - }, - { - "name": "DriversLicenseNumber", - "value": "DriversLicenseNumber", - "description": "Drivers License Number" - }, - { - "name": "Neighborhood", - "value": "Neighborhood", - "description": "Neighborhood" - }, - { - "name": "SortCode", - "value": "SortCode", - "description": "Sort Code. 6-digit number used in the UK to identify a specific bank and branch where a bank account is held" - }, - { - "name": "PIN", - "value": "PIN", - "description": "PIN" - }, - { - "name": "VIN", - "value": "VIN", - "description": "VIN" - }, - { - "name": "LicensePlate", - "value": "LicensePlate", - "description": "License Plate" - }, - { - "name": "All", - "value": "All", - "description": "All PII categories." - }, - { - "name": "Default", - "value": "Default", - "description": "Default PII categories for the language." - } - ] - } - }, - "PiiEntityRecognitionLROResult": { - "type": "object", - "description": "Contains the PII LRO results.", - "properties": { - "results": { - "$ref": "#/definitions/PiiResult", - "description": "The list of pii results" - } - }, - "required": [ - "results" - ], - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - ], - "x-ms-discriminator-value": "PiiEntityRecognitionLROResults" - }, - "PiiEntityWithTags": { - "type": "object", - "description": "Entity object with tags.", - "properties": { - "text": { - "type": "string", - "description": "Entity text as appears in the request." - }, - "category": { - "type": "string", - "description": "Entity type." - }, - "subcategory": { - "type": "string", - "description": "(Optional) Entity sub type." - }, - "offset": { - "type": "integer", - "format": "int32", - "description": "Start position for the entity text. Use of different 'stringIndexType' values can affect the offset returned." - }, - "length": { - "type": "integer", - "format": "int32", - "description": "Length for the entity text. Use of different 'stringIndexType' values can affect the length returned." - }, - "confidenceScore": { - "type": "number", - "format": "double", - "description": "Confidence score between 0 and 1 of the extracted entity." - }, - "type": { - "type": "string", - "description": "An entity type is the lowest (or finest) granularity at which the entity has been detected. The type maps to the specific metadata attributes associated with the entity detected." - }, - "tags": { - "type": "array", - "description": "List of entity tags. Tags are to express some similarities/affinity between entities.", - "items": { - "$ref": "#/definitions/EntityTag" - } - }, - "mask": { - "type": "string", - "description": "Optional field which will be returned only when using the redaction policy kind “MaskWithEntityType”. This field will contain the exact mask text used to mask the PII entity in the original text" - }, - "maskOffset": { - "type": "integer", - "format": "int32", - "description": "Start position of masked text in the redacted text when using the redaction policy kind “MaskWithEntityType”." - }, - "maskLength": { - "type": "integer", - "format": "int32", - "description": "The length of the masked text. Will be present when using the redaction policy kind “MaskWithEntityType”." - } - }, - "required": [ - "text", - "category", - "offset", - "length", - "confidenceScore" - ] - }, - "PiiLROTask": { - "type": "object", - "description": "Contains the analyze text PIIEntityRecognition LRO task.", - "properties": { - "parameters": { - "$ref": "#/definitions/PiiTaskParameters", - "description": "Pii task parameters." - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - ], - "x-ms-discriminator-value": "PiiEntityRecognition" - }, - "PiiResult": { - "type": "object", - "description": "Contains the PiiResult.", - "properties": { - "errors": { - "type": "array", - "description": "Errors by document id.", - "items": { - "$ref": "#/definitions/DocumentError" - } - }, - "statistics": { - "$ref": "#/definitions/RequestStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the request payload." - }, - "modelVersion": { - "type": "string", - "description": "This field indicates which model is used for scoring." - }, - "documents": { - "type": "array", - "description": "Response by document", - "items": { - "$ref": "#/definitions/PiiResultWithDetectedLanguage" - } - } - }, - "required": [ - "errors", - "modelVersion", - "documents" - ] - }, - "PiiResultWithDetectedLanguage": { - "type": "object", - "description": "Contains the PII results with detected language.", - "properties": { - "id": { - "type": "string", - "description": "Unique, non-empty document identifier." - }, - "warnings": { - "type": "array", - "description": "Warnings encountered while processing document.", - "items": { - "$ref": "#/definitions/DocumentWarning" - } - }, - "statistics": { - "$ref": "#/definitions/DocumentStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the document payload." - }, - "redactedText": { - "type": "string", - "description": "Returns redacted text." - }, - "entities": { - "type": "array", - "description": "Recognized entities in the document.", - "items": { - "$ref": "#/definitions/PiiEntityWithTags" - } - }, - "detectedLanguage": { - "$ref": "#/definitions/DetectedLanguage", - "description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document." - } - }, - "required": [ - "id", - "warnings", - "redactedText", - "entities" - ] - }, - "PiiTaskParameters": { - "type": "object", - "description": "Supported parameters for a PII Entities Recognition task.", - "properties": { - "loggingOptOut": { - "type": "boolean", - "description": "logging opt out", - "default": true - }, - "modelVersion": { - "type": "string", - "description": "model version", - "default": "latest" - }, - "domain": { - "type": "string", - "description": "Domain for PII task", - "default": "none", - "enum": [ - "phi", - "none" - ], - "x-ms-enum": { - "name": "PiiDomain", - "modelAsString": true, - "values": [ - { - "name": "phi", - "value": "phi", - "description": "Indicates that entities in the Personal Health Information domain should be redacted." - }, - { - "name": "none", - "value": "none", - "description": "Indicates that no domain is specified." - } - ] - } - }, - "piiCategories": { - "type": "array", - "description": "Enumeration of PII categories to be returned in the response.", - "items": { - "$ref": "#/definitions/PiiCategory" - } - }, - "stringIndexType": { - "type": "string", - "description": "StringIndexType to be used for analysis.", - "default": "TextElements_v8", - "enum": [ - "TextElements_v8", - "UnicodeCodePoint", - "Utf16CodeUnit" - ], - "x-ms-enum": { - "name": "StringIndexType", - "modelAsString": true, - "values": [ - { - "name": "TextElements_v8", - "value": "TextElements_v8", - "description": "Returned offset and length values will correspond to TextElements (Graphemes and Grapheme clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is written in .Net Framework or .Net Core and you will be using StringInfo." - }, - { - "name": "UnicodeCodePoint", - "value": "UnicodeCodePoint", - "description": "Returned offset and length values will correspond to Unicode code points. Use this option if your application is written in a language that support Unicode, for example Python." - }, - { - "name": "Utf16CodeUnit", - "value": "Utf16CodeUnit", - "description": "Returned offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript." - } - ] - } - }, - "excludePiiCategories": { - "type": "array", - "description": "Enumeration of PII categories to be excluded in the response.", - "items": { - "$ref": "#/definitions/PiiCategoriesExclude" - } - }, - "redactionPolicy": { - "$ref": "#/definitions/BaseRedactionPolicy", - "description": "RedactionPolicy to be used on the input." - }, - "valueExclusionPolicy": { - "$ref": "#/definitions/ValueExclusionPolicy", - "description": "Policy for specific words and terms that should be excluded from detection by the PII detection service" - }, - "entitySynonyms": { - "type": "array", - "description": "(Optional) request parameter that allows the user to provide synonyms for context words that to enhance pii entity detection.", - "items": { - "$ref": "#/definitions/EntitySynonyms" - } - } - } - }, - "PiiTaskResult": { - "type": "object", - "description": "Contains the analyze text PIIEntityRecognition LRO task.", - "properties": { - "results": { - "$ref": "#/definitions/PiiResult", - "description": "The list of pii results" - } - }, - "required": [ - "results" - ], - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTaskResult" - } - ], - "x-ms-discriminator-value": "PiiEntityRecognitionResults" - }, - "RangeInclusivity": { - "type": "string", - "description": "The range inclusiveness of this property property.", - "enum": [ - "NoneInclusive", - "LeftInclusive", - "RightInclusive", - "LeftRightInclusive" - ], - "x-ms-enum": { - "name": "RangeInclusivity", - "modelAsString": true, - "values": [ - { - "name": "NoneInclusive", - "value": "NoneInclusive", - "description": "No inclusivity" - }, - { - "name": "LeftInclusive", - "value": "LeftInclusive", - "description": "Left side inclusive" - }, - { - "name": "RightInclusive", - "value": "RightInclusive", - "description": "Right side inclusive" - }, - { - "name": "LeftRightInclusive", - "value": "LeftRightInclusive", - "description": "Both sides inclusive" - } - ] - } - }, - "RangeKind": { - "type": "string", - "description": "The kind of the number range entity.", - "enum": [ - "Number", - "Speed", - "Weight", - "Length", - "Volume", - "Area", - "Age", - "Information", - "Temperature", - "Currency" - ], - "x-ms-enum": { - "name": "RangeKind", - "modelAsString": true, - "values": [ - { - "name": "Number", - "value": "Number", - "description": "Number range" - }, - { - "name": "Speed", - "value": "Speed", - "description": "Speed range" - }, - { - "name": "Weight", - "value": "Weight", - "description": "Weight range" - }, - { - "name": "Length", - "value": "Length", - "description": "Length range" - }, - { - "name": "Volume", - "value": "Volume", - "description": "Volume range" - }, - { - "name": "Area", - "value": "Area", - "description": "Area range" - }, - { - "name": "Age", - "value": "Age", - "description": "Age range" - }, - { - "name": "Information", - "value": "Information", - "description": "Information range" - }, - { - "name": "Temperature", - "value": "Temperature", - "description": "Temperature range" - }, - { - "name": "Currency", - "value": "Currency", - "description": "Currency range" - } - ] - } - }, - "RelativeTo": { - "type": "string", - "description": "The reference point that the ordinal number denotes.", - "enum": [ - "Current", - "End", - "Start" - ], - "x-ms-enum": { - "name": "RelativeTo", - "modelAsString": true, - "values": [ - { - "name": "Current", - "value": "Current", - "description": "Current state or position" - }, - { - "name": "End", - "value": "End", - "description": "End state or position" - }, - { - "name": "Start", - "value": "Start", - "description": "Start state or position" - } - ] - } - }, - "RequestStatistics": { - "type": "object", - "description": "if showStats=true was specified in the request this field will contain information about the request payload.", - "properties": { - "documentsCount": { - "type": "integer", - "format": "int32", - "description": "Number of documents submitted in the request." - }, - "validDocumentsCount": { - "type": "integer", - "format": "int32", - "description": "Number of valid documents. This excludes empty, over-size limit or non-supported languages documents." - }, - "erroneousDocumentsCount": { - "type": "integer", - "format": "int32", - "description": "Number of invalid documents. This includes empty, over-size limit or non-supported languages documents." - }, - "transactionsCount": { - "type": "integer", - "format": "int64", - "description": "Number of transactions for the request." - } - }, - "required": [ - "documentsCount", - "validDocumentsCount", - "erroneousDocumentsCount", - "transactionsCount" - ] - }, - "ScriptCode": { - "type": "string", - "description": "Identifies the script of the input document. Maps to the ISO 15924 standard script code.", - "enum": [ - "Arab", - "Armn", - "Beng", - "Cans", - "Cyrl", - "Deva", - "Ethi", - "Geor", - "Grek", - "Gujr", - "Guru", - "Hang", - "Hani", - "Hans", - "Hant", - "Hebr", - "Jpan", - "Khmr", - "Knda", - "Laoo", - "Latn", - "Mlym", - "Mong", - "Mtei", - "Mymr", - "Olck", - "Orya", - "Sinh", - "Shrd", - "Taml", - "Telu", - "Thaa", - "Thai", - "Tibt" - ], - "x-ms-enum": { - "name": "ScriptCode", - "modelAsString": true, - "values": [ - { - "name": "Arab", - "value": "Arab", - "description": "Script code for the Arabic script." - }, - { - "name": "Armn", - "value": "Armn", - "description": "Script code for the Armenian script." - }, - { - "name": "Beng", - "value": "Beng", - "description": "Script code for the Bangla script." - }, - { - "name": "Cans", - "value": "Cans", - "description": "Script code for the UnifiedCanadianAboriginalSyllabics script." - }, - { - "name": "Cyrl", - "value": "Cyrl", - "description": "Script code for the Cyrillic script." - }, - { - "name": "Deva", - "value": "Deva", - "description": "Script code for the Devanagari script." - }, - { - "name": "Ethi", - "value": "Ethi", - "description": "Script code for the Ethiopic script." - }, - { - "name": "Geor", - "value": "Geor", - "description": "Script code for the Georgian script." - }, - { - "name": "Grek", - "value": "Grek", - "description": "Script code for the Greek script." - }, - { - "name": "Gujr", - "value": "Gujr", - "description": "Script code for the Gujarati script." - }, - { - "name": "Guru", - "value": "Guru", - "description": "Script code for the Gurmukhi script." - }, - { - "name": "Hang", - "value": "Hang", - "description": "Script code for the Hangul script." - }, - { - "name": "Hani", - "value": "Hani", - "description": "Script code for the HanLiteral script." - }, - { - "name": "Hans", - "value": "Hans", - "description": "Script code for the HanSimplified script." - }, - { - "name": "Hant", - "value": "Hant", - "description": "Script code for the HanTraditional script." - }, - { - "name": "Hebr", - "value": "Hebr", - "description": "Script code for the Hebrew script." - }, - { - "name": "Jpan", - "value": "Jpan", - "description": "Script code for the Japanese script." - }, - { - "name": "Khmr", - "value": "Khmr", - "description": "Script code for the Khmer script." - }, - { - "name": "Knda", - "value": "Knda", - "description": "Script code for the Kannada script." - }, - { - "name": "Laoo", - "value": "Laoo", - "description": "Script code for the Lao script." - }, - { - "name": "Latn", - "value": "Latn", - "description": "Script code for the Latin script." - }, - { - "name": "Mlym", - "value": "Mlym", - "description": "Script code for the Malayalam script." - }, - { - "name": "Mong", - "value": "Mong", - "description": "Script code for the Mongolian script." - }, - { - "name": "Mtei", - "value": "Mtei", - "description": "Script code for the Meitei script." - }, - { - "name": "Mymr", - "value": "Mymr", - "description": "Script code for the Myanmar script." - }, - { - "name": "Olck", - "value": "Olck", - "description": "Script code for the Santali script." - }, - { - "name": "Orya", - "value": "Orya", - "description": "Script code for the Odia script." - }, - { - "name": "Sinh", - "value": "Sinh", - "description": "Script code for the Sinhala script." - }, - { - "name": "Shrd", - "value": "Shrd", - "description": "Script code for the Sharada script." - }, - { - "name": "Taml", - "value": "Taml", - "description": "Script code for the Tamil script." - }, - { - "name": "Telu", - "value": "Telu", - "description": "Script code for the Telugu script." - }, - { - "name": "Thaa", - "value": "Thaa", - "description": "Script code for the Thaana script." - }, - { - "name": "Thai", - "value": "Thai", - "description": "Script code for the Thai script." - }, - { - "name": "Tibt", - "value": "Tibt", - "description": "Script code for the Tibetan script." - } - ] - } - }, - "ScriptKind": { - "type": "string", - "description": "Identifies the script of the input document. Maps to the ISO 15924 standard formal name.", - "enum": [ - "Arabic", - "Armenian", - "Bangla", - "UnifiedCanadianAboriginalSyllabics", - "Cyrillic", - "Devanagari", - "Ethiopic", - "Georgian", - "Greek", - "Gujarati", - "Gurmukhi", - "Hangul", - "HanLiteral", - "HanSimplified", - "HanTraditional", - "Hebrew", - "Japanese", - "Khmer", - "Kannada", - "Lao", - "Latin", - "Malayalam", - "Meitei", - "Mongolian", - "Myanmar", - "Odia", - "Santali", - "Sharada", - "Sinhala", - "Tamil", - "Telugu", - "Thaana", - "Thai", - "Tibetan" - ], - "x-ms-enum": { - "name": "ScriptKind", - "modelAsString": true, - "values": [ - { - "name": "Arabic", - "value": "Arabic", - "description": "Script name for the Arabic script." - }, - { - "name": "Armenian", - "value": "Armenian", - "description": "Script name for the Armenian script." - }, - { - "name": "Bangla", - "value": "Bangla", - "description": "Script name for the Bangla script." - }, - { - "name": "UnifiedCanadianAboriginalSyllabics", - "value": "UnifiedCanadianAboriginalSyllabics", - "description": "Script name for the UnifiedCanadianAboriginalSyllabics script." - }, - { - "name": "Cyrillic", - "value": "Cyrillic", - "description": "Script name for the Cyrillic script." - }, - { - "name": "Devanagari", - "value": "Devanagari", - "description": "Script name for the Devanagari script." - }, - { - "name": "Ethiopic", - "value": "Ethiopic", - "description": "Script name for the Ethiopic script." - }, - { - "name": "Georgian", - "value": "Georgian", - "description": "Script name for the Georgian script." - }, - { - "name": "Greek", - "value": "Greek", - "description": "Script name for the Greek script." - }, - { - "name": "Gujarati", - "value": "Gujarati", - "description": "Script name for the Gujarati script." - }, - { - "name": "Gurmukhi", - "value": "Gurmukhi", - "description": "Script name for the Gurmukhi script." - }, - { - "name": "Hangul", - "value": "Hangul", - "description": "Script name for the Hangul script." - }, - { - "name": "HanLiteral", - "value": "HanLiteral", - "description": "Script name for the HanLiteral script." - }, - { - "name": "HanSimplified", - "value": "HanSimplified", - "description": "Script name for the HanSimplified script." - }, - { - "name": "HanTraditional", - "value": "HanTraditional", - "description": "Script name for the HanTraditional script." - }, - { - "name": "Hebrew", - "value": "Hebrew", - "description": "Script name for the Hebrew script." - }, - { - "name": "Japanese", - "value": "Japanese", - "description": "Script name for the Japanese script." - }, - { - "name": "Khmer", - "value": "Khmer", - "description": "Script name for the Khmer script." - }, - { - "name": "Kannada", - "value": "Kannada", - "description": "Script name for the Kannada script." - }, - { - "name": "Lao", - "value": "Lao", - "description": "Script name for the Lao script." - }, - { - "name": "Latin", - "value": "Latin", - "description": "Script name for the Latin script." - }, - { - "name": "Malayalam", - "value": "Malayalam", - "description": "Script name for the Malayalam script." - }, - { - "name": "Meitei", - "value": "Meitei", - "description": "Script name for the Meitei script." - }, - { - "name": "Mongolian", - "value": "Mongolian", - "description": "Script name for the Mongolian script." - }, - { - "name": "Myanmar", - "value": "Myanmar", - "description": "Script name for the Myanmar script." - }, - { - "name": "Odia", - "value": "Odia", - "description": "Script name for the Odia script." - }, - { - "name": "Santali", - "value": "Santali", - "description": "Script name for the Santali script." - }, - { - "name": "Sharada", - "value": "Sharada", - "description": "Script name for the Sharada script." - }, - { - "name": "Sinhala", - "value": "Sinhala", - "description": "Script name for the Sinhala script." - }, - { - "name": "Tamil", - "value": "Tamil", - "description": "Script name for the Tamil script." - }, - { - "name": "Telugu", - "value": "Telugu", - "description": "Script name for the Telugu script." - }, - { - "name": "Thaana", - "value": "Thaana", - "description": "Script name for the Thaana script." - }, - { - "name": "Thai", - "value": "Thai", - "description": "Script name for the Thai script." - }, - { - "name": "Tibetan", - "value": "Tibetan", - "description": "Script name for the Tibetan script." - } - ] - } - }, - "SentenceAssessment": { - "type": "object", - "description": "Represents a sentence assessment and the assessments or target objects related to it.", - "properties": { - "sentiment": { - "$ref": "#/definitions/TokenSentimentValue", - "description": "The sentiment of the sentence." - }, - "confidenceScores": { - "$ref": "#/definitions/TargetConfidenceScoreLabel", - "description": "Represents the confidence scores across all sentiment classes: positive and negative." - }, - "offset": { - "type": "integer", - "format": "int32", - "description": "The target offset from the start of the sentence." - }, - "length": { - "type": "integer", - "format": "int32", - "description": "The length of the target." - }, - "text": { - "type": "string", - "description": "The target text detected." - }, - "isNegated": { - "type": "boolean", - "description": "The indicator representing if the assessment is negated." - } - }, - "required": [ - "sentiment", - "confidenceScores", - "offset", - "length", - "text", - "isNegated" - ] - }, - "SentenceSentiment": { - "type": "object", - "description": "A document's sentence sentiment.", - "properties": { - "text": { - "type": "string", - "description": "The sentence text." - }, - "sentiment": { - "$ref": "#/definitions/SentenceSentimentValue", - "description": "The predicted Sentiment for the sentence." - }, - "confidenceScores": { - "$ref": "#/definitions/SentimentConfidenceScores", - "description": "The sentiment confidence score between 0 and 1 for the sentence for all classes." - }, - "offset": { - "type": "integer", - "format": "int32", - "description": "The target offset from the start of the sentence." - }, - "length": { - "type": "integer", - "format": "int32", - "description": "The length of the target." - }, - "targets": { - "type": "array", - "description": "The array of sentence targets for the sentence.", - "items": { - "$ref": "#/definitions/SentenceTarget" - } - }, - "assessments": { - "type": "array", - "description": "The array of assessments for the sentence.", - "items": { - "$ref": "#/definitions/SentenceAssessment" - } - } - }, - "required": [ - "text", - "sentiment", - "confidenceScores", - "offset", - "length" - ] - }, - "SentenceSentimentValue": { - "type": "string", - "description": "The predicted Sentiment for the sentence.", - "enum": [ - "positive", - "neutral", - "negative" - ], - "x-ms-enum": { - "name": "SentenceSentimentValue", - "modelAsString": false, - "values": [ - { - "name": "positive", - "value": "positive", - "description": "Positive sentiment" - }, - { - "name": "neutral", - "value": "neutral", - "description": "Neutral sentiment" - }, - { - "name": "negative", - "value": "negative", - "description": "Negative sentiment" - } - ] - } - }, - "SentenceTarget": { - "type": "object", - "description": "Represents a sentence target and the assessments or target objects related to it.", - "properties": { - "sentiment": { - "$ref": "#/definitions/TokenSentimentValue", - "description": "The sentiment of the sentence." - }, - "confidenceScores": { - "$ref": "#/definitions/TargetConfidenceScoreLabel", - "description": "Represents the confidence scores across all sentiment classes: positive and negative." - }, - "offset": { - "type": "integer", - "format": "int32", - "description": "The target offset from the start of the sentence." - }, - "length": { - "type": "integer", - "format": "int32", - "description": "The length of the target." - }, - "text": { - "type": "string", - "description": "The target text detected." - }, - "relations": { - "type": "array", - "description": "The array of either assessment or target objects which is related to the target.", - "items": { - "$ref": "#/definitions/TargetRelation" - } - } - }, - "required": [ - "sentiment", - "confidenceScores", - "offset", - "length", - "text", - "relations" - ] - }, - "SentimentAnalysisLROTask": { - "type": "object", - "description": "An object representing the task definition for a Sentiment Analysis task.", - "properties": { - "parameters": { - "$ref": "#/definitions/SentimentAnalysisTaskParameters", - "description": "Parameters for the Sentiment Analysis task." - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - ], - "x-ms-discriminator-value": "SentimentAnalysis" - }, - "SentimentAnalysisTaskParameters": { - "type": "object", - "description": "Supported parameters for a Sentiment Analysis task.", - "properties": { - "loggingOptOut": { - "type": "boolean", - "description": "logging opt out", - "default": false - }, - "modelVersion": { - "type": "string", - "description": "model version", - "default": "latest" - }, - "opinionMining": { - "type": "boolean", - "description": "Whether to use opinion mining in the request or not.", - "default": false - }, - "stringIndexType": { - "type": "string", - "description": "Specifies the method used to interpret string offsets.", - "default": "TextElements_v8", - "enum": [ - "TextElements_v8", - "UnicodeCodePoint", - "Utf16CodeUnit" - ], - "x-ms-enum": { - "name": "StringIndexType", - "modelAsString": true, - "values": [ - { - "name": "TextElements_v8", - "value": "TextElements_v8", - "description": "Returned offset and length values will correspond to TextElements (Graphemes and Grapheme clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is written in .Net Framework or .Net Core and you will be using StringInfo." - }, - { - "name": "UnicodeCodePoint", - "value": "UnicodeCodePoint", - "description": "Returned offset and length values will correspond to Unicode code points. Use this option if your application is written in a language that support Unicode, for example Python." - }, - { - "name": "Utf16CodeUnit", - "value": "Utf16CodeUnit", - "description": "Returned offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript." - } - ] - } - } - } - }, - "SentimentConfidenceScores": { - "type": "object", - "description": "Represents the confidence scores between 0 and 1 across all sentiment classes: positive, neutral, negative.", - "properties": { - "positive": { - "type": "number", - "format": "double", - "description": "Confidence score for positive sentiment" - }, - "neutral": { - "type": "number", - "format": "double", - "description": "Confidence score for neutral sentiment" - }, - "negative": { - "type": "number", - "format": "double", - "description": "Confidence score for negative sentiment" - } - }, - "required": [ - "positive", - "neutral", - "negative" - ] - }, - "SentimentDocumentResultWithDetectedLanguage": { - "type": "object", - "description": "Sentiment analysis per document.", - "properties": { - "id": { - "type": "string", - "description": "Unique, non-empty document identifier." - }, - "warnings": { - "type": "array", - "description": "Warnings encountered while processing document.", - "items": { - "$ref": "#/definitions/DocumentWarning" - } - }, - "statistics": { - "$ref": "#/definitions/DocumentStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the document payload." - }, - "sentiment": { - "$ref": "#/definitions/DocumentSentimentValue", - "description": "Predicted sentiment for document (Negative, Neutral, Positive, or Mixed)." - }, - "confidenceScores": { - "$ref": "#/definitions/SentimentConfidenceScores", - "description": "The sentiment confidence score between 0 and 1 for the sentence for all classes." - }, - "sentences": { - "type": "array", - "description": "The document's sentences sentiment.", - "items": { - "$ref": "#/definitions/SentenceSentiment" - } - }, - "detectedLanguage": { - "$ref": "#/definitions/DetectedLanguage", - "description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document." - } - }, - "required": [ - "id", - "warnings", - "sentiment", - "confidenceScores", - "sentences" - ] - }, - "SentimentLROResult": { - "type": "object", - "description": "Contains the Sentiment Analysis LRO results.", - "properties": { - "results": { - "$ref": "#/definitions/SentimentResponse", - "description": "The sentiment analysis results" - } - }, - "required": [ - "results" - ], - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - ], - "x-ms-discriminator-value": "SentimentAnalysisLROResults" - }, - "SentimentResponse": { - "type": "object", - "description": "Sentiment analysis results for the input documents.", - "properties": { - "errors": { - "type": "array", - "description": "Errors by document id.", - "items": { - "$ref": "#/definitions/DocumentError" - } - }, - "statistics": { - "$ref": "#/definitions/RequestStatistics", - "description": "if showStats=true was specified in the request this field will contain information about the request payload." - }, - "modelVersion": { - "type": "string", - "description": "This field indicates which model is used for scoring." - }, - "documents": { - "type": "array", - "description": "The sentiment analysis results for each document in the input.", - "items": { - "$ref": "#/definitions/SentimentDocumentResultWithDetectedLanguage" - } - } - }, - "required": [ - "errors", - "modelVersion", - "documents" - ] - }, - "SentimentTaskResult": { - "type": "object", - "description": "Contains the analyze text SentimentAnalysis LRO task result.", - "properties": { - "results": { - "$ref": "#/definitions/SentimentResponse", - "description": "The sentiment analysis results" - } - }, - "required": [ - "results" - ], - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTaskResult" - } - ], - "x-ms-discriminator-value": "SentimentAnalysisResults" - }, - "SpeedMetadata": { - "type": "object", - "description": "Represents the Speed entity Metadata model.", - "properties": { - "value": { - "type": "number", - "format": "double", - "description": "The numeric value that the extracted text denotes." - }, - "unit": { - "$ref": "#/definitions/SpeedUnit", - "description": "Unit of measure for speed." - } - }, - "required": [ - "value", - "unit" - ], - "allOf": [ - { - "$ref": "#/definitions/BaseMetadata" - } - ], - "x-ms-discriminator-value": "SpeedMetadata" - }, - "SpeedUnit": { - "type": "string", - "description": "The speed Unit of measurement", - "enum": [ - "Unspecified", - "MetersPerSecond", - "KilometersPerHour", - "KilometersPerMinute", - "KilometersPerSecond", - "MilesPerHour", - "Knots", - "FeetPerSecond", - "FeetPerMinute", - "YardsPerMinute", - "YardsPerSecond", - "MetersPerMillisecond", - "CentimetersPerMillisecond", - "KilometersPerMillisecond" - ], - "x-ms-enum": { - "name": "SpeedUnit", - "modelAsString": true, - "values": [ - { - "name": "Unspecified", - "value": "Unspecified", - "description": "Unspecified speed unit." - }, - { - "name": "MetersPerSecond", - "value": "MetersPerSecond", - "description": "Speed unit in meters per second." - }, - { - "name": "KilometersPerHour", - "value": "KilometersPerHour", - "description": "Speed unit in kilometers per hour." - }, - { - "name": "KilometersPerMinute", - "value": "KilometersPerMinute", - "description": "Speed unit in kilometers per minute." - }, - { - "name": "KilometersPerSecond", - "value": "KilometersPerSecond", - "description": "Speed unit in kilometers per second." - }, - { - "name": "MilesPerHour", - "value": "MilesPerHour", - "description": "Speed unit in miles per hour." - }, - { - "name": "Knots", - "value": "Knots", - "description": "Speed unit in knots." - }, - { - "name": "FeetPerSecond", - "value": "FeetPerSecond", - "description": "Speed unit in feet per second." - }, - { - "name": "FeetPerMinute", - "value": "FeetPerMinute", - "description": "Speed unit in feet per minute." - }, - { - "name": "YardsPerMinute", - "value": "YardsPerMinute", - "description": "Speed unit in yards per minute." - }, - { - "name": "YardsPerSecond", - "value": "YardsPerSecond", - "description": "Speed unit in yards per second." - }, - { - "name": "MetersPerMillisecond", - "value": "MetersPerMillisecond", - "description": "Speed unit in meters per millisecond." - }, - { - "name": "CentimetersPerMillisecond", - "value": "CentimetersPerMillisecond", - "description": "Speed unit in centimeters per millisecond." - }, - { - "name": "KilometersPerMillisecond", - "value": "KilometersPerMillisecond", - "description": "Speed unit in Kilometers per millisecond." - } - ] - } - }, - "State": { - "type": "string", - "description": "The status of the task at the mentioned last update time.", - "enum": [ - "notStarted", - "running", - "succeeded", - "partiallyCompleted", - "failed", - "cancelled", - "cancelling" - ], - "x-ms-enum": { - "name": "State", - "modelAsString": true, - "values": [ - { - "name": "notStarted", - "value": "notStarted", - "description": "Not started status" - }, - { - "name": "running", - "value": "running", - "description": "Running status" - }, - { - "name": "succeeded", - "value": "succeeded", - "description": "Succeeded status" - }, - { - "name": "partiallyCompleted", - "value": "partiallyCompleted", - "description": "Partially completed status" - }, - { - "name": "failed", - "value": "failed", - "description": "Failed status" - }, - { - "name": "cancelled", - "value": "cancelled", - "description": "Cancelled status" - }, - { - "name": "cancelling", - "value": "cancelling", - "description": "Cancelling status" - } - ] - } - }, - "SummaryContext": { - "type": "object", - "description": "The context of the summary.", - "properties": { - "offset": { - "type": "integer", - "format": "int32", - "description": "Start position for the context. Use of different 'stringIndexType' values can affect the offset returned." - }, - "length": { - "type": "integer", - "format": "int32", - "description": "The length of the context. Use of different 'stringIndexType' values can affect the length returned." - } - }, - "required": [ - "offset", - "length" - ] - }, - "SummaryLengthBucket": { - "type": "string", - "description": "Enum that defines the length of the output summaries.", - "enum": [ - "short", - "medium", - "long" - ], - "x-ms-enum": { - "name": "SummaryLengthBucket", - "modelAsString": true, - "values": [ - { - "name": "short", - "value": "short", - "description": "Instructs model to generate shorter length summaries." - }, - { - "name": "medium", - "value": "medium", - "description": "Instructs model to generate medium length summaries." - }, - { - "name": "long", - "value": "long", - "description": "Instructs model to generate longer length summaries." - } - ] - } - }, - "TargetConfidenceScoreLabel": { - "type": "object", - "description": "Represents the confidence scores across all sentiment classes: positive and negative.", - "properties": { - "positive": { - "type": "number", - "format": "double", - "description": "Confidence score for positive sentiment" - }, - "negative": { - "type": "number", - "format": "double", - "description": "Confidence score for negative sentiment" - } - }, - "required": [ - "positive", - "negative" - ] - }, - "TargetRelation": { - "type": "object", - "description": "Represents the relation between assessments and/or targets.", - "properties": { - "ref": { - "type": "string", - "description": "The JSON pointer indicating the linked object." - }, - "relationType": { - "$ref": "#/definitions/TargetRelationType", - "description": "The type related to the target." - } - }, - "required": [ - "ref", - "relationType" - ] - }, - "TargetRelationType": { - "type": "string", - "description": "The type related to the target.", - "enum": [ - "assessment", - "target" - ], - "x-ms-enum": { - "name": "TargetRelationType", - "modelAsString": false, - "values": [ - { - "name": "assessment", - "value": "assessment", - "description": "Assessment relation." - }, - { - "name": "target", - "value": "target", - "description": "Target relation." - } - ] - } - }, - "Tasks": { - "type": "object", - "description": "Container for the tasks status for the LRO job.", - "properties": { - "completed": { - "type": "integer", - "format": "int32", - "description": "Count of completed tasks." - }, - "failed": { - "type": "integer", - "format": "int32", - "description": "Count of failed tasks." - }, - "inProgress": { - "type": "integer", - "format": "int32", - "description": "Count of inprogress tasks." - }, - "total": { - "type": "integer", - "format": "int32", - "description": "Count of total tasks." - }, - "items": { - "type": "array", - "description": "Enumerable of Analyze text job results.", - "items": { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - } - }, - "required": [ - "completed", - "failed", - "inProgress", - "total" - ] - }, - "TemperatureMetadata": { - "type": "object", - "description": "Represents the Information entity Metadata model.", - "properties": { - "value": { - "type": "number", - "format": "double", - "description": "The numeric value that the extracted text denotes." - }, - "unit": { - "$ref": "#/definitions/TemperatureUnit", - "description": "Unit of measure for temperature." - } - }, - "required": [ - "value", - "unit" - ], - "allOf": [ - { - "$ref": "#/definitions/BaseMetadata" - } - ], - "x-ms-discriminator-value": "TemperatureMetadata" - }, - "TemperatureUnit": { - "type": "string", - "description": "The temperature Unit of measurement.", - "enum": [ - "Unspecified", - "Fahrenheit", - "Kelvin", - "Rankine", - "Celsius" - ], - "x-ms-enum": { - "name": "TemperatureUnit", - "modelAsString": true, - "values": [ - { - "name": "Unspecified", - "value": "Unspecified", - "description": "Unspecified temperature unit" - }, - { - "name": "Fahrenheit", - "value": "Fahrenheit", - "description": "Temperature unit in Fahrenheit" - }, - { - "name": "Kelvin", - "value": "Kelvin", - "description": "Temperature unit in Kelvin" - }, - { - "name": "Rankine", - "value": "Rankine", - "description": "Temperature unit in Rankine" - }, - { - "name": "Celsius", - "value": "Celsius", - "description": "Temperature unit in Celsius" - } - ] - } - }, - "TemporalModifier": { - "type": "string", - "description": "An optional modifier of a date/time instance.", - "enum": [ - "AfterApprox", - "Before", - "BeforeStart", - "Approx", - "ReferenceUndefined", - "SinceEnd", - "AfterMid", - "Start", - "After", - "BeforeEnd", - "Until", - "End", - "Less", - "Since", - "AfterStart", - "BeforeApprox", - "Mid", - "More" - ], - "x-ms-enum": { - "name": "TemporalModifier", - "modelAsString": true, - "values": [ - { - "name": "AfterApprox", - "value": "AfterApprox", - "description": "After an approximate time" - }, - { - "name": "Before", - "value": "Before", - "description": "Before a specific time" - }, - { - "name": "BeforeStart", - "value": "BeforeStart", - "description": "Before the start of a time period" - }, - { - "name": "Approx", - "value": "Approx", - "description": "Approximately at a specific time" - }, - { - "name": "ReferenceUndefined", - "value": "ReferenceUndefined", - "description": "Reference to an undefined time" - }, - { - "name": "SinceEnd", - "value": "SinceEnd", - "description": "Since the end of a time period" - }, - { - "name": "AfterMid", - "value": "AfterMid", - "description": "After the middle of a time period" - }, - { - "name": "Start", - "value": "Start", - "description": "At the start of a time period" - }, - { - "name": "After", - "value": "After", - "description": "After a specific time" - }, - { - "name": "BeforeEnd", - "value": "BeforeEnd", - "description": "Before the end of a time period" - }, - { - "name": "Until", - "value": "Until", - "description": "Until a specific time" - }, - { - "name": "End", - "value": "End", - "description": "At the end of a time period" - }, - { - "name": "Less", - "value": "Less", - "description": "Less than a specific time" - }, - { - "name": "Since", - "value": "Since", - "description": "Since a specific time" - }, - { - "name": "AfterStart", - "value": "AfterStart", - "description": "After the start of a time period" - }, - { - "name": "BeforeApprox", - "value": "BeforeApprox", - "description": "Before an approximate time" - }, - { - "name": "Mid", - "value": "Mid", - "description": "In the middle of a time period" - }, - { - "name": "More", - "value": "More", - "description": "More than a specific time" - } - ] - } - }, - "TemporalSetMetadata": { - "type": "object", - "description": "A Metadata for temporal set entity instances.", - "properties": { - "dateValues": { - "type": "array", - "description": "List of date values.", - "items": { - "$ref": "#/definitions/DateValue" - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/BaseMetadata" - } - ], - "x-ms-discriminator-value": "TemporalSetMetadata" - }, - "TemporalSpanMetadata": { - "type": "object", - "description": "represents the Metadata of a date and/or time span.", - "properties": { - "spanValues": { - "type": "array", - "description": "List of temporal spans detected.", - "items": { - "$ref": "#/definitions/TemporalSpanValues" - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/BaseMetadata" - } - ], - "x-ms-discriminator-value": "TemporalSpanMetadata" - }, - "TemporalSpanValues": { - "type": "object", - "description": "Temporal span object.", - "properties": { - "begin": { - "type": "string", - "description": "Start value for the span." - }, - "end": { - "type": "string", - "description": "End value for the span." - }, - "duration": { - "type": "string", - "description": "An optional duration value formatted based on the ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601#Durations)" - }, - "modifier": { - "$ref": "#/definitions/TemporalModifier", - "description": "Modifier for datetime to indicate point of reference like before, after etc." - }, - "timex": { - "type": "string", - "description": "An optional triplet containing the beginning, the end, and the duration all stated as ISO 8601 formatted strings." - } - } - }, - "Temporality": { - "type": "string", - "description": "Describes temporal information regarding the entity.", - "enum": [ - "current", - "past", - "future" - ], - "x-ms-enum": { - "name": "Temporality", - "modelAsString": false, - "values": [ - { - "name": "current", - "value": "current", - "description": "Current temporality" - }, - { - "name": "past", - "value": "past", - "description": "Past temporality" - }, - { - "name": "future", - "value": "future", - "description": "Future temporality" - } - ] - } - }, - "TimeMetadata": { - "type": "object", - "description": "A Metadata for time entity instances.", - "properties": { - "dateValues": { - "type": "array", - "description": "List of date values.", - "items": { - "$ref": "#/definitions/DateValue" - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/BaseMetadata" - } - ], - "x-ms-discriminator-value": "TimeMetadata" - }, - "TokenSentimentValue": { - "type": "string", - "description": "The predicted Sentiment for the sentence.", - "enum": [ - "positive", - "mixed", - "negative" - ], - "x-ms-enum": { - "name": "TokenSentimentValue", - "modelAsString": false, - "values": [ - { - "name": "positive", - "value": "positive", - "description": "Positive sentiment" - }, - { - "name": "mixed", - "value": "mixed", - "description": "Mixed sentiment" - }, - { - "name": "negative", - "value": "negative", - "description": "Negative sentiment" - } - ] - } - }, - "ValueExclusionPolicy": { - "type": "object", - "description": "Policy for specific words and terms that should be excluded from detection by the PII detection service", - "properties": { - "caseSensitive": { - "type": "boolean", - "description": "Option to make the values excluded values case sensitive", - "default": false - }, - "excludedValues": { - "type": "array", - "description": "List of words and terms that should be excluded from detection by the PII detection service", - "items": { - "type": "string" - } - } - }, - "required": [ - "caseSensitive", - "excludedValues" - ] - }, - "VolumeMetadata": { - "type": "object", - "description": "Represents the Volume entity Metadata model.", - "properties": { - "value": { - "type": "number", - "format": "double", - "description": "The numeric value that the extracted text denotes." - }, - "unit": { - "$ref": "#/definitions/VolumeUnit", - "description": "Unit of measure for volume." - } - }, - "required": [ - "value", - "unit" - ], - "allOf": [ - { - "$ref": "#/definitions/BaseMetadata" - } - ], - "x-ms-discriminator-value": "VolumeMetadata" - }, - "VolumeUnit": { - "type": "string", - "description": "The Volume Unit of measurement", - "enum": [ - "Unspecified", - "CubicMeter", - "CubicCentimeter", - "CubicMillimeter", - "Hectoliter", - "Decaliter", - "Liter", - "Centiliter", - "Milliliter", - "CubicYard", - "CubicInch", - "CubicFoot", - "CubicMile", - "FluidOunce", - "Teaspoon", - "Tablespoon", - "Pint", - "Quart", - "Cup", - "Gill", - "Pinch", - "FluidDram", - "Barrel", - "Minim", - "Cord", - "Peck", - "Bushel", - "Hogshead" - ], - "x-ms-enum": { - "name": "VolumeUnit", - "modelAsString": true, - "values": [ - { - "name": "Unspecified", - "value": "Unspecified", - "description": "Unspecified volume unit." - }, - { - "name": "CubicMeter", - "value": "CubicMeter", - "description": "Volume unit in cubic meters." - }, - { - "name": "CubicCentimeter", - "value": "CubicCentimeter", - "description": "Volume unit in cubic centimeters." - }, - { - "name": "CubicMillimeter", - "value": "CubicMillimeter", - "description": "Volume unit in cubic millimeters." - }, - { - "name": "Hectoliter", - "value": "Hectoliter", - "description": "Volume unit in hectoliters." - }, - { - "name": "Decaliter", - "value": "Decaliter", - "description": "Volume unit in decaliters." - }, - { - "name": "Liter", - "value": "Liter", - "description": "Volume unit in liters." - }, - { - "name": "Centiliter", - "value": "Centiliter", - "description": "Volume unit in centiliters." - }, - { - "name": "Milliliter", - "value": "Milliliter", - "description": "Volume unit in milliliters." - }, - { - "name": "CubicYard", - "value": "CubicYard", - "description": "Volume unit in cubic yards." - }, - { - "name": "CubicInch", - "value": "CubicInch", - "description": "Volume unit in cubic inches." - }, - { - "name": "CubicFoot", - "value": "CubicFoot", - "description": "Volume unit in cubic feet." - }, - { - "name": "CubicMile", - "value": "CubicMile", - "description": "Volume unit in cubic miles." - }, - { - "name": "FluidOunce", - "value": "FluidOunce", - "description": "Volume unit in fluid ounces." - }, - { - "name": "Teaspoon", - "value": "Teaspoon", - "description": "Volume unit in teaspoons." - }, - { - "name": "Tablespoon", - "value": "Tablespoon", - "description": "Volume unit in tablespoons." - }, - { - "name": "Pint", - "value": "Pint", - "description": "Volume unit in pints." - }, - { - "name": "Quart", - "value": "Quart", - "description": "Volume unit in quarts." - }, - { - "name": "Cup", - "value": "Cup", - "description": "Volume unit in cups." - }, - { - "name": "Gill", - "value": "Gill", - "description": "Volume unit in gills." - }, - { - "name": "Pinch", - "value": "Pinch", - "description": "Volume unit in pinches." - }, - { - "name": "FluidDram", - "value": "FluidDram", - "description": "Volume unit in fluid drams." - }, - { - "name": "Barrel", - "value": "Barrel", - "description": "Volume unit in barrels." - }, - { - "name": "Minim", - "value": "Minim", - "description": "Volume unit in minims." - }, - { - "name": "Cord", - "value": "Cord", - "description": "Volume unit in cords." - }, - { - "name": "Peck", - "value": "Peck", - "description": "Volume unit in pecks." - }, - { - "name": "Bushel", - "value": "Bushel", - "description": "Volume unit in bushels." - }, - { - "name": "Hogshead", - "value": "Hogshead", - "description": "Volume unit in hogsheads." - } - ] - } - }, - "WarningCodeValue": { - "type": "string", - "description": "Defines the list of the warning codes.", - "enum": [ - "LongWordsInDocument", - "DocumentTruncated" - ], - "x-ms-enum": { - "name": "WarningCodeValue", - "modelAsString": true, - "values": [ - { - "name": "LongWordsInDocument", - "value": "LongWordsInDocument", - "description": "Long words in document warning" - }, - { - "name": "DocumentTruncated", - "value": "DocumentTruncated", - "description": "Document truncated warning" - } - ] - } - }, - "WeightMetadata": { - "type": "object", - "description": "Represents the Weight ) entity Metadata model.", - "properties": { - "value": { - "type": "number", - "format": "double", - "description": "The numeric value that the extracted text denotes." - }, - "unit": { - "$ref": "#/definitions/WeightUnit", - "description": "Unit of measure for weight." - } - }, - "required": [ - "value", - "unit" - ], - "allOf": [ - { - "$ref": "#/definitions/BaseMetadata" - } - ], - "x-ms-discriminator-value": "WeightMetadata" - }, - "WeightUnit": { - "type": "string", - "description": "The weight Unit of measurement.", - "enum": [ - "Unspecified", - "Kilogram", - "Gram", - "Milligram", - "Gallon", - "MetricTon", - "Ton", - "Pound", - "Ounce", - "Grain", - "PennyWeight", - "LongTonBritish", - "ShortTonUS", - "ShortHundredWeightUS", - "Stone", - "Dram" - ], - "x-ms-enum": { - "name": "WeightUnit", - "modelAsString": true, - "values": [ - { - "name": "Unspecified", - "value": "Unspecified", - "description": "Unspecified weight unit" - }, - { - "name": "Kilogram", - "value": "Kilogram", - "description": "Weight unit in kilograms" - }, - { - "name": "Gram", - "value": "Gram", - "description": "Weight unit in grams" - }, - { - "name": "Milligram", - "value": "Milligram", - "description": "Weight unit in milligrams" - }, - { - "name": "Gallon", - "value": "Gallon", - "description": "Volume unit in gallons" - }, - { - "name": "MetricTon", - "value": "MetricTon", - "description": "Weight unit in metric tons" - }, - { - "name": "Ton", - "value": "Ton", - "description": "Weight unit in tons" - }, - { - "name": "Pound", - "value": "Pound", - "description": "Weight unit in pounds" - }, - { - "name": "Ounce", - "value": "Ounce", - "description": "Weight unit in ounces" - }, - { - "name": "Grain", - "value": "Grain", - "description": "Weight unit in grains" - }, - { - "name": "PennyWeight", - "value": "PennyWeight", - "description": "Weight unit in pennyweights" - }, - { - "name": "LongTonBritish", - "value": "LongTonBritish", - "description": "Weight unit in long tons (British)" - }, - { - "name": "ShortTonUS", - "value": "ShortTonUS", - "description": "Weight unit in short tons (US)" - }, - { - "name": "ShortHundredWeightUS", - "value": "ShortHundredWeightUS", - "description": "Weight unit in short hundredweights (US)" - }, - { - "name": "Stone", - "value": "Stone", - "description": "Weight unit in stones" - }, - { - "name": "Dram", - "value": "Dram", - "description": "Weight unit in drams" - } - ] - } - }, - "fhirVersion": { - "type": "string", - "description": "The FHIR Spec version.", - "enum": [ - "4.0.1" - ], - "x-ms-enum": { - "name": "fhirVersion", - "modelAsString": true, - "values": [ - { - "name": "4.0.1", - "value": "4.0.1", - "description": "Version 4.0.1" - } - ] - } - }, - "healthcareDocumentType": { - "type": "string", - "description": "Document type.", - "enum": [ - "None", - "ClinicalTrial", - "DischargeSummary", - "ProgressNote", - "HistoryAndPhysical", - "Consult", - "Imaging", - "Pathology", - "ProcedureNote" - ], - "x-ms-enum": { - "name": "healthcareDocumentType", - "modelAsString": true, - "values": [ - { - "name": "None", - "value": "None", - "description": "None document type" - }, - { - "name": "ClinicalTrial", - "value": "ClinicalTrial", - "description": "Clinical trial document type" - }, - { - "name": "DischargeSummary", - "value": "DischargeSummary", - "description": "Discharge summary document type" - }, - { - "name": "ProgressNote", - "value": "ProgressNote", - "description": "Progress note document type" - }, - { - "name": "HistoryAndPhysical", - "value": "HistoryAndPhysical", - "description": "History and physical document type" - }, - { - "name": "Consult", - "value": "Consult", - "description": "Consult document type" - }, - { - "name": "Imaging", - "value": "Imaging", - "description": "Imaging document type" - }, - { - "name": "Pathology", - "value": "Pathology", - "description": "Pathology document type" - }, - { - "name": "ProcedureNote", - "value": "ProcedureNote", - "description": "Procedure note document type" - } - ] - } - }, - "healthcareEntityCategory": { - "type": "string", - "description": "Healthcare Entity Category.", - "enum": [ - "BodyStructure", - "Age", - "Gender", - "ExaminationName", - "Date", - "Direction", - "Frequency", - "MeasurementValue", - "MeasurementUnit", - "RelationalOperator", - "Time", - "GeneOrProtein", - "Variant", - "AdministrativeEvent", - "CareEnvironment", - "HealthcareProfession", - "Diagnosis", - "SymptomOrSign", - "ConditionQualifier", - "MedicationClass", - "MedicationName", - "Dosage", - "MedicationForm", - "MedicationRoute", - "FamilyRelation", - "TreatmentName", - "Ethnicity", - "Course", - "Expression", - "MutationType", - "ConditionScale", - "Allergen", - "Employment", - "LivingStatus", - "SubstanceUse", - "SubstanceUseAmount" - ], - "x-ms-enum": { - "name": "healthcareEntityCategory", - "modelAsString": true, - "values": [ - { - "name": "BodyStructure", - "value": "BodyStructure", - "description": "Body structure" - }, - { - "name": "Age", - "value": "Age", - "description": "Age" - }, - { - "name": "Gender", - "value": "Gender", - "description": "Gender" - }, - { - "name": "ExaminationName", - "value": "ExaminationName", - "description": "Examination name" - }, - { - "name": "Date", - "value": "Date", - "description": "Date" - }, - { - "name": "Direction", - "value": "Direction", - "description": "Direction" - }, - { - "name": "Frequency", - "value": "Frequency", - "description": "Frequency" - }, - { - "name": "MeasurementValue", - "value": "MeasurementValue", - "description": "Measurement value" - }, - { - "name": "MeasurementUnit", - "value": "MeasurementUnit", - "description": "Measurement unit" - }, - { - "name": "RelationalOperator", - "value": "RelationalOperator", - "description": "Relational operator" - }, - { - "name": "Time", - "value": "Time", - "description": "Time" - }, - { - "name": "GeneOrProtein", - "value": "GeneOrProtein", - "description": "Gene or protein" - }, - { - "name": "Variant", - "value": "Variant", - "description": "Variant" - }, - { - "name": "AdministrativeEvent", - "value": "AdministrativeEvent", - "description": "Administrative event" - }, - { - "name": "CareEnvironment", - "value": "CareEnvironment", - "description": "Care environment" - }, - { - "name": "HealthcareProfession", - "value": "HealthcareProfession", - "description": "Healthcare profession" - }, - { - "name": "Diagnosis", - "value": "Diagnosis", - "description": "Diagnosis" - }, - { - "name": "SymptomOrSign", - "value": "SymptomOrSign", - "description": "Symptom or sign" - }, - { - "name": "ConditionQualifier", - "value": "ConditionQualifier", - "description": "Condition qualifier" - }, - { - "name": "MedicationClass", - "value": "MedicationClass", - "description": "Medication class" - }, - { - "name": "MedicationName", - "value": "MedicationName", - "description": "Medication name" - }, - { - "name": "Dosage", - "value": "Dosage", - "description": "Dosage" - }, - { - "name": "MedicationForm", - "value": "MedicationForm", - "description": "Medication form" - }, - { - "name": "MedicationRoute", - "value": "MedicationRoute", - "description": "Medication route" - }, - { - "name": "FamilyRelation", - "value": "FamilyRelation", - "description": "Family relation" - }, - { - "name": "TreatmentName", - "value": "TreatmentName", - "description": "Treatment name" - }, - { - "name": "Ethnicity", - "value": "Ethnicity", - "description": "Ethnicity" - }, - { - "name": "Course", - "value": "Course", - "description": "Course" - }, - { - "name": "Expression", - "value": "Expression", - "description": "Expression" - }, - { - "name": "MutationType", - "value": "MutationType", - "description": "Mutation type" - }, - { - "name": "ConditionScale", - "value": "ConditionScale", - "description": "Condition scale" - }, - { - "name": "Allergen", - "value": "Allergen", - "description": "Allergen" - }, - { - "name": "Employment", - "value": "Employment", - "description": "Employment" - }, - { - "name": "LivingStatus", - "value": "LivingStatus", - "description": "Living status" - }, - { - "name": "SubstanceUse", - "value": "SubstanceUse", - "description": "Substance use" - }, - { - "name": "SubstanceUseAmount", - "value": "SubstanceUseAmount", - "description": "Substance use amount" - } - ] - } - }, - "relationType": { - "type": "string", - "description": "Type of relation. Examples include: `DosageOfMedication` or 'FrequencyOfMedication', etc.", - "enum": [ - "Abbreviation", - "DirectionOfBodyStructure", - "DirectionOfCondition", - "DirectionOfExamination", - "DirectionOfTreatment", - "DosageOfMedication", - "FormOfMedication", - "FrequencyOfMedication", - "FrequencyOfTreatment", - "QualifierOfCondition", - "RelationOfExamination", - "RouteOfMedication", - "TimeOfCondition", - "TimeOfEvent", - "TimeOfExamination", - "TimeOfMedication", - "TimeOfTreatment", - "UnitOfCondition", - "UnitOfExamination", - "ValueOfCondition", - "ValueOfExamination", - "BodySiteOfCondition", - "BodySiteOfTreatment", - "CourseOfCondition", - "CourseOfExamination", - "CourseOfMedication", - "CourseOfTreatment", - "ExaminationFindsCondition", - "ExpressionOfGene", - "ExpressionOfVariant", - "FrequencyOfCondition", - "MutationTypeOfGene", - "MutationTypeOfVariant", - "ScaleOfCondition", - "VariantOfGene" - ], - "x-ms-enum": { - "name": "relationType", - "modelAsString": true, - "values": [ - { - "name": "Abbreviation", - "value": "Abbreviation", - "description": "Abbreviation" - }, - { - "name": "DirectionOfBodyStructure", - "value": "DirectionOfBodyStructure", - "description": "Direction of body structure" - }, - { - "name": "DirectionOfCondition", - "value": "DirectionOfCondition", - "description": "Direction of condition" - }, - { - "name": "DirectionOfExamination", - "value": "DirectionOfExamination", - "description": "Direction of examination" - }, - { - "name": "DirectionOfTreatment", - "value": "DirectionOfTreatment", - "description": "Direction of treatment" - }, - { - "name": "DosageOfMedication", - "value": "DosageOfMedication", - "description": "Dosage of medication" - }, - { - "name": "FormOfMedication", - "value": "FormOfMedication", - "description": "Form of medication" - }, - { - "name": "FrequencyOfMedication", - "value": "FrequencyOfMedication", - "description": "Frequency of medication" - }, - { - "name": "FrequencyOfTreatment", - "value": "FrequencyOfTreatment", - "description": "Frequency of treatment" - }, - { - "name": "QualifierOfCondition", - "value": "QualifierOfCondition", - "description": "Qualifier of condition" - }, - { - "name": "RelationOfExamination", - "value": "RelationOfExamination", - "description": "Relation of examination" - }, - { - "name": "RouteOfMedication", - "value": "RouteOfMedication", - "description": "Route of medication" - }, - { - "name": "TimeOfCondition", - "value": "TimeOfCondition", - "description": "Time of condition" - }, - { - "name": "TimeOfEvent", - "value": "TimeOfEvent", - "description": "Time of event" - }, - { - "name": "TimeOfExamination", - "value": "TimeOfExamination", - "description": "Time of examination" - }, - { - "name": "TimeOfMedication", - "value": "TimeOfMedication", - "description": "Time of medication" - }, - { - "name": "TimeOfTreatment", - "value": "TimeOfTreatment", - "description": "Time of treatment" - }, - { - "name": "UnitOfCondition", - "value": "UnitOfCondition", - "description": "Unit of condition" - }, - { - "name": "UnitOfExamination", - "value": "UnitOfExamination", - "description": "Unit of examination" - }, - { - "name": "ValueOfCondition", - "value": "ValueOfCondition", - "description": "Value of condition" - }, - { - "name": "ValueOfExamination", - "value": "ValueOfExamination", - "description": "Value of examination" - }, - { - "name": "BodySiteOfCondition", - "value": "BodySiteOfCondition", - "description": "Body site of condition" - }, - { - "name": "BodySiteOfTreatment", - "value": "BodySiteOfTreatment", - "description": "Body site of treatment" - }, - { - "name": "CourseOfCondition", - "value": "CourseOfCondition", - "description": "Course of condition" - }, - { - "name": "CourseOfExamination", - "value": "CourseOfExamination", - "description": "Course of examination" - }, - { - "name": "CourseOfMedication", - "value": "CourseOfMedication", - "description": "Course of medication" - }, - { - "name": "CourseOfTreatment", - "value": "CourseOfTreatment", - "description": "Course of treatment" - }, - { - "name": "ExaminationFindsCondition", - "value": "ExaminationFindsCondition", - "description": "Examination finds condition" - }, - { - "name": "ExpressionOfGene", - "value": "ExpressionOfGene", - "description": "Expression of gene" - }, - { - "name": "ExpressionOfVariant", - "value": "ExpressionOfVariant", - "description": "Expression of variant" - }, - { - "name": "FrequencyOfCondition", - "value": "FrequencyOfCondition", - "description": "Frequency of condition" - }, - { - "name": "MutationTypeOfGene", - "value": "MutationTypeOfGene", - "description": "Mutation type of gene" - }, - { - "name": "MutationTypeOfVariant", - "value": "MutationTypeOfVariant", - "description": "Mutation type of variant" - }, - { - "name": "ScaleOfCondition", - "value": "ScaleOfCondition", - "description": "Scale of condition" - }, - { - "name": "VariantOfGene", - "value": "VariantOfGene", - "description": "Variant of gene" - } - ] - } - } - }, - "parameters": { - "Azure.Core.Foundations.ApiVersionParameter": { - "name": "api-version", - "in": "query", - "description": "The API version to use for this operation.", - "required": true, - "type": "string", - "minLength": 1, - "x-ms-parameter-location": "method", - "x-ms-client-name": "apiVersion" - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult.json deleted file mode 100644 index 0aa480cacbde..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "operationId": "AnalyzeTextJobStatus", - "title": "SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskResult", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "createdDateTime": "2020-10-01T15:00:45Z", - "displayName": "Document Abstractive Summarization Task Example", - "expirationDateTime": "2020-10-03T15:01:03Z", - "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18", - "lastUpdatedDateTime": "2020-10-01T15:01:03Z", - "status": "succeeded", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "AbstractiveSummarizationLROResults", - "taskName": "Document Abstractive Summarization Task 1", - "lastUpdateDateTime": "2020-10-01T15:01:03Z", - "status": "succeeded", - "results": { - "documents": [ - { - "summaries": [ - { - "text": "XYZ-code is a joint representation of human cognition and language, which Microsoft aims to develop for cross-domain transfer learning. Learn how XYz-code can help Microsoft achieve cross-sensory and multilingual learning with human-centric approach.", - "contexts": [ - { - "offset": 0, - "length": 1619 - } - ] - } - ], - "id": "1", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "latest" - } - } - ] - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit.json deleted file mode 100644 index 754dee836340..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "operationId": "AnalyzeTextSubmitJob", - "title": "SuccessfulAbstractiveSummarizationSummaryLengthPromptTaskSubmit", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "{Job ID}", - "body": { - "displayName": "Document Abstractive Summarization Task Example", - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there is magic—what we call XYZ-code as illustrated in Figure 1—a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pre-trained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multi-sensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks." - } - ] - }, - "tasks": [ - { - "kind": "AbstractiveSummarization", - "taskName": "Document Abstractive Summarization Task 1", - "parameters": { - "summaryLength": "medium", - "instruction": "XYZ-code" - } - } - ] - } - }, - "responses": { - "202": { - "headers": { - "Operation-Location": "{endpoint}/language/analyze-text/jobs/{jobId}?api-version=2025-05-15-preview" - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAbstractiveSummarizationTaskResult.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAbstractiveSummarizationTaskResult.json deleted file mode 100644 index 41581ae7d7d8..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAbstractiveSummarizationTaskResult.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "operationId": "AnalyzeTextJobStatus", - "title": "SuccessfulAbstractiveSummarizationTaskResult", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "createdDateTime": "2020-10-01T15:00:45Z", - "displayName": "Document Abstractive Summarization Task Example", - "expirationDateTime": "2020-10-03T15:01:03Z", - "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18", - "lastUpdatedDateTime": "2020-10-01T15:01:03Z", - "status": "succeeded", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "AbstractiveSummarizationLROResults", - "taskName": "Document Abstractive Summarization Task 1", - "lastUpdateDateTime": "2020-10-01T15:01:03Z", - "status": "succeeded", - "results": { - "documents": [ - { - "summaries": [ - { - "text": "Microsoft have been on a quest to advance AI beyond existing techniques.", - "contexts": [ - { - "offset": 0, - "length": 1629 - } - ] - } - ], - "id": "1", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "latest" - } - } - ] - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAbstractiveSummarizationTaskSubmit.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAbstractiveSummarizationTaskSubmit.json deleted file mode 100644 index 74cf057dcbc1..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAbstractiveSummarizationTaskSubmit.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "operationId": "AnalyzeTextSubmitJob", - "title": "SuccessfulAbstractiveSummarizationTaskSubmit", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "{Job ID}", - "body": { - "displayName": "Document Abstractive Summarization Task Example", - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "At Microsoft, we have been on a quest to advance AI beyond existing techniques, by taking a more holistic, human-centric approach to learning and understanding. As Chief Technology Officer of Azure AI Cognitive Services, I have been working with a team of amazing scientists and engineers to turn this quest into a reality. In my role, I enjoy a unique perspective in viewing the relationship among three attributes of human cognition: monolingual text (X), audio or visual sensory signals, (Y) and multilingual (Z). At the intersection of all three, there is magic—what we call XYZ-code as illustrated in Figure 1—a joint representation to create more powerful AI that can speak, hear, see, and understand humans better. We believe XYZ-code will enable us to fulfill our long-term vision: cross-domain transfer learning, spanning modalities and languages. The goal is to have pre-trained models that can jointly learn representations to support a broad range of downstream AI tasks, much in the way humans do today. Over the past five years, we have achieved human performance on benchmarks in conversational speech recognition, machine translation, conversational question answering, machine reading comprehension, and image captioning. These five breakthroughs provided us with strong signals toward our more ambitious aspiration to produce a leap in AI capabilities, achieving multi-sensory and multilingual learning that is closer in line with how humans learn and understand. I believe the joint XYZ-code is a foundational component of this aspiration, if grounded with external knowledge sources in the downstream AI tasks." - } - ] - }, - "tasks": [ - { - "kind": "AbstractiveSummarization", - "taskName": "Document Abstractive Summarization Task 1", - "parameters": { - "sentenceCount": 1 - } - } - ] - } - }, - "responses": { - "202": { - "headers": { - "Operation-Location": "{endpoint}/language/analyze-text/jobs/{jobId}?api-version=2025-05-15-preview" - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAnalyzeTextJobsCancelRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAnalyzeTextJobsCancelRequest.json deleted file mode 100644 index 13ad6a087245..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAnalyzeTextJobsCancelRequest.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "operationId": "AnalyzeTextCancelJob", - "title": "SuccessfulAnalyzeTextJobsCancelRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18" - }, - "responses": { - "202": { - "headers": { - "Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}?api-version=2023-11-15-preview" - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json deleted file mode 100644 index eec46a940eaa..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json +++ /dev/null @@ -1,180 +0,0 @@ -{ - "operationId": "AnalyzeTextJobStatus", - "title": "SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "createdDateTime": "2020-10-01T15:00:45Z", - "displayName": "Extracting Location & US Region", - "expirationDateTime": "2020-10-03T15:01:03Z", - "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18", - "lastUpdatedDateTime": "2020-10-01T15:01:03Z", - "status": "succeeded", - "tasks": { - "completed": 2, - "failed": 0, - "inProgress": 0, - "total": 2, - "items": [ - { - "kind": "EntityRecognitionLROResults", - "taskName": "Recognize Entities", - "lastUpdateDateTime": "2020-10-01T15:01:03Z", - "status": "succeeded", - "results": { - "documents": [ - { - "entities": [ - { - "category": "Event", - "type": "Event", - "confidenceScore": 0.61, - "length": 4, - "offset": 18, - "text": "trip", - "tags": [ - { - "name": "Event", - "confidenceScore": 0.61 - } - ] - }, - { - "category": "Location", - "type": "GPE", - "confidenceScore": 0.82, - "length": 7, - "offset": 26, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.82 - }, - { - "name": "GPE", - "confidenceScore": 0.82 - } - ], - "text": "Seattle" - }, - { - "category": "Temporal", - "type": "DateRange", - "confidenceScore": 0.8, - "length": 9, - "offset": 34, - "text": "last week", - "tags": [ - { - "name": "DateRange", - "confidenceScore": 0.8 - }, - { - "name": "Temporal", - "confidenceScore": 0.8 - } - ] - } - ], - "id": "1", - "warnings": [] - }, - { - "entities": [ - { - "category": "Location", - "type": "GPE", - "confidenceScore": 0.52, - "length": 3, - "offset": 14, - "text": "NYC", - "tags": [ - { - "name": "Location", - "confidenceScore": 0.82 - }, - { - "name": "GPE", - "confidenceScore": 0.82 - } - ] - }, - { - "category": "Temporal", - "type": "Date", - "confidenceScore": 0.8, - "length": 8, - "offset": 18, - "text": "tomorrow", - "tags": [ - { - "name": "Date", - "confidenceScore": 0.8 - }, - { - "name": "Temporal", - "confidenceScore": 0.8 - } - ] - } - ], - "id": "2", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-04-01" - } - }, - { - "kind": "CustomEntityRecognitionLROResults", - "taskName": "Recognize US Regions", - "lastUpdateDateTime": "2020-10-01T15:01:03Z", - "status": "succeeded", - "results": { - "documents": [ - { - "entities": [ - { - "category": "USRegion", - "confidenceScore": 0.85, - "length": 17, - "offset": 45, - "text": "Pacific Northwest" - } - ], - "id": "1", - "warnings": [] - }, - { - "entities": [ - { - "category": "USRegion", - "confidenceScore": 0.88, - "length": 10, - "offset": 63, - "text": "East Coast" - } - ], - "id": "2", - "warnings": [] - } - ], - "errors": [], - "projectName": "MyProject", - "deploymentName": "MyDeployment" - } - } - ] - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json deleted file mode 100644 index 8da4921853e8..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "operationId": "AnalyzeTextSubmitJob", - "title": "SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "{Job ID}", - "body": { - "displayName": "Extracting Location & US Region", - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "I had a wonderful trip to Seattle last week." - }, - { - "id": "2", - "language": "en", - "text": "I'm flying to NYC tomorrow. See you there." - } - ] - }, - "tasks": [ - { - "kind": "EntityRecognition", - "taskName": "Recognize Entities", - "parameters": { - "modelVersion": "latest" - } - }, - { - "kind": "CustomEntityRecognition", - "taskName": "Recognize US Regions", - "parameters": { - "projectName": "MyProject", - "deploymentName": "MyDeployment" - } - } - ] - } - }, - "responses": { - "202": { - "headers": { - "Operation-Location": "{endpoint}/language/analyze-text/jobs/{jobId}?api-version=2025-05-15-preview" - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityLinkingRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityLinkingRequest.json deleted file mode 100644 index 12939588e3d8..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityLinkingRequest.json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulEntityLinkingRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "EntityLinking", - "parameters": { - "modelVersion": "latest" - }, - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "Microsoft was founded by Bill Gates and Paul Allen." - }, - { - "id": "2", - "language": "en", - "text": "Pike place market is my favorite Seattle attraction." - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "EntityLinkingResults", - "results": { - "documents": [ - { - "entities": [ - { - "dataSource": "Wikipedia", - "id": "Bill Gates", - "language": "en", - "matches": [ - { - "confidenceScore": 0.52, - "length": 10, - "offset": 25, - "text": "Bill Gates" - } - ], - "name": "Bill Gates", - "url": "https://en.wikipedia.org/wiki/Bill_Gates" - }, - { - "dataSource": "Wikipedia", - "id": "Paul Allen", - "language": "en", - "matches": [ - { - "confidenceScore": 0.54, - "length": 10, - "offset": 40, - "text": "Paul Allen" - } - ], - "name": "Paul Allen", - "url": "https://en.wikipedia.org/wiki/Paul_Allen" - }, - { - "dataSource": "Wikipedia", - "id": "Microsoft", - "language": "en", - "matches": [ - { - "confidenceScore": 0.49, - "length": 9, - "offset": 0, - "text": "Microsoft" - } - ], - "name": "Microsoft", - "url": "https://en.wikipedia.org/wiki/Microsoft" - } - ], - "id": "1", - "warnings": [] - }, - { - "entities": [ - { - "dataSource": "Wikipedia", - "id": "Pike Place Market", - "language": "en", - "matches": [ - { - "confidenceScore": 0.86, - "length": 17, - "offset": 0, - "text": "Pike place market" - } - ], - "name": "Pike Place Market", - "url": "https://en.wikipedia.org/wiki/Pike_Place_Market" - }, - { - "dataSource": "Wikipedia", - "id": "Seattle", - "language": "en", - "matches": [ - { - "confidenceScore": 0.27, - "length": 7, - "offset": 33, - "text": "Seattle" - } - ], - "name": "Seattle", - "url": "https://en.wikipedia.org/wiki/Seattle" - } - ], - "id": "2", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2020-02-01" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityRecognitionExclusionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityRecognitionExclusionRequest.json deleted file mode 100644 index a0a0464c9ad4..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityRecognitionExclusionRequest.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulEntityRecognitionExclusionRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "EntityRecognition", - "parameters": { - "modelVersion": "latest", - "exclusionList": [ - "Numeric" - ], - "overlapPolicy": { - "policyKind": "allowOverlap" - } - }, - "analysisInput": { - "documents": [ - { - "id": "2", - "language": "en", - "text": "When I was 5 years old I had $90.00 dollars to my name." - }, - { - "id": "3", - "language": "en", - "text": "When we flew from LAX it seemed like we were moving at 10 meters per second. I was lucky to see Amsterdam, Effile Tower, and the Nile." - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "entities": [], - "id": "2", - "warnings": [] - }, - { - "entities": [ - { - "text": "LAX", - "category": "Location", - "type": "Airport", - "offset": 18, - "length": 3, - "confidenceScore": 0.72, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.9 - }, - { - "name": "Structural", - "confidenceScore": 0.72 - } - ] - }, - { - "text": "Amsterdam", - "category": "Location", - "type": "City", - "offset": 96, - "length": 9, - "confidenceScore": 0.8, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.84 - }, - { - "name": "GPE", - "confidenceScore": 0.84 - }, - { - "name": "City", - "confidenceScore": 0.8 - } - ] - }, - { - "text": "Eiffel Tower", - "category": "Location", - "type": "Structural", - "offset": 107, - "length": 12, - "confidenceScore": 0.9, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.9 - }, - { - "name": "Structural", - "confidenceScore": 0.9 - } - ] - }, - { - "text": "Nile", - "category": "Location", - "type": "Geological", - "offset": 129, - "length": 4, - "confidenceScore": 0.63, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.9 - }, - { - "name": "Geological", - "confidenceScore": 0.63 - } - ] - } - ], - "id": "3", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityRecognitionInclusionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityRecognitionInclusionRequest.json deleted file mode 100644 index d9ac4bd22910..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityRecognitionInclusionRequest.json +++ /dev/null @@ -1,133 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulEntityRecognitionInclusionRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "EntityRecognition", - "parameters": { - "modelVersion": "latest", - "inclusionList": [ - "Location" - ] - }, - "analysisInput": { - "documents": [ - { - "id": "2", - "language": "en", - "text": "When I was 5 years old I had $90.00 dollars to my name." - }, - { - "id": "3", - "language": "en", - "text": "When we flew from LAX it seemed like we were moving at 10 meters per second. I was lucky to see Amsterdam, Effile Tower, and the Nile." - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "entities": [], - "id": "2", - "warnings": [] - }, - { - "entities": [ - { - "text": "LAX", - "category": "Location", - "type": "Structural", - "offset": 18, - "length": 3, - "confidenceScore": 0.72, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.9 - }, - { - "name": "Structural", - "confidenceScore": 0.72 - } - ] - }, - { - "text": "Amsterdam", - "category": "Location", - "type": "City", - "offset": 96, - "length": 9, - "confidenceScore": 0.8, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.84 - }, - { - "name": "GPE", - "confidenceScore": 0.84 - }, - { - "name": "City", - "confidenceScore": 0.8 - } - ] - }, - { - "text": "Eiffel Tower", - "category": "Location", - "type": "Structural", - "offset": 107, - "length": 12, - "confidenceScore": 0.9, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.9 - }, - { - "name": "Structural", - "confidenceScore": 0.9 - } - ] - }, - { - "text": "Nile", - "category": "Location", - "type": "Geological", - "offset": 129, - "length": 4, - "confidenceScore": 0.63, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.9 - }, - { - "name": "Geological", - "confidenceScore": 0.63 - } - ] - } - ], - "id": "3", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityRecognitionInferenceOptionsRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityRecognitionInferenceOptionsRequest.json deleted file mode 100644 index 03f9e9c7d832..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityRecognitionInferenceOptionsRequest.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulEntityRecognitionInferenceOptionsRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "EntityRecognition", - "parameters": { - "modelVersion": "latest", - "inferenceOptions": { - "excludeNormalizedValues": true - } - }, - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "When I was 5 years old I had $90.00 dollars to my name." - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "entities": [ - { - "text": "5 years old", - "category": "Numeric", - "type": "Age", - "offset": 11, - "length": 11, - "confidenceScore": 0.99, - "tags": [ - { - "name": "Numeric", - "confidenceScore": 0.99 - }, - { - "name": "Age", - "confidenceScore": 0.99 - } - ] - }, - { - "text": "$90.00", - "category": "Numeric", - "type": "Currency", - "offset": 29, - "length": 14, - "confidenceScore": 0.99, - "tags": [ - { - "name": "Numeric", - "confidenceScore": 0.99 - }, - { - "name": "Currency", - "confidenceScore": 0.99 - } - ] - } - ], - "id": "1", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-09-01" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityRecognitionOverlapPolicy.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityRecognitionOverlapPolicy.json deleted file mode 100644 index a266f02e7e6b..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityRecognitionOverlapPolicy.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulEntityRecognitionOverlapPolicy", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "EntityRecognition", - "parameters": { - "modelVersion": "latest", - "overlapPolicy": { - "policyKind": "matchLongest" - } - }, - "analysisInput": { - "documents": [ - { - "id": "4", - "language": "en", - "text": "25th April Meeting was an intresting one. At least we gont to experience the WorldCup" - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "entities": [ - { - "text": "25th April Meeting", - "category": "Event", - "type": "Event", - "offset": 0, - "length": 18, - "confidenceScore": 0.59, - "tags": [ - { - "name": "Event", - "confidenceScore": 0.59 - } - ] - }, - { - "text": "Worldcup", - "category": "Event", - "type": "SportsEvent", - "offset": 0, - "length": 8, - "confidenceScore": 0.51, - "tags": [ - { - "name": "Event", - "confidenceScore": 0.55 - }, - { - "name": "SportsEvent", - "confidenceScore": 0.51 - } - ] - } - ], - "id": "4", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityRecognitionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityRecognitionRequest.json deleted file mode 100644 index 6b8d169d0594..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulEntityRecognitionRequest.json +++ /dev/null @@ -1,339 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulEntityRecognitionRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "EntityRecognition", - "parameters": { - "modelVersion": "latest", - "overlapPolicy": { - "policyKind": "allowOverlap" - } - }, - "analysisInput": { - "documents": [ - { - "id": "2", - "language": "en", - "text": "When I was 5 years old I had $90.00 dollars to my name." - }, - { - "id": "3", - "language": "en", - "text": "When we flew from LAX it seemed like we were moving at 10 meters per second. I was lucky to see Amsterdam, Effile Tower, and the Nile." - }, - { - "id": "4", - "language": "en", - "text": "25th April Meeting was an intresting one. At least we gont to experience the WorldCup" - }, - { - "id": "5", - "language": "en", - "text": "My IP is 127.12.1.1 and my phone number is 5555555555" - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "EntityRecognitionResults", - "results": { - "documents": [ - { - "entities": [ - { - "text": "5 years old", - "category": "Numeric", - "type": "Age", - "offset": 11, - "length": 11, - "confidenceScore": 0.99, - "tags": [ - { - "name": "Numeric", - "confidenceScore": 0.99 - }, - { - "name": "Age", - "confidenceScore": 0.99 - } - ], - "metadata": { - "metadataKind": "AgeMetadata", - "unit": "Year", - "value": 5.0 - } - }, - { - "text": "$90.00", - "category": "Numeric", - "type": "Currency", - "offset": 29, - "length": 14, - "confidenceScore": 0.99, - "tags": [ - { - "name": "Numeric", - "confidenceScore": 0.99 - }, - { - "name": "Currency", - "confidenceScore": 0.99 - } - ], - "metadata": { - "metadataKind": "CurrencyMetadata", - "unit": "Dollar", - "iso4217": "USD", - "value": 90.0 - } - } - ], - "id": "2", - "warnings": [] - }, - { - "entities": [ - { - "text": "LAX", - "category": "Location", - "type": "Structural", - "offset": 18, - "length": 3, - "confidenceScore": 0.72, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.9 - }, - { - "name": "Structural", - "confidenceScore": 0.72 - } - ] - }, - { - "text": "10 meters per second", - "category": "Numeric", - "type": "Speed", - "offset": 55, - "length": 20, - "confidenceScore": 0.8, - "tags": [ - { - "name": "Dimension", - "confidenceScore": 0.84 - }, - { - "name": "Numeric", - "confidenceScore": 0.84 - }, - { - "name": "Speed", - "confidenceScore": 0.8 - } - ], - "metadata": { - "metadataKind": "SpeedMetadata", - "unit": "MetersPerSecond", - "value": 10.0 - } - }, - { - "text": "Amsterdam", - "category": "Location", - "type": "City", - "offset": 96, - "length": 9, - "confidenceScore": 0.8, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.84 - }, - { - "name": "GPE", - "confidenceScore": 0.84 - }, - { - "name": "City", - "confidenceScore": 0.8 - } - ] - }, - { - "text": "Eiffel Tower", - "category": "Location", - "type": "Structural", - "offset": 107, - "length": 12, - "confidenceScore": 0.9, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.9 - }, - { - "name": "Structural", - "confidenceScore": 0.9 - } - ] - }, - { - "text": "Nile", - "category": "Location", - "type": "Geological", - "offset": 129, - "length": 4, - "confidenceScore": 0.63, - "tags": [ - { - "name": "Location", - "confidenceScore": 0.9 - }, - { - "name": "Geological", - "confidenceScore": 0.63 - } - ] - } - ], - "id": "3", - "warnings": [] - }, - { - "entities": [ - { - "text": "25th April", - "category": "Temporal", - "type": "Date", - "offset": 0, - "length": 10, - "confidenceScore": 0.58, - "tags": [ - { - "name": "Temporal", - "confidenceScore": 0.9 - }, - { - "name": "Date", - "confidenceScore": 0.58 - } - ], - "metadata": { - "metadataKind": "DateMetadata", - "dateValues": [ - { - "timex": "XXXX-04-25", - "value": "2022-04-25" - }, - { - "timex": "XXXX-04-25", - "value": "2023-04-25" - } - ] - } - }, - { - "text": "25th April Meeting", - "category": "Event", - "type": "Event", - "offset": 0, - "length": 18, - "confidenceScore": 0.55, - "tags": [ - { - "name": "Event", - "confidenceScore": 0.55 - } - ] - }, - { - "text": "25th April Meeting", - "category": "Event", - "type": "CulturalEvent", - "offset": 0, - "length": 18, - "confidenceScore": 0.55, - "tags": [ - { - "name": "Event", - "confidenceScore": 0.55 - }, - { - "name": "CulturalEvent", - "confidenceScore": 0.55 - } - ] - }, - { - "text": "Worldcup", - "category": "Event", - "type": "SportsEvent", - "offset": 0, - "length": 8, - "confidenceScore": 0.51, - "tags": [ - { - "name": "Event", - "confidenceScore": 0.55 - }, - { - "name": "SportsEvent", - "confidenceScore": 0.51 - } - ] - } - ], - "id": "4", - "warnings": [] - }, - { - "entities": [ - { - "text": "127.12.1.1", - "category": "IP", - "type": "IP", - "offset": 9, - "length": 10, - "confidenceScore": 0.8, - "tags": [ - { - "name": "IP", - "confidenceScore": 0.8 - } - ] - }, - { - "text": "5555555555", - "category": "PhoneNumber", - "type": "PhoneNumber", - "offset": 45, - "length": 9, - "confidenceScore": 0.8, - "tags": [ - { - "name": "PhoneNumber", - "confidenceScore": 0.8 - } - ] - } - ], - "id": "5", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulHealthcareDocumentTypePostRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulHealthcareDocumentTypePostRequest.json deleted file mode 100644 index 3c7aff2de00f..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulHealthcareDocumentTypePostRequest.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "operationId": "AnalyzeTextSubmitJob", - "title": "SuccessfulHealthcareDocumentTypePostRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "{Job ID}", - "body": { - "analysisInput": { - "documents": [ - { - "text": "Prescribed 100mg ibuprofen, taken twice daily.", - "id": "1", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "modelVersion": "latest", - "fhirVersion": "4.0.1", - "documentType": "DischargeSummary" - } - } - ] - } - }, - "responses": { - "202": { - "headers": { - "Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}?api-version=2025-05-15-preview" - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulHealthcareDocumentTypeTaskStatusRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulHealthcareDocumentTypeTaskStatusRequest.json deleted file mode 100644 index 5121c8443744..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulHealthcareDocumentTypeTaskStatusRequest.json +++ /dev/null @@ -1,554 +0,0 @@ -{ - "operationId": "AnalyzeTextJobStatus", - "title": "SuccessfulHealthcareDocumentTypeTaskStatusRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "15e4a46b-62e2-4386-8d36-9c2a92bb45dd" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "createdDateTime": "2022-09-06T23:47:43Z", - "displayName": "Providing Document Type", - "expirationDateTime": "2022-09-07T23:47:43Z", - "jobId": "15e4a46b-62e2-4386-8d36-9c2a92bb45dd", - "lastUpdatedDateTime": "2022-09-06T23:48:10Z", - "status": "succeeded", - "errors": [], - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2022-09-06T23:48:10.1762027Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "a", - "entities": [ - { - "offset": 11, - "length": 5, - "text": "100mg", - "category": "Dosage", - "confidenceScore": 0.98 - }, - { - "offset": 17, - "length": 9, - "text": "ibuprofen", - "category": "MedicationName", - "confidenceScore": 1.0, - "name": "ibuprofen", - "links": [ - { - "dataSource": "UMLS", - "id": "C0020740" - }, - { - "dataSource": "AOD", - "id": "0000019879" - }, - { - "dataSource": "ATC", - "id": "M01AE01" - }, - { - "dataSource": "CCPSS", - "id": "0046165" - }, - { - "dataSource": "CHV", - "id": "0000006519" - }, - { - "dataSource": "CSP", - "id": "2270-2077" - }, - { - "dataSource": "DRUGBANK", - "id": "DB01050" - }, - { - "dataSource": "GS", - "id": "1611" - }, - { - "dataSource": "LCH_NW", - "id": "sh97005926" - }, - { - "dataSource": "LNC", - "id": "LP16165-0" - }, - { - "dataSource": "MEDCIN", - "id": "40458" - }, - { - "dataSource": "MMSL", - "id": "d00015" - }, - { - "dataSource": "MSH", - "id": "D007052" - }, - { - "dataSource": "MTHSPL", - "id": "WK2XYI10QM" - }, - { - "dataSource": "NCI", - "id": "C561" - }, - { - "dataSource": "NCI_CTRP", - "id": "C561" - }, - { - "dataSource": "NCI_DCP", - "id": "00803" - }, - { - "dataSource": "NCI_DTP", - "id": "NSC0256857" - }, - { - "dataSource": "NCI_FDA", - "id": "WK2XYI10QM" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000613511" - }, - { - "dataSource": "NDDF", - "id": "002377" - }, - { - "dataSource": "PDQ", - "id": "CDR0000040475" - }, - { - "dataSource": "RCD", - "id": "x02MO" - }, - { - "dataSource": "RXNORM", - "id": "5640" - }, - { - "dataSource": "SNM", - "id": "E-7772" - }, - { - "dataSource": "SNMI", - "id": "C-603C0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "387207008" - }, - { - "dataSource": "USP", - "id": "m39860" - }, - { - "dataSource": "USPMG", - "id": "MTHU000060" - }, - { - "dataSource": "VANDF", - "id": "4017840" - } - ] - }, - { - "offset": 34, - "length": 11, - "text": "twice daily", - "category": "Frequency", - "confidenceScore": 1.0 - } - ], - "relations": [ - { - "confidenceScore": 1.0, - "relationType": "DosageOfMedication", - "entities": [ - { - "ref": "#/results/documents/0/entities/0", - "role": "Dosage" - }, - { - "ref": "#/results/documents/0/entities/1", - "role": "Medication" - } - ] - }, - { - "confidenceScore": 1.0, - "relationType": "FrequencyOfMedication", - "entities": [ - { - "ref": "#/results/documents/0/entities/1", - "role": "Medication" - }, - { - "ref": "#/results/documents/0/entities/2", - "role": "Frequency" - } - ] - } - ], - "warnings": [], - "fhirBundle": { - "resourceType": "Bundle", - "id": "6ee4a7c0-5911-4c4b-bea2-3c2a1fe5c65f", - "meta": { - "profile": [ - "http://hl7.org/fhir/4.0.1/StructureDefinition/Bundle" - ] - }, - "identifier": { - "system": "urn:ietf:rfc:3986", - "value": "urn:uuid:6ee4a7c0-5911-4c4b-bea2-3c2a1fe5c65f" - }, - "type": "document", - "entry": [ - { - "fullUrl": "Composition/5bd33290-b92e-4aa5-becf-535578207946", - "resource": { - "resourceType": "Composition", - "id": "5bd33290-b92e-4aa5-becf-535578207946", - "status": "final", - "type": { - "coding": [ - { - "system": "http://loinc.org", - "code": "18842-5", - "display": "Discharge summary" - } - ], - "text": "Discharge summary" - }, - "subject": { - "reference": "Patient/efcccdf7-87f0-4061-b553-09fc11734594", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/76214457-f94c-4ccf-95ef-ab31e7232d63", - "type": "Encounter", - "display": "unknown" - }, - "date": "2022-09-06", - "author": [ - { - "reference": "Practitioner/bba2dee3-2eb3-4973-b4b9-62d498b17046", - "type": "Practitioner", - "display": "Unknown" - } - ], - "title": "Discharge summary", - "section": [ - { - "title": "General", - "code": { - "coding": [ - { - "system": "", - "display": "Unrecognized Section" - } - ], - "text": "General" - }, - "text": { - "status": "additional", - "div": "
\r\n\t\t\t\t\t\t\t

General

\r\n\t\t\t\t\t\t\t

Prescribed 100mg ibuprofen, taken twice daily.

\r\n\t\t\t\t\t
" - }, - "entry": [ - { - "reference": "List/6d743a3e-e7a2-4cee-a0b5-64361b6c93ad", - "type": "List", - "display": "General" - } - ] - } - ] - } - }, - { - "fullUrl": "Practitioner/bba2dee3-2eb3-4973-b4b9-62d498b17046", - "resource": { - "resourceType": "Practitioner", - "id": "bba2dee3-2eb3-4973-b4b9-62d498b17046", - "name": [ - { - "text": "Unknown", - "family": "Unknown" - } - ] - } - }, - { - "fullUrl": "Patient/efcccdf7-87f0-4061-b553-09fc11734594", - "resource": { - "resourceType": "Patient", - "id": "efcccdf7-87f0-4061-b553-09fc11734594", - "gender": "unknown" - } - }, - { - "fullUrl": "Encounter/76214457-f94c-4ccf-95ef-ab31e7232d63", - "resource": { - "resourceType": "Encounter", - "id": "76214457-f94c-4ccf-95ef-ab31e7232d63", - "meta": { - "profile": [ - "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" - ] - }, - "status": "finished", - "class": { - "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", - "display": "unknown" - }, - "subject": { - "reference": "Patient/efcccdf7-87f0-4061-b553-09fc11734594", - "type": "Patient" - }, - "period": { - "start": "2022-09-06", - "end": "2022-09-06" - } - } - }, - { - "fullUrl": "MedicationStatement/ac0264b6-63b7-4cf2-a7c3-f7340788aca7", - "resource": { - "resourceType": "MedicationStatement", - "id": "ac0264b6-63b7-4cf2-a7c3-f7340788aca7", - "extension": [ - { - "extension": [ - { - "url": "offset", - "valueInteger": 17 - }, - { - "url": "length", - "valueInteger": 9 - } - ], - "url": "http://hl7.org/fhir/StructureDefinition/derivation-reference" - } - ], - "status": "active", - "medicationCodeableConcept": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls", - "code": "C0020740", - "display": "ibuprofen" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/aod", - "code": "0000019879" - }, - { - "system": "http://www.whocc.no/atc", - "code": "M01AE01" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/ccpss", - "code": "0046165" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/chv", - "code": "0000006519" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/csp", - "code": "2270-2077" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/drugbank", - "code": "DB01050" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/gs", - "code": "1611" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/lch_nw", - "code": "sh97005926" - }, - { - "system": "http://loinc.org", - "code": "LP16165-0" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/medcin", - "code": "40458" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mmsl", - "code": "d00015" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/msh", - "code": "D007052" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/mthspl", - "code": "WK2XYI10QM" - }, - { - "system": "http://ncimeta.nci.nih.gov", - "code": "C561" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_ctrp", - "code": "C561" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_dcp", - "code": "00803" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_dtp", - "code": "NSC0256857" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_fda", - "code": "WK2XYI10QM" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nci_nci-gloss", - "code": "CDR0000613511" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/nddf", - "code": "002377" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/pdq", - "code": "CDR0000040475" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rcd", - "code": "x02MO" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/rxnorm", - "code": "5640" - }, - { - "system": "http://snomed.info/sct", - "code": "E-7772" - }, - { - "system": "http://snomed.info/sct", - "code": "C-603C0" - }, - { - "system": "http://snomed.info/sct", - "code": "387207008" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/usp", - "code": "m39860" - }, - { - "system": "http://www.nlm.nih.gov/research/umls/uspmg", - "code": "MTHU000060" - }, - { - "system": "http://hl7.org/fhir/ndfrt", - "code": "4017840" - } - ], - "text": "ibuprofen" - }, - "subject": { - "reference": "Patient/efcccdf7-87f0-4061-b553-09fc11734594", - "type": "Patient" - }, - "context": { - "reference": "Encounter/76214457-f94c-4ccf-95ef-ab31e7232d63", - "type": "Encounter", - "display": "unknown" - }, - "dosage": [ - { - "text": "100mg", - "timing": { - "repeat": { - "frequency": 2, - "period": 1, - "periodUnit": "d" - }, - "code": { - "text": "twice daily" - } - }, - "doseAndRate": [ - { - "doseQuantity": { - "value": 100 - } - } - ] - } - ] - } - }, - { - "fullUrl": "List/6d743a3e-e7a2-4cee-a0b5-64361b6c93ad", - "resource": { - "resourceType": "List", - "id": "6d743a3e-e7a2-4cee-a0b5-64361b6c93ad", - "status": "current", - "mode": "snapshot", - "title": "General", - "subject": { - "reference": "Patient/efcccdf7-87f0-4061-b553-09fc11734594", - "type": "Patient" - }, - "encounter": { - "reference": "Encounter/76214457-f94c-4ccf-95ef-ab31e7232d63", - "type": "Encounter", - "display": "unknown" - }, - "entry": [ - { - "item": { - "reference": "MedicationStatement/ac0264b6-63b7-4cf2-a7c3-f7340788aca7", - "type": "MedicationStatement", - "display": "ibuprofen" - } - } - ] - } - } - ] - } - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulHealthcarePostRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulHealthcarePostRequest.json deleted file mode 100644 index 30793bfedaf2..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulHealthcarePostRequest.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "operationId": "AnalyzeTextSubmitJob", - "title": "SuccessfulHealthcarePostRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "{Job ID}", - "body": { - "analysisInput": { - "documents": [ - { - "text": "Prescribed 100mg ibuprofen, taken twice daily.", - "id": "1", - "language": "en" - } - ] - }, - "tasks": [ - { - "kind": "Healthcare", - "parameters": { - "modelVersion": "latest" - } - } - ] - } - }, - "responses": { - "202": { - "headers": { - "Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}?api-version=2025-05-15-preview" - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulHealthcareTaskStatusRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulHealthcareTaskStatusRequest.json deleted file mode 100644 index c6c7999f9355..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulHealthcareTaskStatusRequest.json +++ /dev/null @@ -1,222 +0,0 @@ -{ - "operationId": "AnalyzeTextJobStatus", - "title": "SuccessfulHealthcareTaskStatusRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "jobId": "1780194a-e9c1-4298-b0d4-fdc59ba818a0" - }, - "responses": { - "200": { - "headers": {}, - "body": { - "createdDateTime": "2022-07-20T18:43:35Z", - "displayName": "Extracting Location & US Region", - "expirationDateTime": "2022-07-21T18:43:35Z", - "jobId": "1780194a-e9c1-4298-b0d4-fdc59ba818a0", - "lastUpdatedDateTime": "2022-07-20T18:43:36Z", - "status": "succeeded", - "tasks": { - "completed": 1, - "failed": 0, - "inProgress": 0, - "total": 1, - "items": [ - { - "kind": "HealthcareLROResults", - "lastUpdateDateTime": "2022-07-20T18:43:36.7159045Z", - "status": "succeeded", - "results": { - "documents": [ - { - "id": "1", - "entities": [ - { - "offset": 11, - "length": 5, - "text": "100mg", - "category": "Dosage", - "confidenceScore": 0.98 - }, - { - "offset": 17, - "length": 9, - "text": "ibuprofen", - "category": "MedicationName", - "confidenceScore": 1, - "name": "ibuprofen", - "links": [ - { - "dataSource": "UMLS", - "id": "C0020740" - }, - { - "dataSource": "AOD", - "id": "0000019879" - }, - { - "dataSource": "ATC", - "id": "M01AE01" - }, - { - "dataSource": "CCPSS", - "id": "0046165" - }, - { - "dataSource": "CHV", - "id": "0000006519" - }, - { - "dataSource": "CSP", - "id": "2270-2077" - }, - { - "dataSource": "DRUGBANK", - "id": "DB01050" - }, - { - "dataSource": "GS", - "id": "1611" - }, - { - "dataSource": "LCH_NW", - "id": "sh97005926" - }, - { - "dataSource": "LNC", - "id": "LP16165-0" - }, - { - "dataSource": "MEDCIN", - "id": "40458" - }, - { - "dataSource": "MMSL", - "id": "d00015" - }, - { - "dataSource": "MSH", - "id": "D007052" - }, - { - "dataSource": "MTHSPL", - "id": "WK2XYI10QM" - }, - { - "dataSource": "NCI", - "id": "C561" - }, - { - "dataSource": "NCI_CTRP", - "id": "C561" - }, - { - "dataSource": "NCI_DCP", - "id": "00803" - }, - { - "dataSource": "NCI_DTP", - "id": "NSC0256857" - }, - { - "dataSource": "NCI_FDA", - "id": "WK2XYI10QM" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000613511" - }, - { - "dataSource": "NDDF", - "id": "002377" - }, - { - "dataSource": "PDQ", - "id": "CDR0000040475" - }, - { - "dataSource": "RCD", - "id": "x02MO" - }, - { - "dataSource": "RXNORM", - "id": "5640" - }, - { - "dataSource": "SNM", - "id": "E-7772" - }, - { - "dataSource": "SNMI", - "id": "C-603C0" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "387207008" - }, - { - "dataSource": "USP", - "id": "m39860" - }, - { - "dataSource": "USPMG", - "id": "MTHU000060" - }, - { - "dataSource": "VANDF", - "id": "4017840" - } - ] - }, - { - "offset": 34, - "length": 11, - "text": "twice daily", - "category": "Frequency", - "confidenceScore": 1 - } - ], - "relations": [ - { - "confidenceScore": 1, - "relationType": "DosageOfMedication", - "entities": [ - { - "ref": "#/results/documents/0/entities/0", - "role": "Dosage" - }, - { - "ref": "#/results/documents/0/entities/1", - "role": "Medication" - } - ] - }, - { - "confidenceScore": 1, - "relationType": "FrequencyOfMedication", - "entities": [ - { - "ref": "#/results/documents/0/entities/1", - "role": "Medication" - }, - { - "ref": "#/results/documents/0/entities/2", - "role": "Frequency" - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2022-03-01" - } - } - ] - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulKeyPhraseExtractionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulKeyPhraseExtractionRequest.json deleted file mode 100644 index 1ce055cfabbf..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulKeyPhraseExtractionRequest.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulKeyPhraseExtractionRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "KeyPhraseExtraction", - "parameters": { - "modelVersion": "latest" - }, - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "Microsoft was founded by Bill Gates and Paul Allen." - }, - { - "id": "2", - "language": "en", - "text": "Text Analytics is one of the Azure Cognitive Services." - }, - { - "id": "3", - "language": "en", - "text": "My cat might need to see a veterinarian." - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "KeyPhraseExtractionResults", - "results": { - "documents": [ - { - "id": "1", - "keyPhrases": [ - "Bill Gates", - "Paul Allen", - "Microsoft" - ], - "warnings": [] - }, - { - "id": "2", - "keyPhrases": [ - "Azure Cognitive Services", - "Text Analytics" - ], - "warnings": [] - }, - { - "id": "3", - "keyPhrases": [ - "cat", - "veterinarian" - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-06-01" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulLanguageDetectionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulLanguageDetectionRequest.json deleted file mode 100644 index c1de4b0e4cec..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulLanguageDetectionRequest.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulLanguageDetectionRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "LanguageDetection", - "parameters": { - "modelVersion": "latest" - }, - "analysisInput": { - "documents": [ - { - "id": "1", - "text": "Hello world" - }, - { - "id": "2", - "text": "Bonjour tout le monde" - }, - { - "id": "3", - "text": "Hola mundo" - }, - { - "id": "4", - "text": "Tumhara naam kya hai?" - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "LanguageDetectionResults", - "results": { - "documents": [ - { - "detectedLanguage": { - "confidenceScore": 1, - "iso6391Name": "en", - "name": "English", - "scriptName": "Latin", - "scriptIso15924Code": "Latn" - }, - "id": "1", - "warnings": [] - }, - { - "detectedLanguage": { - "confidenceScore": 1, - "iso6391Name": "fr", - "name": "French", - "scriptName": "Latin", - "scriptIso15924Code": "Latn" - }, - "id": "2", - "warnings": [] - }, - { - "detectedLanguage": { - "confidenceScore": 1, - "iso6391Name": "es", - "name": "Spanish", - "scriptName": "Latin", - "scriptIso15924Code": "Latn" - }, - "id": "3", - "warnings": [] - }, - { - "detectedLanguage": { - "confidenceScore": 1, - "iso6391Name": "hi", - "name": "Hindi", - "scriptName": "Latin", - "scriptIso15924Code": "Latn" - }, - "id": "4", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2023-12-01" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulPiiEntityRecognitionExclusionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulPiiEntityRecognitionExclusionRequest.json deleted file mode 100644 index 0aee08e7cbe8..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulPiiEntityRecognitionExclusionRequest.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulPiiEntityRecognitionExclusionRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "PiiEntityRecognition", - "parameters": { - "modelVersion": "latest", - "excludePiiCategories": [ - "USSocialSecurityNumber" - ] - }, - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "My SSN is 859-98-0987" - }, - { - "id": "2", - "language": "en", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." - }, - { - "id": "3", - "language": "en", - "text": "Is 998.214.865-68 your Brazilian CPF number?" - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "id": "2", - "redactedText": "Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.", - "entities": [ - { - "category": "ABARoutingNumber", - "type": "ABARoutingNumber", - "confidenceScore": 0.75, - "length": 9, - "offset": 18, - "text": "111000025", - "tags": [ - { - "name": "Number", - "confidenceScore": 0.8 - }, - { - "name": "Numeric", - "confidenceScore": 0.8 - } - ] - } - ], - "warnings": [] - }, - { - "id": "3", - "redactedText": "Is ************** your Brazilian CPF number?", - "entities": [ - { - "category": "BRCPFNumber", - "type": "BRCPFNumber", - "confidenceScore": 0.85, - "length": 14, - "offset": 3, - "text": "998.214.865-68", - "tags": [ - { - "name": "Number", - "confidenceScore": 0.8 - }, - { - "name": "Numeric", - "confidenceScore": 0.8 - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulPiiEntityRecognitionMaskedEntities.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulPiiEntityRecognitionMaskedEntities.json deleted file mode 100644 index e4ef9df573d8..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulPiiEntityRecognitionMaskedEntities.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulPiiEntityRecognitionMaskedEntitiesRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "PiiEntityRecognition", - "parameters": { - "modelVersion": "latest", - "redactionPolicy": { - "policyKind": "entityMask" - } - }, - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "My name is John Doe My phone number is 424 878 9192" - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "id": "1", - "redactedText": "My name is [PERSON_1] My phone number is [PHONENUMBER_1]", - "entities": [ - { - "category": "Person", - "type": "Person", - "tags": [ - { - "name": "Person", - "confidenceScore": 0.65 - } - ], - "length": 8, - "offset": 11, - "mask": "[Person_1]", - "maskOffset": 11, - "maskLength": 9, - "text": "John Doe", - "confidenceScore": 0.65 - }, - { - "category": "PhoneNumber", - "type": "PhoneNumber", - "tags": [ - { - "name": "PhoneNumber", - "confidenceScore": 0.8 - } - ], - "length": 12, - "offset": 36, - "mask": "[PHONENUMBER_1]", - "maskOffset": 41, - "maskLength": 13, - "text": "424 878 9192", - "confidenceScore": 0.8 - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulPiiEntityRecognitionRedactionPolicyRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulPiiEntityRecognitionRedactionPolicyRequest.json deleted file mode 100644 index a9e6150507c8..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulPiiEntityRecognitionRedactionPolicyRequest.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulPiiEntityRecognitionRedactionPolicyRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "PiiEntityRecognition", - "parameters": { - "modelVersion": "latest", - "redactionPolicy": { - "policyKind": "characterMask", - "redactionCharacter": "-" - } - }, - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "My SSN is 859-98-0987" - }, - { - "id": "2", - "language": "en", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." - }, - { - "id": "3", - "language": "en", - "text": "Is 998.214.865-68 your Brazilian CPF number?" - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "id": "1", - "redactedText": "My SSN is -----------", - "entities": [ - { - "category": "USSocialSecurityNumber", - "type": "USSocialSecurityNumber", - "confidenceScore": 0.65, - "length": 11, - "offset": 28, - "text": "859-98-0987", - "tags": [ - { - "name": "Number", - "confidenceScore": 0.8 - }, - { - "name": "Numeric", - "confidenceScore": 0.8 - } - ] - } - ], - "warnings": [] - }, - { - "id": "2", - "redactedText": "Your ABA number - --------- - is the first 9 digits in the lower left hand corner of your personal check.", - "entities": [ - { - "category": "ABARoutingNumber", - "type": "ABARoutingNumber", - "confidenceScore": 0.75, - "length": 9, - "offset": 18, - "text": "111000025", - "tags": [ - { - "name": "Number", - "confidenceScore": 0.8 - }, - { - "name": "Numeric", - "confidenceScore": 0.8 - } - ] - } - ], - "warnings": [] - }, - { - "id": "3", - "redactedText": "Is -------------- your Brazilian CPF number?", - "entities": [ - { - "category": "BRCPFNumber", - "type": "", - "confidenceScore": 0.85, - "length": 14, - "offset": 3, - "text": "998.214.865-68", - "tags": [ - { - "name": "Number", - "confidenceScore": 0.8 - }, - { - "name": "Numeric", - "confidenceScore": 0.8 - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulPiiEntityRecognitionRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulPiiEntityRecognitionRequest.json deleted file mode 100644 index a293143bcfaa..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulPiiEntityRecognitionRequest.json +++ /dev/null @@ -1,123 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulPiiEntityRecognitionRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "PiiEntityRecognition", - "parameters": { - "modelVersion": "latest" - }, - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "My SSN is 859-98-0987" - }, - { - "id": "2", - "language": "en", - "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check." - }, - { - "id": "3", - "language": "en", - "text": "Is 998.214.865-68 your Brazilian CPF number?" - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "PiiEntityRecognitionResults", - "results": { - "documents": [ - { - "id": "1", - "redactedText": "My SSN is ***********", - "entities": [ - { - "category": "USSocialSecurityNumber", - "type": "USSocialSecurityNumber", - "confidenceScore": 0.65, - "length": 11, - "offset": 28, - "text": "859-98-0987", - "tags": [ - { - "name": "Number", - "confidenceScore": 0.8 - }, - { - "name": "Numeric", - "confidenceScore": 0.8 - } - ] - } - ], - "warnings": [] - }, - { - "id": "2", - "redactedText": "Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.", - "entities": [ - { - "category": "ABARoutingNumber", - "type": "ABARoutingNumber", - "confidenceScore": 0.75, - "length": 9, - "offset": 18, - "text": "111000025", - "tags": [ - { - "name": "Number", - "confidenceScore": 0.8 - }, - { - "name": "Numeric", - "confidenceScore": 0.8 - } - ] - } - ], - "warnings": [] - }, - { - "id": "3", - "redactedText": "Is ************** your Brazilian CPF number?", - "entities": [ - { - "category": "BRCPFNumber", - "type": "BRCPFNumber", - "confidenceScore": 0.85, - "length": 14, - "offset": 3, - "text": "998.214.865-68", - "tags": [ - { - "name": "Number", - "confidenceScore": 0.8 - }, - { - "name": "Numeric", - "confidenceScore": 0.8 - } - ] - } - ], - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-01-15" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulSentimentAnalysisRequest.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulSentimentAnalysisRequest.json deleted file mode 100644 index e64a31f70ffd..000000000000 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-05-15-preview/examples/SuccessfulSentimentAnalysisRequest.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "operationId": "AnalyzeText", - "title": "SuccessfulSentimentAnalysisRequest", - "parameters": { - "Ocp-Apim-Subscription-Key": "{API key}", - "api-version": "2025-05-15-preview", - "Endpoint": "{Endpoint}", - "body": { - "kind": "SentimentAnalysis", - "parameters": { - "modelVersion": "latest" - }, - "analysisInput": { - "documents": [ - { - "id": "1", - "language": "en", - "text": "Great atmosphere. Close to plenty of restaurants, hotels, and transit! Staff are friendly and helpful." - } - ] - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "kind": "SentimentAnalysisResults", - "results": { - "documents": [ - { - "confidenceScores": { - "negative": 0, - "neutral": 0, - "positive": 1 - }, - "id": "1", - "sentences": [ - { - "targets": [ - { - "confidenceScores": { - "negative": 0, - "positive": 1 - }, - "length": 10, - "offset": 6, - "relations": [ - { - "ref": "#/documents/0/sentences/0/assessments/0", - "relationType": "assessment" - } - ], - "sentiment": "positive", - "text": "atmosphere" - } - ], - "confidenceScores": { - "negative": 0, - "neutral": 0, - "positive": 1 - }, - "length": 17, - "offset": 0, - "assessments": [ - { - "confidenceScores": { - "negative": 0, - "positive": 1 - }, - "isNegated": false, - "length": 5, - "offset": 0, - "sentiment": "positive", - "text": "great" - } - ], - "sentiment": "positive", - "text": "Great atmosphere." - }, - { - "targets": [ - { - "confidenceScores": { - "negative": 0.01, - "positive": 0.99 - }, - "length": 11, - "offset": 37, - "relations": [ - { - "ref": "#/documents/0/sentences/1/assessments/0", - "relationType": "assessment" - } - ], - "sentiment": "positive", - "text": "restaurants" - }, - { - "confidenceScores": { - "negative": 0.01, - "positive": 0.99 - }, - "length": 6, - "offset": 50, - "relations": [ - { - "ref": "#/documents/0/sentences/1/assessments/0", - "relationType": "assessment" - } - ], - "sentiment": "positive", - "text": "hotels" - } - ], - "confidenceScores": { - "negative": 0.01, - "neutral": 0.86, - "positive": 0.13 - }, - "length": 52, - "offset": 18, - "assessments": [ - { - "confidenceScores": { - "negative": 0.01, - "positive": 0.99 - }, - "isNegated": false, - "length": 15, - "offset": 18, - "sentiment": "positive", - "text": "Close to plenty" - } - ], - "sentiment": "neutral", - "text": "Close to plenty of restaurants, hotels, and transit!" - } - ], - "sentiment": "positive", - "warnings": [] - } - ], - "errors": [], - "modelVersion": "2021-10-01" - } - } - } - } -} diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/readme.md b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/readme.md index af7a70332ec7..6686bbb96412 100644 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/readme.md +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/readme.md @@ -6,12 +6,12 @@ This is the AutoRest configuration file the Cognitive Services Language SDK. ## Releases -The current preview release of Language - Text is 2025-05-15-preview. +The current preview release of Language - Text is 2025-11-15-preview. -The current stable release of Language - Text is 2024-11-01. +The current stable release of Language - Text is 2025-11-01. ```yaml -tag: release_2025-05-15-preview +tag: release_2025-11-15-preview add-credentials: true clear-output-folder: true openapi-type: data-plane @@ -23,26 +23,26 @@ directive: reason: ISO should be upper case. ``` -### Release 2025-11-01 +### Release 2025-11-15-preview -These settings apply only when `--tag=release_2025-11-01` is specified on the command line. +These settings apply only when `--tag=release_2025-11-15-preview` is specified on the command line. -``` yaml $(tag) == 'release_2025-11-01' +``` yaml $(tag) == 'release_2025-11-15-preview' input-file: - - stable/2025-11-01/analyzetext.json + - preview/2025-11-15-preview/analyzetext.json title: Microsoft Cognitive Language Service - Text modelerfour: lenient-model-deduplication: true ``` -### Release 2025-05-15-preview +### Release 2025-11-01 -These settings apply only when `--tag=release_2025-05-15-preview` is specified on the command line. +These settings apply only when `--tag=release_2025-11-01` is specified on the command line. -``` yaml $(tag) == 'release_2025-05-15-preview' +``` yaml $(tag) == 'release_2025-11-01' input-file: - - preview/2025-05-15-preview/analyzetext.json + - stable/2025-11-01/analyzetext.json title: Microsoft Cognitive Language Service - Text modelerfour: From 702c143d96405ee389da20663170ec3b1a4e5600 Mon Sep 17 00:00:00 2001 From: "Amber Chen (Centific Technologies Inc)" Date: Wed, 15 Oct 2025 15:30:12 -0700 Subject: [PATCH 5/6] fix typespec validation --- .../LanguageAnalyzeText/models/pii.entity.recognition.tsp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/pii.entity.recognition.tsp b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/pii.entity.recognition.tsp index 43c4acac93c5..91cb58c7547c 100644 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/pii.entity.recognition.tsp +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/pii.entity.recognition.tsp @@ -90,7 +90,7 @@ model ConfidenceScoreThresholdOverride { value: float32; /** The 2 letter ISO 639-1 language for which the override applies. If not specified, the override applies to all languages. */ - language: string + language: string; } /** The entity synonyms used to enhance pii entity detection */ @@ -883,6 +883,7 @@ union PiiCategoriesExclude { /** Card Verification Value */ @added(Versions.v2025_11_15_preview) CVV: "CVV", + /** Expiration Date */ @added(Versions.v2025_11_15_preview) ExpirationDate: "ExpirationDate", From 8370691d29b349dc495cc771c2f79fb3f4b7b527 Mon Sep 17 00:00:00 2001 From: "Amber Chen (Centific Technologies Inc)" Date: Thu, 16 Oct 2025 10:32:26 -0700 Subject: [PATCH 6/6] removed redactionPolicy?: BaseRedactionPolicy; --- .../LanguageAnalyzeText/models/pii.entity.recognition.tsp | 4 ---- .../preview/2025-11-15-preview/analyzetext.json | 4 ---- 2 files changed, 8 deletions(-) diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/pii.entity.recognition.tsp b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/pii.entity.recognition.tsp index 91cb58c7547c..fcc647d9b5d2 100644 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/pii.entity.recognition.tsp +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/models/pii.entity.recognition.tsp @@ -35,10 +35,6 @@ model PiiTaskParameters is PreBuiltTaskParametersLoggingOptOut { @added(Versions.v2025_11_15_preview) excludePiiCategories?: PiiCategoriesExclude[]; - /** RedactionPolicy to be used on the input. */ - @added(Versions.v2025_11_15_preview) - redactionPolicy?: BaseRedactionPolicy; - /** Policy for specific words and terms that should be excluded from detection by the PII detection service */ @added(Versions.v2025_11_15_preview) valueExclusionPolicy?: ValueExclusionPolicy; diff --git a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/analyzetext.json b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/analyzetext.json index 8cbe40535247..38f5c10c035b 100644 --- a/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/analyzetext.json +++ b/specification/cognitiveservices/data-plane/LanguageAnalyzeText/preview/2025-11-15-preview/analyzetext.json @@ -7595,10 +7595,6 @@ "$ref": "#/definitions/PiiCategoriesExclude" } }, - "redactionPolicy": { - "$ref": "#/definitions/BaseRedactionPolicy", - "description": "RedactionPolicy to be used on the input." - }, "valueExclusionPolicy": { "$ref": "#/definitions/ValueExclusionPolicy", "description": "Policy for specific words and terms that should be excluded from detection by the PII detection service"