diff --git a/custom-words.txt b/custom-words.txt
index cb018c3bb277..5027b540a04c 100644
--- a/custom-words.txt
+++ b/custom-words.txt
@@ -2474,4 +2474,7 @@ loadtest
xvalue
yvalue
servermetrics
-IAASVM
\ No newline at end of file
+IAASVM
+Picometer
+Petabit
+questionanswering
\ No newline at end of file
diff --git a/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/analyzeconversations.json b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/analyzeconversations.json
new file mode 100644
index 000000000000..74a533704be5
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/analyzeconversations.json
@@ -0,0 +1,1430 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Microsoft Cognitive Language Service - Analyze Conversations",
+ "description": "This API accepts a request and mediates among multiple language projects, such as LUIS Generally Available, Question Answering, Conversational Language Understanding, and then calls the best candidate service to handle the request. At last, it returns a response with the candidate service's response as a payload.\n\n In some cases, this API needs to forward requests and responses between the caller and an upstream service.",
+ "version": "2022-03-01-preview"
+ },
+ "securityDefinitions": {
+ "apim_key": {
+ "type": "apiKey",
+ "description": "A subscription key for a Language service resource.",
+ "name": "Ocp-Apim-Subscription-Key",
+ "in": "header"
+ }
+ },
+ "security": [
+ {
+ "apim_key": []
+ }
+ ],
+ "x-ms-parameterized-host": {
+ "hostTemplate": "{Endpoint}/language",
+ "useSchemePrefix": false,
+ "parameters": [
+ {
+ "$ref": "common.json#/parameters/Endpoint"
+ }
+ ]
+ },
+ "paths": {
+ "/:analyze-conversations": {
+ "post": {
+ "operationId": "ConversationAnalysis_AnalyzeConversation",
+ "description": "Analyzes the input conversation utterance.",
+ "parameters": [
+ {
+ "$ref": "common.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "description": "A single conversational task to execute.",
+ "in": "body",
+ "name": "body",
+ "schema": {
+ "$ref": "#/definitions/AnalyzeConversationTask"
+ },
+ "required": true
+ }
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "responses": {
+ "200": {
+ "description": "The conversation analysis response.",
+ "schema": {
+ "$ref": "#/definitions/AnalyzeConversationTaskResult"
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "common.json#/definitions/ErrorResponse"
+ },
+ "headers": {
+ "x-ms-error-code": {
+ "description": "The error code for specific error that occurred.",
+ "type": "string"
+ }
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Arbitration result": {
+ "$ref": "./examples/conversations/Orchestrator_arbitration.json"
+ },
+ "Conversation project result": {
+ "$ref": "./examples/conversations/Conversation_project.json"
+ },
+ "Orchestrator direct target result": {
+ "$ref": "./examples/conversations/Orchestrator_direct_target.json"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "AnalyzeConversationTaskKind": {
+ "type": "string",
+ "description": "Enumeration of supported Conversation tasks.",
+ "enum": [
+ "CustomConversation"
+ ],
+ "x-ms-enum": {
+ "name": "AnalyzeConversationTaskKind",
+ "modelAsString": true
+ }
+ },
+ "AnalyzeConversationTaskResultsKind": {
+ "type": "string",
+ "description": "Enumeration of supported conversational task results",
+ "enum": [
+ "CustomConversationResult"
+ ],
+ "x-ms-enum": {
+ "name": "AnalyzeConversationTaskResultsKind",
+ "modelAsString": true
+ }
+ },
+ "AnalyzeConversationTask": {
+ "description": "The base class of a conversation input task.",
+ "discriminator": "kind",
+ "required": [
+ "kind"
+ ],
+ "properties": {
+ "kind": {
+ "$ref": "#/definitions/AnalyzeConversationTaskKind"
+ }
+ }
+ },
+ "AnalyzeConversationTaskResult": {
+ "description": "The base class of a conversation task result.",
+ "discriminator": "kind",
+ "required": [
+ "kind"
+ ],
+ "properties": {
+ "kind": {
+ "$ref": "#/definitions/AnalyzeConversationTaskResultsKind"
+ }
+ }
+ },
+ "CustomConversationalTask": {
+ "description": "The input for a custom conversation task.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeConversationTask"
+ }
+ ],
+ "properties": {
+ "analysisInput": {
+ "$ref": "#/definitions/ConversationAnalysisOptions"
+ },
+ "parameters": {
+ "$ref": "#/definitions/CustomConversationTaskParameters"
+ }
+ },
+ "x-ms-discriminator-value": "CustomConversation",
+ "required": [
+ "analysisInput",
+ "parameters"
+ ]
+ },
+ "CustomConversationTaskParameters": {
+ "type": "object",
+ "description": "Input parameters necessary for a CustomConversation task.",
+ "properties": {
+ "projectName": {
+ "type": "string",
+ "description": "The name of the project to use."
+ },
+ "deploymentName": {
+ "type": "string",
+ "description": "The name of the deployment to use."
+ },
+ "verbose": {
+ "type": "boolean",
+ "description": "If true, the service will return more detailed information in the response."
+ },
+ "isLoggingEnabled": {
+ "type": "boolean",
+ "description": "If true, the service will keep the query for further review."
+ },
+ "stringIndexType": {
+ "$ref": "common.json#/definitions/StringIndexType"
+ },
+ "directTarget": {
+ "type": "string",
+ "description": "The name of a target project to forward the request to."
+ },
+ "targetProjectParameters": {
+ "type": "object",
+ "description": "A dictionary representing the parameters for each target project.",
+ "additionalProperties": {
+ "$ref": "#/definitions/AnalysisParameters"
+ }
+ }
+ },
+ "required": [
+ "projectName",
+ "deploymentName"
+ ]
+ },
+ "CustomConversationalTaskResult": {
+ "description": "The results of a CustomConversation task.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeConversationTaskResult"
+ }
+ ],
+ "type": "object",
+ "properties": {
+ "results": {
+ "$ref": "#/definitions/AnalyzeConversationResult"
+ }
+ },
+ "required": [
+ "results"
+ ],
+ "x-ms-discriminator-value": "CustomConversationResult"
+ },
+ "ConversationItemBase": {
+ "type": "object",
+ "discriminator": "modality",
+ "description": "The abstract base for a user input formatted conversation (e.g., Text, Transcript).",
+ "properties": {
+ "participantId": {
+ "description": "The participant Id of a ConversationItem",
+ "type": "string"
+ },
+ "id": {
+ "description": "The Id of a ConversationItem",
+ "type": "string"
+ },
+ "language": {
+ "description": "The input language of a ConversationItem in BCP 47 language representation.",
+ "type": "string"
+ },
+ "modality": {
+ "description": "The modality (format) of ConversationItem (e.g., Text, Transcript)",
+ "type": "string",
+ "enum": [
+ "text"
+ ],
+ "x-ms-enum": {
+ "name": "modality",
+ "modelAsString": true
+ }
+ }
+ },
+ "required": [
+ "participantId",
+ "id",
+ "modality"
+ ]
+ },
+ "TextConversationItem": {
+ "description": "The text modality of an input conversation.",
+ "x-ms-discriminator-value": "text",
+ "allOf": [
+ {
+ "$ref": "#/definitions/ConversationItemBase"
+ }
+ ],
+ "properties": {
+ "text": {
+ "description": "The single input query",
+ "type": "string"
+ }
+ },
+ "required": [
+ "text"
+ ]
+ },
+ "ConversationAnalysisOptions": {
+ "type": "object",
+ "description": "The input ConversationItem and its optional parameters",
+ "required": [
+ "conversationItem"
+ ],
+ "properties": {
+ "conversationItem": {
+ "$ref": "#/definitions/ConversationItemBase"
+ }
+ }
+ },
+ "AnalysisParameters": {
+ "type": "object",
+ "description": "This is the parameter set of either the Orchestration project itself or one of the target services.",
+ "required": [
+ "targetKind"
+ ],
+ "discriminator": "targetKind",
+ "properties": {
+ "targetKind": {
+ "type": "string",
+ "description": "The type of a target service.",
+ "enum": [
+ "luis",
+ "conversation",
+ "question_answering",
+ "non_linked"
+ ],
+ "x-ms-enum": {
+ "name": "targetKind",
+ "modelAsString": true
+ }
+ },
+ "apiVersion": {
+ "type": "string",
+ "description": "The API version to use when call a specific target service."
+ }
+ }
+ },
+ "NoneLinkedTargetIntentResult": {
+ "type": "object",
+ "description": "A wrap up of non-linked intent response.",
+ "x-ms-discriminator-value": "non_linked",
+ "allOf": [
+ {
+ "$ref": "#/definitions/TargetIntentResult"
+ }
+ ],
+ "properties": {
+ "result": {
+ "$ref": "#/definitions/ConversationResult",
+ "description": "The actual response from a Conversation project."
+ }
+ }
+ },
+ "LUISParameters": {
+ "description": "This is a set of request parameters for LUIS Generally Available projects.",
+ "x-ms-discriminator-value": "luis",
+ "type": "object",
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalysisParameters"
+ }
+ ],
+ "properties": {
+ "query": {
+ "type": "string",
+ "maxLength": 500,
+ "description": "The utterance to predict."
+ },
+ "callingOptions": {
+ "type": "object",
+ "description": "This customizes how the service calls LUIS Generally Available projects.",
+ "$ref": "#/definitions/LUISCallingOptions"
+ }
+ },
+ "additionalProperties": true
+ },
+ "LUISCallingOptions": {
+ "description": "This customizes how the service calls LUIS Generally Available projects.",
+ "type": "object",
+ "properties": {
+ "verbose": {
+ "description": "Enable verbose response.",
+ "type": "boolean"
+ },
+ "log": {
+ "description": "Save log to add in training utterances later.",
+ "type": "boolean"
+ },
+ "show-all-intents": {
+ "description": "Set true to show all intents.",
+ "type": "boolean"
+ },
+ "timezoneOffset": {
+ "type": "number",
+ "description": "The timezone offset for the location of the request."
+ },
+ "spellCheck": {
+ "type": "boolean",
+ "description": "Enable spell checking."
+ },
+ "bing-spell-check-subscription-key": {
+ "description": "The subscription key to use when enabling Bing spell check",
+ "type": "string"
+ }
+ }
+ },
+ "ConversationParameters": {
+ "type": "object",
+ "description": "This is a set of request parameters for Customized Conversation projects.",
+ "x-ms-discriminator-value": "conversation",
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalysisParameters"
+ }
+ ],
+ "properties": {
+ "callingOptions": {
+ "type": "object",
+ "$ref": "#/definitions/ConversationCallingOptions"
+ }
+ }
+ },
+ "ConversationCallingOptions": {
+ "type": "object",
+ "description": "The option to set to call a Conversation project.",
+ "properties": {
+ "language": {
+ "description": "The language of the query in BCP 47 language representation..",
+ "type": "string"
+ },
+ "verbose": {
+ "description": "If true, the service will return more detailed information.",
+ "type": "boolean"
+ },
+ "isLoggingEnabled": {
+ "description": "If true, the query will be saved for customers to further review in authoring, to improve the model quality.",
+ "type": "boolean"
+ }
+ }
+ },
+ "QuestionAnsweringParameters": {
+ "type": "object",
+ "description": "This is a set of request parameters for Question Answering knowledge bases.",
+ "x-ms-discriminator-value": "question_answering",
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalysisParameters"
+ }
+ ],
+ "properties": {
+ "callingOptions": {
+ "type": "object",
+ "description": "The options sent to a Question Answering KB."
+ }
+ }
+ },
+ "AnalyzeConversationResult": {
+ "type": "object",
+ "description": "Represents a conversation analysis response.",
+ "required": [
+ "query",
+ "prediction"
+ ],
+ "properties": {
+ "query": {
+ "type": "string",
+ "description": "The conversation utterance given by the caller."
+ },
+ "detectedLanguage": {
+ "type": "string",
+ "description": "The system detected language for the query in BCP 47 language representation.."
+ },
+ "prediction": {
+ "description": "The prediction result of a conversation project.",
+ "$ref": "#/definitions/BasePrediction"
+ }
+ }
+ },
+ "BasePrediction": {
+ "type": "object",
+ "description": "This is the base class of prediction",
+ "required": [
+ "projectKind"
+ ],
+ "discriminator": "projectKind",
+ "properties": {
+ "projectKind": {
+ "type": "string",
+ "description": "The type of the project.",
+ "enum": [
+ "conversation",
+ "workflow"
+ ],
+ "x-ms-enum": {
+ "name": "projectKind",
+ "modelAsString": true
+ }
+ },
+ "topIntent": {
+ "type": "string",
+ "description": "The intent with the highest score."
+ }
+ }
+ },
+ "OrchestratorPrediction": {
+ "type": "object",
+ "description": "This represents the prediction result of an Orchestrator project.",
+ "x-ms-discriminator-value": "workflow",
+ "required": [
+ "intents"
+ ],
+ "allOf": [
+ {
+ "$ref": "#/definitions/BasePrediction"
+ }
+ ],
+ "properties": {
+ "intents": {
+ "description": "A dictionary that contains all intents. A key is an intent name and a value is its confidence score and target type. The top intent's value also contains the actual response from the target project.",
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/TargetIntentResult"
+ }
+ }
+ }
+ },
+ "TargetIntentResult": {
+ "type": "object",
+ "description": "This is the base class of an intent prediction",
+ "discriminator": "targetKind",
+ "required": [
+ "confidenceScore",
+ "targetKind"
+ ],
+ "properties": {
+ "targetKind": {
+ "type": "string",
+ "description": "This discriminator property specifies the type of the target project that returns the response.",
+ "enum": [
+ "luis",
+ "conversation",
+ "question_answering",
+ "non_linked"
+ ],
+ "x-ms-enum": {
+ "name": "targetKind",
+ "modelAsString": true
+ }
+ },
+ "apiVersion": {
+ "type": "string",
+ "description": "The API version used to call a target service."
+ },
+ "confidenceScore": {
+ "type": "number",
+ "format": "double",
+ "x-ms-client-name": "confidence",
+ "description": "The prediction score and it ranges from 0.0 to 1.0.",
+ "minimum": 0,
+ "maximum": 1
+ }
+ }
+ },
+ "ConversationTargetIntentResult": {
+ "type": "object",
+ "description": "A wrap up of Conversation project response.",
+ "x-ms-discriminator-value": "conversation",
+ "allOf": [
+ {
+ "$ref": "#/definitions/TargetIntentResult"
+ }
+ ],
+ "properties": {
+ "result": {
+ "type": "object",
+ "$ref": "#/definitions/ConversationResult",
+ "description": "The actual response from a Conversation project."
+ }
+ }
+ },
+ "ConversationResult": {
+ "type": "object",
+ "description": "The response returned by a Conversation project.",
+ "required": [
+ "query",
+ "prediction"
+ ],
+ "properties": {
+ "query": {
+ "description": "The same query given in request.",
+ "type": "string"
+ },
+ "detectedLanguage": {
+ "description": "The detected language from the query in BCP 47 language representation..",
+ "type": "string"
+ },
+ "prediction": {
+ "description": "The predicted result for the query.",
+ "$ref": "#/definitions/ConversationPrediction"
+ }
+ }
+ },
+ "ConversationPrediction": {
+ "type": "object",
+ "description": "Represents the prediction section of a Conversation project.",
+ "x-ms-discriminator-value": "conversation",
+ "required": [
+ "intents",
+ "entities"
+ ],
+ "allOf": [
+ {
+ "$ref": "#/definitions/BasePrediction"
+ }
+ ],
+ "properties": {
+ "intents": {
+ "description": "The intent classification results.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ConversationIntent"
+ }
+ },
+ "entities": {
+ "description": "The entity extraction results.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ConversationEntity"
+ }
+ }
+ }
+ },
+ "ConversationIntent": {
+ "type": "object",
+ "description": "The intent classification result of a Conversation project.",
+ "required": [
+ "category",
+ "confidenceScore"
+ ],
+ "properties": {
+ "category": {
+ "description": "A predicted class.",
+ "type": "string"
+ },
+ "confidenceScore": {
+ "format": "float",
+ "x-ms-client-name": "confidence",
+ "description": "The confidence score of the class from 0.0 to 1.0.",
+ "type": "number",
+ "minimum": 0,
+ "maximum": 1
+ }
+ }
+ },
+ "ConversationEntity": {
+ "type": "object",
+ "description": "The entity extraction result of a Conversation project.",
+ "required": [
+ "category",
+ "text",
+ "offset",
+ "length",
+ "confidenceScore"
+ ],
+ "properties": {
+ "category": {
+ "description": "The entity category.",
+ "type": "string"
+ },
+ "text": {
+ "description": "The predicted entity text.",
+ "type": "string"
+ },
+ "offset": {
+ "format": "int32",
+ "description": "The starting index of this entity in the query.",
+ "type": "integer"
+ },
+ "length": {
+ "format": "int32",
+ "description": "The length of the text.",
+ "type": "integer"
+ },
+ "confidenceScore": {
+ "format": "float",
+ "x-ms-client-name": "confidence",
+ "description": "The entity confidence score.",
+ "type": "number"
+ },
+ "resolutions": {
+ "description": "The collection of entity resolution objects.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/BaseResolution"
+ }
+ },
+ "extraInformation": {
+ "description": "The collection of entity extra information objects.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/BaseExtraInformation"
+ }
+ }
+ }
+ },
+ "BaseExtraInformation": {
+ "description": "The abstract base object for entity extra information.",
+ "type": "object",
+ "discriminator": "extraInformationKind",
+ "properties": {
+ "extraInformationKind": {
+ "description": "The extra information object kind.",
+ "type": "string",
+ "enum": [
+ "EntitySubtype",
+ "ListKey"
+ ],
+ "x-ms-enum": {
+ "name": "ExtraInformationKind",
+ "modelAsString": true
+ }
+ }
+ },
+ "required": [
+ "extraInformationKind"
+ ]
+ },
+ "EntitySubtype": {
+ "description": "The concrete entity Subtype model of extra information.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/BaseExtraInformation"
+ }
+ ],
+ "type": "object",
+ "x-ms-discriminator-value": "EntitySubtype",
+ "properties": {
+ "value": {
+ "type": "string",
+ "description": "The Subtype of an extracted entity type."
+ }
+ }
+ },
+ "ListKey": {
+ "description": "The list key extra data kind.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/BaseExtraInformation"
+ }
+ ],
+ "type": "object",
+ "x-ms-discriminator-value": "ListKey",
+ "properties": {
+ "key": {
+ "type": "string",
+ "description": "The canonical form of the extracted entity."
+ }
+ }
+ },
+ "BaseResolution": {
+ "description": "The abstract base class for entity resolutions.",
+ "type": "object",
+ "discriminator": "resolutionKind",
+ "properties": {
+ "resolutionKind": {
+ "description": "The entity resolution object kind.",
+ "type": "string",
+ "enum": [
+ "Boolean",
+ "DateTime",
+ "Number",
+ "Ordinal",
+ "Speed",
+ "Weight",
+ "Length",
+ "Volume",
+ "Area",
+ "Age",
+ "Information",
+ "Temperature",
+ "Currency",
+ "NumericRange",
+ "TemporalSpan"
+ ],
+ "x-ms-enum": {
+ "name": "ResolutionKind",
+ "modelAsString": true
+ }
+ }
+ },
+ "required": [
+ "resolutionKind"
+ ]
+ },
+ "QuantityResolution": {
+ "description": "represents resolutions for quantities.",
+ "type": "object",
+ "properties": {
+ "value": {
+ "type": "number",
+ "format": "double",
+ "description": "The numeric value that the extracted text denotes."
+ }
+ },
+ "required": [
+ "value"
+ ]
+ },
+ "AgeResolution": {
+ "description": "Represents the Age entity resolution model.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/BaseResolution"
+ },
+ {
+ "$ref": "#/definitions/QuantityResolution"
+ }
+ ],
+ "type": "object",
+ "x-ms-discriminator-value": "Age",
+ "properties": {
+ "unit": {
+ "type": "string",
+ "enum": [
+ "Unspecified",
+ "Year",
+ "Month",
+ "Week",
+ "Day"
+ ],
+ "x-ms-enum": {
+ "name": "AgeUnit",
+ "modelAsString": true
+ },
+ "description": "The Age Unit of measurement"
+ }
+ },
+ "required": [
+ "unit"
+ ]
+ },
+ "VolumeResolution": {
+ "description": "Represents the volume entity resolution model.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/BaseResolution"
+ },
+ {
+ "$ref": "#/definitions/QuantityResolution"
+ }
+ ],
+ "type": "object",
+ "x-ms-discriminator-value": "Volume",
+ "properties": {
+ "unit": {
+ "type": "string",
+ "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
+ },
+ "description": "The Volume Unit of measurement"
+ }
+ },
+ "required": [
+ "unit"
+ ]
+ },
+ "SpeedResolution": {
+ "description": "Represents the speed entity resolution model.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/BaseResolution"
+ },
+ {
+ "$ref": "#/definitions/QuantityResolution"
+ }
+ ],
+ "type": "object",
+ "x-ms-discriminator-value": "Speed",
+ "properties": {
+ "unit": {
+ "type": "string",
+ "enum": [
+ "Unspecified",
+ "MetersPerSecond",
+ "KilometersPerHour",
+ "KilometersPerMinute",
+ "KilometersPerSecond",
+ "MilesPerHour",
+ "Knot",
+ "FootPerSecond",
+ "FootPerMinute",
+ "YardsPerMinute",
+ "YardsPerSecond",
+ "MetersPerMillisecond",
+ "CentimetersPerMillisecond",
+ "KilometersPerMillisecond"
+ ],
+ "x-ms-enum": {
+ "name": "SpeedUnit",
+ "modelAsString": true
+ },
+ "description": "The speed Unit of measurement"
+ }
+ },
+ "required": [
+ "unit"
+ ]
+ },
+ "AreaResolution": {
+ "description": "Represents the area entity resolution model.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/BaseResolution"
+ },
+ {
+ "$ref": "#/definitions/QuantityResolution"
+ }
+ ],
+ "type": "object",
+ "x-ms-discriminator-value": "Area",
+ "properties": {
+ "unit": {
+ "type": "string",
+ "enum": [
+ "Unspecified",
+ "SquareKilometer",
+ "SquareHectometer",
+ "SquareDecameter",
+ "SquareDecimeter",
+ "SquareMeter",
+ "SquareCentimeter",
+ "SquareMillimeter",
+ "SquareInch",
+ "SquareFoot",
+ "SquareMile",
+ "SquareYard",
+ "Acre"
+ ],
+ "x-ms-enum": {
+ "name": "AreaUnit",
+ "modelAsString": true
+ },
+ "description": "The area Unit of measurement"
+ }
+ },
+ "required": [
+ "unit"
+ ]
+ },
+ "LengthResolution": {
+ "description": "Represents the length entity resolution model.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/BaseResolution"
+ },
+ {
+ "$ref": "#/definitions/QuantityResolution"
+ }
+ ],
+ "type": "object",
+ "x-ms-discriminator-value": "Length",
+ "properties": {
+ "unit": {
+ "type": "string",
+ "enum": [
+ "Unspecified",
+ "Kilometer",
+ "Hectometer",
+ "Decameter",
+ "Meter",
+ "Decimeter",
+ "Centimeter",
+ "Millimeter",
+ "Micrometer",
+ "Nanometer",
+ "Picometer",
+ "Mile",
+ "Yard",
+ "Inch",
+ "Foot",
+ "LightYear",
+ "Pt"
+ ],
+ "x-ms-enum": {
+ "name": "LengthUnit",
+ "modelAsString": true
+ },
+ "description": "The length Unit of measurement"
+ }
+ },
+ "required": [
+ "unit"
+ ]
+ },
+ "InformationResolution": {
+ "description": "Represents the information (data) entity resolution model.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/BaseResolution"
+ },
+ {
+ "$ref": "#/definitions/QuantityResolution"
+ }
+ ],
+ "type": "object",
+ "x-ms-discriminator-value": "Information",
+ "properties": {
+ "unit": {
+ "type": "string",
+ "enum": [
+ "Unspecified",
+ "Bit",
+ "Kilobit",
+ "Megabit",
+ "Gigabit",
+ "Terabit",
+ "Petabit",
+ "Byte",
+ "Kilobyte",
+ "Megabyte",
+ "Gigabyte",
+ "Terabyte",
+ "Petabyte"
+ ],
+ "x-ms-enum": {
+ "name": "InformationUnit",
+ "modelAsString": true
+ },
+ "description": "The information (data) Unit of measurement."
+ }
+ },
+ "required": [
+ "unit"
+ ]
+ },
+ "TemperatureResolution": {
+ "description": "Represents the temperature entity resolution model.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/BaseResolution"
+ },
+ {
+ "$ref": "#/definitions/QuantityResolution"
+ }
+ ],
+ "type": "object",
+ "x-ms-discriminator-value": "Temperature",
+ "properties": {
+ "unit": {
+ "type": "string",
+ "enum": [
+ "Unspecified",
+ "Fahrenheit",
+ "Kelvin",
+ "Rankine",
+ "Celsius"
+ ],
+ "x-ms-enum": {
+ "name": "TemperatureUnit",
+ "modelAsString": true
+ },
+ "description": "The temperature Unit of measurement."
+ }
+ },
+ "required": [
+ "unit"
+ ]
+ },
+ "WeightResolution": {
+ "description": "Represents the weight entity resolution model.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/BaseResolution"
+ },
+ {
+ "$ref": "#/definitions/QuantityResolution"
+ }
+ ],
+ "type": "object",
+ "x-ms-discriminator-value": "Weight",
+ "properties": {
+ "unit": {
+ "type": "string",
+ "enum": [
+ "Unspecified",
+ "Kilogram",
+ "Gram",
+ "Milligram",
+ "Gallon",
+ "MetricTon",
+ "Ton",
+ "Pound",
+ "Ounce",
+ "Grain",
+ "PennyWeight",
+ "LongTonBritish",
+ "ShortTonUS",
+ "ShortHundredWeightUS",
+ "Stone",
+ "Dram"
+ ],
+ "x-ms-enum": {
+ "name": "WeightUnit",
+ "modelAsString": true
+ },
+ "description": "The weight Unit of measurement."
+ }
+ },
+ "required": [
+ "unit"
+ ]
+ },
+ "CurrencyResolution": {
+ "description": "Represents the currency entity resolution model.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/BaseResolution"
+ },
+ {
+ "$ref": "#/definitions/QuantityResolution"
+ }
+ ],
+ "type": "object",
+ "x-ms-discriminator-value": "Currency",
+ "properties": {
+ "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."
+ },
+ "value": {
+ "type": "number",
+ "format": "double",
+ "description": "The money amount captured in the extracted entity"
+ },
+ "unit": {
+ "type": "string",
+ "description": "The unit of the amount captured in the extracted entity"
+ }
+ },
+ "required": [
+ "value",
+ "unit"
+ ]
+ },
+ "BooleanResolution": {
+ "description": "A resolution for boolean expressions",
+ "allOf": [
+ {
+ "$ref": "#/definitions/BaseResolution"
+ }
+ ],
+ "type": "object",
+ "x-ms-discriminator-value": "Boolean",
+ "properties": {
+ "value": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "value"
+ ]
+ },
+ "DateTimeResolution": {
+ "description": "A resolution for datetime entity instances.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/BaseResolution"
+ }
+ ],
+ "type": "object",
+ "x-ms-discriminator-value": "DateTime",
+ "properties": {
+ "timex": {
+ "$ref": "#/definitions/TimeExpression"
+ },
+ "dateTimeSubKind": {
+ "type": "string",
+ "enum": [
+ "Time",
+ "Date",
+ "DateTime",
+ "Duration",
+ "Set"
+ ],
+ "x-ms-enum": {
+ "name": "DateTimeSubKind",
+ "modelAsString": true
+ },
+ "description": "The DateTime SubKind"
+ },
+ "value": {
+ "type": "string",
+ "description": "The actual time that the extracted text denote."
+ },
+ "modifier": {
+ "$ref": "#/definitions/TemporalModifier"
+ }
+ },
+ "required": [
+ "timex",
+ "dateTimeSubKind",
+ "value"
+ ]
+ },
+ "NumberResolution": {
+ "description": "A resolution for numeric entity instances.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/BaseResolution"
+ }
+ ],
+ "type": "object",
+ "x-ms-discriminator-value": "Number",
+ "properties": {
+ "numberKind": {
+ "type": "string",
+ "enum": [
+ "Integer",
+ "Decimal",
+ "Power",
+ "Fraction",
+ "Percent",
+ "Unspecified"
+ ],
+ "x-ms-enum": {
+ "name": "NumberKind",
+ "modelAsString": true
+ },
+ "description": "The type of the extracted number entity."
+ },
+ "value": {
+ "type": "string",
+ "description": "A numeric representation of what the extracted text denotes."
+ }
+ },
+ "required": [
+ "numberKind",
+ "value"
+ ]
+ },
+ "OrdinalResolution": {
+ "description": "A resolution for ordinal numbers entity instances.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/BaseResolution"
+ }
+ ],
+ "type": "object",
+ "x-ms-discriminator-value": "Ordinal",
+ "properties": {
+ "offset": {
+ "type": "string",
+ "description": "The offset With respect to the reference (e.g., offset = -1 in \"show me the second to last\""
+ },
+ "relativeTo": {
+ "type": "string",
+ "enum": [
+ "Current",
+ "End",
+ "Start"
+ ],
+ "x-ms-enum": {
+ "name": "RelativeTo",
+ "modelAsString": true
+ },
+ "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"
+ ]
+ },
+ "TemporalSpanResolution": {
+ "description": "represents the resolution of a date and/or time span.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/BaseResolution"
+ }
+ ],
+ "type": "object",
+ "x-ms-discriminator-value": "TemporalSpan",
+ "properties": {
+ "begin": {
+ "$ref": "#/definitions/TimeExpression"
+ },
+ "end": {
+ "$ref": "#/definitions/TimeExpression"
+ },
+ "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"
+ }
+ }
+ },
+ "NumericRangeResolution": {
+ "description": "represents the resolution of numeric intervals.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/BaseResolution"
+ }
+ ],
+ "type": "object",
+ "x-ms-discriminator-value": "NumericRange",
+ "properties": {
+ "rangeKind": {
+ "type": "string",
+ "enum": [
+ "Number",
+ "Speed",
+ "Weight",
+ "Length",
+ "Volume",
+ "Area",
+ "Age",
+ "Information",
+ "Temperature",
+ "Currency"
+ ],
+ "x-ms-enum": {
+ "name": "RangeKind",
+ "modelAsString": true
+ },
+ "description": "The kind of range that the resolution object represents."
+ },
+ "minimum": {
+ "type": "number",
+ "format": "double",
+ "description": "The beginning value of the interval."
+ },
+ "maximum": {
+ "type": "number",
+ "format": "double",
+ "description": "The ending value of the interval."
+ }
+ },
+ "required": [
+ "rangeKind",
+ "minimum",
+ "maximum"
+ ]
+ },
+ "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": "Modifier",
+ "modelAsString": true
+ }
+ },
+ "TimeExpression": {
+ "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)"
+ },
+ "LUISTargetIntentResult": {
+ "type": "object",
+ "description": "It is a wrap up of LUIS Generally Available response.",
+ "x-ms-discriminator-value": "luis",
+ "allOf": [
+ {
+ "$ref": "#/definitions/TargetIntentResult"
+ }
+ ],
+ "properties": {
+ "result": {
+ "type": "object",
+ "description": "The actual response from a LUIS Generally Available application."
+ }
+ }
+ },
+ "QuestionAnsweringTargetIntentResult": {
+ "type": "object",
+ "description": "It is a wrap up a Question Answering KB response.",
+ "x-ms-discriminator-value": "question_answering",
+ "allOf": [
+ {
+ "$ref": "#/definitions/TargetIntentResult"
+ }
+ ],
+ "properties": {
+ "result": {
+ "type": "object",
+ "$ref": "../2021-07-15-preview/questionanswering.json#/definitions/KnowledgeBaseAnswers",
+ "description": "The generated answer by a Question Answering KB."
+ }
+ }
+ }
+ },
+ "parameters": {
+ "ConversationAnalysisOptions": {
+ "name": "ConversationAnalysisOptions",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/ConversationAnalysisOptions"
+ },
+ "description": "Post body of the request.",
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/common.json b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/common.json
new file mode 100644
index 000000000000..4e07e508b914
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/common.json
@@ -0,0 +1,248 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Microsoft Cognitive Language Service",
+ "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://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview.",
+ "version": "2022-03-01-preview"
+ },
+ "paths": {},
+ "definitions": {
+ "ErrorResponse": {
+ "type": "object",
+ "description": "Error response.",
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "description": "The error object.",
+ "$ref": "#/definitions/Error"
+ }
+ },
+ "required": [
+ "error"
+ ]
+ },
+ "Error": {
+ "type": "object",
+ "description": "The error object.",
+ "additionalProperties": true,
+ "required": [
+ "code",
+ "message"
+ ],
+ "properties": {
+ "code": {
+ "description": "One of a server-defined set of error codes.",
+ "$ref": "#/definitions/ErrorCode"
+ },
+ "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": {
+ "description": "An object containing more specific information than the current object about the error.",
+ "$ref": "#/definitions/InnerErrorModel"
+ }
+ }
+ },
+ "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.",
+ "additionalProperties": false,
+ "required": [
+ "code",
+ "message"
+ ],
+ "properties": {
+ "code": {
+ "description": "One of a server-defined set of error codes.",
+ "$ref": "#/definitions/InnerErrorCode"
+ },
+ "message": {
+ "type": "string",
+ "description": "Error message."
+ },
+ "details": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Error details."
+ },
+ "target": {
+ "type": "string",
+ "description": "Error target."
+ },
+ "innererror": {
+ "description": "An object containing more specific information than the current object about the error.",
+ "$ref": "#/definitions/InnerErrorModel"
+ }
+ }
+ },
+ "ErrorCode": {
+ "type": "string",
+ "description": "Human-readable error code.",
+ "x-ms-enum": {
+ "name": "ErrorCode",
+ "modelAsString": true
+ },
+ "enum": [
+ "InvalidRequest",
+ "InvalidArgument",
+ "Unauthorized",
+ "Forbidden",
+ "NotFound",
+ "ProjectNotFound",
+ "OperationNotFound",
+ "AzureCognitiveSearchNotFound",
+ "AzureCognitiveSearchIndexNotFound",
+ "TooManyRequests",
+ "AzureCognitiveSearchThrottling",
+ "AzureCognitiveSearchIndexLimitReached",
+ "InternalServerError",
+ "ServiceUnavailable"
+ ]
+ },
+ "InnerErrorCode": {
+ "type": "string",
+ "description": "Human-readable error code.",
+ "x-ms-enum": {
+ "name": "InnerErrorCode",
+ "modelAsString": true
+ },
+ "enum": [
+ "InvalidRequest",
+ "InvalidParameterValue",
+ "KnowledgeBaseNotFound",
+ "AzureCognitiveSearchNotFound",
+ "AzureCognitiveSearchThrottling",
+ "ExtractionFailure",
+ "InvalidRequestBodyFormat",
+ "EmptyRequest",
+ "MissingInputDocuments",
+ "InvalidDocument",
+ "ModelVersionIncorrect",
+ "InvalidDocumentBatch",
+ "UnsupportedLanguageCode",
+ "InvalidCountryHint"
+ ]
+ },
+ "Language": {
+ "type": "string",
+ "description": "Language of the text records. This is BCP-47 representation of a language. For example, use \"en\" for English; \"es\" for Spanish etc. If not set, use \"en\" for English as default."
+ },
+ "StringIndexType": {
+ "type": "string",
+ "description": "Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets.",
+ "default": "TextElements_v8",
+ "enum": [
+ "TextElements_v8",
+ "UnicodeCodePoint",
+ "Utf16CodeUnit"
+ ],
+ "x-ms-enum": {
+ "name": "StringIndexType",
+ "modelAsString": true,
+ "values": [
+ {
+ "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."
+ },
+ {
+ "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."
+ },
+ {
+ "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."
+ }
+ ]
+ }
+ }
+ },
+ "parameters": {
+ "Endpoint": {
+ "name": "Endpoint",
+ "description": "Supported Cognitive Services endpoint (e.g., https://.api.cognitiveservices.azure.com).",
+ "x-ms-parameter-location": "client",
+ "required": true,
+ "type": "string",
+ "in": "path",
+ "x-ms-skip-url-encoding": true
+ },
+ "ProjectNameQueryParameter": {
+ "name": "projectName",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "The name of the project to use.",
+ "x-ms-parameter-location": "method"
+ },
+ "ProjectNamePathParameter": {
+ "name": "projectName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "maxLength": 100,
+ "description": "The name of the project to use.",
+ "x-ms-parameter-location": "method"
+ },
+ "DeploymentNameQueryParameter": {
+ "name": "deploymentName",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "The name of the specific deployment of the project to use.",
+ "x-ms-parameter-location": "method"
+ },
+ "DeploymentNamePathParameter": {
+ "name": "deploymentName",
+ "in": "path",
+ "required": true,
+ "type": "string",
+ "description": "The name of the specific deployment of the project to use.",
+ "x-ms-parameter-location": "method"
+ },
+ "ApiVersionParameter": {
+ "name": "api-version",
+ "in": "query",
+ "required": true,
+ "type": "string",
+ "description": "Client API version."
+ },
+ "TopParameter": {
+ "name": "top",
+ "in": "query",
+ "description": "The maximum number of resources to return from the collection.",
+ "type": "integer",
+ "format": "int32",
+ "x-ms-parameter-location": "method"
+ },
+ "SkipParameter": {
+ "name": "skip",
+ "in": "query",
+ "description": "An offset into the collection of the first resource to be returned.",
+ "type": "integer",
+ "format": "int32",
+ "x-ms-parameter-location": "method"
+ },
+ "MaxPageSizeParameter": {
+ "name": "maxpagesize",
+ "in": "query",
+ "description": "The maximum number of resources to include in a single response.",
+ "type": "integer",
+ "format": "int32",
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulAnalyzeTextJobsCancelRequest.json b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulAnalyzeTextJobsCancelRequest.json
new file mode 100644
index 000000000000..06b3dbf3eaf6
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulAnalyzeTextJobsCancelRequest.json
@@ -0,0 +1,15 @@
+{
+ "parameters": {
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "ApiVersion": "2022-03-01-preview",
+ "Endpoint": "{Endpoint}",
+ "jobId": "c0f2a446-05d9-48fc-ba8f-3ef4af8d0b18"
+ },
+ "responses": {
+ "202": {
+ "headers": {
+ "Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}?api-version=2022-03-01-preview"
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json
new file mode 100644
index 000000000000..10023beba7fc
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json
@@ -0,0 +1,131 @@
+{
+ "parameters": {
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "api-version": "2022-03-01-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",
+ "lastUpdateDateTime": "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",
+ "confidenceScore": 0.61,
+ "length": 4,
+ "offset": 18,
+ "text": "trip"
+ },
+ {
+ "category": "Location",
+ "confidenceScore": 0.82,
+ "length": 7,
+ "offset": 26,
+ "subcategory": "GPE",
+ "text": "Seattle"
+ },
+ {
+ "category": "DateTime",
+ "confidenceScore": 0.8,
+ "length": 9,
+ "offset": 34,
+ "subcategory": "DateRange",
+ "text": "last week"
+ }
+ ],
+ "id": "1",
+ "warnings": []
+ },
+ {
+ "entities": [
+ {
+ "category": "Location",
+ "confidenceScore": 0.52,
+ "length": 3,
+ "offset": 14,
+ "subcategory": "GPE",
+ "text": "NYC"
+ },
+ {
+ "category": "DateTime",
+ "confidenceScore": 0.8,
+ "length": 8,
+ "offset": 18,
+ "subcategory": "Date",
+ "text": "tomorrow"
+ }
+ ],
+ "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/Language/preview/2022-03-01-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json
new file mode 100644
index 000000000000..54a7ead22202
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json
@@ -0,0 +1,49 @@
+{
+ "parameters": {
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "api-version": "2022-03-01-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}"
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulEntityLinkingRequest.json b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulEntityLinkingRequest.json
new file mode 100644
index 000000000000..97a03f6b48a0
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulEntityLinkingRequest.json
@@ -0,0 +1,128 @@
+{
+ "parameters": {
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "api-version": "2022-03-01-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/Language/preview/2022-03-01-preview/examples/SuccessfulEntityRecognitionRequest.json b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulEntityRecognitionRequest.json
new file mode 100644
index 000000000000..ff33bc7851fe
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulEntityRecognitionRequest.json
@@ -0,0 +1,82 @@
+{
+ "parameters": {
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "api-version": "2022-03-01-preview",
+ "Endpoint": "{Endpoint}",
+ "body": {
+ "kind": "EntityRecognition",
+ "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": "EntityRecognitionResults",
+ "results": {
+ "documents": [
+ {
+ "entities": [
+ {
+ "category": "Organization",
+ "confidenceScore": 0.84,
+ "length": 9,
+ "offset": 0,
+ "text": "Microsoft"
+ },
+ {
+ "category": "Person",
+ "confidenceScore": 0.85,
+ "length": 10,
+ "offset": 25,
+ "text": "Bill Gates"
+ },
+ {
+ "category": "Person",
+ "confidenceScore": 0.9,
+ "length": 10,
+ "offset": 40,
+ "text": "Paul Allen"
+ }
+ ],
+ "id": "1",
+ "warnings": []
+ },
+ {
+ "entities": [
+ {
+ "category": "Location",
+ "confidenceScore": 0.55,
+ "length": 7,
+ "offset": 33,
+ "subcategory": "GPE",
+ "text": "Seattle"
+ }
+ ],
+ "id": "2",
+ "warnings": []
+ }
+ ],
+ "errors": [],
+ "modelVersion": "2020-04-01"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulKeyPhraseExtractionRequest.json b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulKeyPhraseExtractionRequest.json
new file mode 100644
index 000000000000..3dc676d2131f
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulKeyPhraseExtractionRequest.json
@@ -0,0 +1,71 @@
+{
+ "parameters": {
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "api-version": "2022-03-01-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": "2019-10-01"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulLanguageDetectionRequest.json b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulLanguageDetectionRequest.json
new file mode 100644
index 000000000000..6f497da543a7
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulLanguageDetectionRequest.json
@@ -0,0 +1,70 @@
+{
+ "parameters": {
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "api-version": "2022-03-01-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"
+ }
+ ]
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "kind": "LanguageDetectionResults",
+ "results": {
+ "documents": [
+ {
+ "detectedLanguage": {
+ "confidenceScore": 1,
+ "iso6391Name": "en",
+ "name": "English"
+ },
+ "id": "1",
+ "warnings": []
+ },
+ {
+ "detectedLanguage": {
+ "confidenceScore": 1,
+ "iso6391Name": "fr",
+ "name": "French"
+ },
+ "id": "2",
+ "warnings": []
+ },
+ {
+ "detectedLanguage": {
+ "confidenceScore": 1,
+ "iso6391Name": "es",
+ "name": "Spanish"
+ },
+ "id": "3",
+ "warnings": []
+ }
+ ],
+ "errors": [],
+ "modelVersion": "2020-04-01"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulPiiEntityRecognitionRequest.json b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulPiiEntityRecognitionRequest.json
new file mode 100644
index 000000000000..9c644f773fb8
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulPiiEntityRecognitionRequest.json
@@ -0,0 +1,88 @@
+{
+ "parameters": {
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "api-version": "2022-03-01-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": "U.S. Social Security Number (SSN)",
+ "confidenceScore": 0.65,
+ "length": 11,
+ "offset": 28,
+ "text": "859-98-0987"
+ }
+ ],
+ "warnings": []
+ },
+ {
+ "id": "2",
+ "redactedText": "Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.",
+ "entities": [
+ {
+ "category": "ABA Routing Number",
+ "confidenceScore": 0.75,
+ "length": 9,
+ "offset": 18,
+ "text": "111000025"
+ }
+ ],
+ "warnings": []
+ },
+ {
+ "id": "3",
+ "redactedText": "Is ************** your Brazilian CPF number?",
+ "entities": [
+ {
+ "category": "Brazil CPF Number",
+ "confidenceScore": 0.85,
+ "length": 14,
+ "offset": 3,
+ "text": "998.214.865-68"
+ }
+ ],
+ "warnings": []
+ }
+ ],
+ "errors": [],
+ "modelVersion": "2019-10-01"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulSentimentAnalysisRequest.json b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulSentimentAnalysisRequest.json
new file mode 100644
index 000000000000..9feb2d4cc123
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/SuccessfulSentimentAnalysisRequest.json
@@ -0,0 +1,148 @@
+{
+ "parameters": {
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "api-version": "2022-03-01-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": "2020-04-01"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/conversations/Conversation_project.json b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/conversations/Conversation_project.json
new file mode 100644
index 000000000000..b9b1fa7767f1
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/conversations/Conversation_project.json
@@ -0,0 +1,66 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "Content-Type": "application/json",
+ "api-version": "2022-03-01-preview",
+ "body": {
+ "kind": "CustomConversation",
+ "analysisInput": {
+ "conversationItem": {
+ "language": "en-GB",
+ "text": "play a song from Phil Collins",
+ "participantId": "1",
+ "modality": "text",
+ "id": "1"
+ }
+ },
+ "parameters": {
+ "projectName": "{project-name}",
+ "deploymentName": "{deployment-name}",
+ "verbose": true,
+ "isLoggingEnabled": false,
+ "stringIndexType": "TextElement_V8"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "kind": "CustomConversationResult",
+ "results": {
+ "query": "play In the air tonight from Phil Collins",
+ "detectedLanguage": "en",
+ "prediction": {
+ "topIntent": "PlayMusic",
+ "projectKind": "conversation",
+ "intents": [
+ {
+ "category": "PlayMusic",
+ "confidenceScore": 1
+ },
+ {
+ "category": "SearchCreativeWork",
+ "confidenceScore": 0
+ },
+ {
+ "category": "AddToPlaylist",
+ "confidenceScore": 0
+ }
+ ],
+ "entities": [
+ {
+ "category": "Media.Artist",
+ "text": "Phil Collins",
+ "offset": 29,
+ "length": 12,
+ "confidenceScore": 1
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/conversations/Orchestrator_arbitration.json b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/conversations/Orchestrator_arbitration.json
new file mode 100644
index 000000000000..b7ab6102a15a
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/conversations/Orchestrator_arbitration.json
@@ -0,0 +1,79 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "Content-Type": "application/json",
+ "api-version": "2022-03-01-preview",
+ "body": {
+ "kind": "CustomConversation",
+ "analysisInput": {
+ "conversationItem": {
+ "participantId": "1",
+ "id": "1",
+ "modality": "text",
+ "language": "en-GB",
+ "text": "How do I integrate QnA Maker and LUIS?"
+ }
+ },
+ "parameters": {
+ "projectName": "{project-name}",
+ "deploymentName": "{deployment-name}",
+ "verbose": true,
+ "isLoggingEnabled": false,
+ "stringIndexType": "TextElement_V8"
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "kind": "CustomConversationResult",
+ "results": {
+ "query": "trains from London",
+ "prediction": {
+ "topIntent": "Rail",
+ "projectKind": "workflow",
+ "intents": {
+ "Rail": {
+ "confidenceScore": 1,
+ "targetKind": "conversation",
+ "apiVersion": null,
+ "result": {
+ "query": "trains from London",
+ "prediction": {
+ "intents": [
+ {
+ "category": "Timetable",
+ "confidenceScore": 0.99968535
+ },
+ {
+ "category": "Locomotive",
+ "confidenceScore": 0.000314623
+ }
+ ],
+ "entities": [],
+ "topIntent": "Timetable",
+ "projectKind": "conversation"
+ }
+ }
+ },
+ "Tree": {
+ "confidenceScore": 0.2641529,
+ "targetKind": "conversation",
+ "apiVersion": null,
+ "result": null
+ },
+ "None": {
+ "confidenceScore": 0,
+ "targetKind": "non_linked",
+ "apiVersion": null,
+ "result": null
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/conversations/Orchestrator_direct_target.json b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/conversations/Orchestrator_direct_target.json
new file mode 100644
index 000000000000..da7f68136621
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/examples/conversations/Orchestrator_direct_target.json
@@ -0,0 +1,113 @@
+{
+ "parameters": {
+ "Endpoint": "{Endpoint}",
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "Content-Type": "application/json",
+ "api-version": "2021-11-01-preview",
+ "body": {
+ "kind": "CustomConversation",
+ "analysisInput": {
+ "conversationItem": {
+ "language": "en-GB",
+ "text": "play a song from Phil Collins",
+ "participantId": "1",
+ "modality": "text",
+ "id": "1"
+ }
+ },
+ "parameters": {
+ "projectName": "prj1",
+ "deploymentName": "dep1",
+ "isLoggingEnabled": false,
+ "verbose": true,
+ "stringIndexType": "TextElement_V8",
+ "directTarget": "qnaProject",
+ "targetProjectParameters": {
+ "qnaProject": {
+ "targetKind": "question_answering",
+ "callingOptions": {
+ "context": {
+ "previousQuery": "Meet Surface Pro 4",
+ "previousQnAId": 4
+ },
+ "top": 3,
+ "isTest": true,
+ "userId": "Default",
+ "question": "Ports and connectors"
+ },
+ "apiVersion": "v5.1"
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "kind": "CustomConversationResult",
+ "results": {
+ "query": "Ports and connectors",
+ "prediction": {
+ "projectKind": "workflow",
+ "topIntent": "qnaTargetApp",
+ "intents": {
+ "qnaTargetApp": {
+ "targetKind": "question_answering",
+ "apiVersion": "v5.1",
+ "confidenceScore": 0.913329,
+ "result": {
+ "answers": [
+ {
+ "questions": [
+ "Power and charging"
+ ],
+ "answer": "Power and charging**\n\nIt takes two to four hours to charge the Surface Pro 4 battery fully from an empty state. It can take longer if you are using your Surface for power-intensive activities like gaming or video streaming while you’re charging it.\n\nYou can use the USB port on your Surface Pro 4 power supply to charge other devices, like a phone, while your Surface charges. The USB port on the power supply is only for charging, not for data transfer. If you want to use a USB device, plug it into the USB port on your Surface.",
+ "confidenceScore": 0.65,
+ "id": 20,
+ "source": "surface-pro-4-user-guide-EN.pdf",
+ "metadata": {
+ "category": "api",
+ "editorial": "chitchat"
+ },
+ "dialog": {
+ "isContextOnly": false,
+ "prompts": [
+ {
+ "displayOrder": 1,
+ "qnaId": 23,
+ "displayText": "prompt1"
+ },
+ {
+ "displayOrder": 2,
+ "qnaId": 36,
+ "displayText": "prompt2"
+ }
+ ]
+ },
+ "answerSpan": {
+ "text": "two to four hours",
+ "confidenceScore": 0.3,
+ "offset": 33,
+ "length": 50
+ }
+ },
+ {
+ "questions": [
+ "Charge your Surface Pro 4"
+ ],
+ "answer": "**Charge your Surface Pro 4**\n\n1. Connect the two parts of the power cord.\n\n2. Connect the power cord securely to the charging port.\n\n3. Plug the power supply into an electrical outlet.",
+ "confidenceScore": 0.32,
+ "id": 13,
+ "source": "surface-pro-4-user-guide-EN.pdf"
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/textanalytics.json b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/textanalytics.json
new file mode 100644
index 000000000000..ffab80a53342
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2022-03-01-preview/textanalytics.json
@@ -0,0 +1,2888 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "title": "Microsoft Cognitive Language Service",
+ "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://docs.microsoft.com/en-us/azure/cognitive-services/language-service/overview.0",
+ "version": "2022-03-01-preview"
+ },
+ "securityDefinitions": {
+ "apim_key": {
+ "type": "apiKey",
+ "description": "A subscription key for a Language service resource.",
+ "name": "Ocp-Apim-Subscription-Key",
+ "in": "header"
+ }
+ },
+ "security": [
+ {
+ "apim_key": []
+ }
+ ],
+ "x-ms-parameterized-host": {
+ "hostTemplate": "{Endpoint}/language",
+ "useSchemePrefix": false,
+ "parameters": [
+ {
+ "$ref": "common.json#/parameters/Endpoint"
+ }
+ ]
+ },
+ "paths": {
+ "/:analyze-text": {
+ "post": {
+ "summary": "Request text analysis over a collection of documents.",
+ "description": "Submit a collection of text documents for analysis. Specify a single unique task to be executed immediately.",
+ "operationId": "AnalyzeText",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "$ref": "common.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/ShowStats"
+ },
+ {
+ "description": "Collection of documents to analyze and a single task to execute.",
+ "in": "body",
+ "name": "body",
+ "schema": {
+ "$ref": "#/definitions/AnalyzeTextTask"
+ },
+ "required": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "A successful call result",
+ "schema": {
+ "$ref": "#/definitions/AnalyzeTextTaskResult"
+ }
+ },
+ "default": {
+ "description": "Unexpected error",
+ "schema": {
+ "$ref": "common.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful Entity Linking Request": {
+ "$ref": "./examples/SuccessfulEntityLinkingRequest.json"
+ },
+ "Successful Entity Recognition Request": {
+ "$ref": "./examples/SuccessfulEntityRecognitionRequest.json"
+ },
+ "Successful Key Phrase Extraction Request": {
+ "$ref": "./examples/SuccessfulKeyPhraseExtractionRequest.json"
+ },
+ "Successful PII Entity Recognition Request": {
+ "$ref": "./examples/SuccessfulPiiEntityRecognitionRequest.json"
+ },
+ "Successful Language Detection Request": {
+ "$ref": "./examples/SuccessfulLanguageDetectionRequest.json"
+ },
+ "Successful Sentiment Analysis Request": {
+ "$ref": "./examples/SuccessfulSentimentAnalysisRequest.json"
+ }
+ }
+ }
+ },
+ "/analyze-text/jobs": {
+ "post": {
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "description": "Submit a collection of text documents for analysis. Specify one or more unique tasks to be executed as a long-running operation.",
+ "operationId": "AnalyzeText_SubmitJob",
+ "summary": "Submit text analysis job",
+ "parameters": [
+ {
+ "$ref": "common.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "description": "Collection of documents to analyze and one or more tasks to execute.",
+ "in": "body",
+ "name": "body",
+ "schema": {
+ "$ref": "#/definitions/AnalyzeTextJobsInput"
+ },
+ "required": true
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "A successful call results with an Operation-Location header used to check the status of the analysis job.",
+ "headers": {
+ "Operation-Location": {
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Error response.",
+ "schema": {
+ "$ref": "common.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful Submit Analysis Job Request": {
+ "$ref": "./examples/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ },
+ "/analyze-text/jobs/{jobId}": {
+ "get": {
+ "produces": [
+ "application/json"
+ ],
+ "description": "Get the status of an analysis job. A job may consist of one or more tasks. Once all tasks are succeeded, the job will transition to the succeeded state and results will be available for each task.",
+ "operationId": "AnalyzeText_JobStatus",
+ "summary": "Get analysis status and results",
+ "parameters": [
+ {
+ "$ref": "common.json#/parameters/ApiVersionParameter"
+ },
+ {
+ "$ref": "#/parameters/JobId"
+ },
+ {
+ "$ref": "#/parameters/ShowStats"
+ },
+ {
+ "$ref": "common.json#/parameters/TopParameter"
+ },
+ {
+ "$ref": "common.json#/parameters/SkipParameter"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Analysis job status and metadata.",
+ "schema": {
+ "$ref": "#/definitions/AnalyzeTextJobState"
+ }
+ },
+ "default": {
+ "description": "Unexpected error",
+ "schema": {
+ "$ref": "common.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful Get Text Analysis Job Status Request": {
+ "$ref": "./examples/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json"
+ }
+ }
+ }
+ },
+ "/analyze-text/jobs/{jobId}:cancel": {
+ "post": {
+ "produces": [
+ "application/json"
+ ],
+ "description": "Cancel a long-running Text Analysis job.",
+ "operationId": "AnalyzeText_CancelJob",
+ "summary": "Cancel a long-running Text Analysis job",
+ "parameters": [
+ {
+ "$ref": "#/parameters/JobId"
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "Cancel Job request has been received.",
+ "headers": {
+ "Operation-Location": {
+ "type": "string"
+ }
+ }
+ },
+ "default": {
+ "description": "Unexpected error",
+ "schema": {
+ "$ref": "common.json#/definitions/ErrorResponse"
+ }
+ }
+ },
+ "x-ms-examples": {
+ "Successful Job Delete Request": {
+ "$ref": ".//examples//SuccessfulAnalyzeTextJobsCancelRequest.json"
+ }
+ },
+ "x-ms-long-running-operation": true
+ }
+ }
+ },
+ "definitions": {
+ "AnalyzeTextTaskKind": {
+ "type": "string",
+ "description": "Enumeration of supported Text Analysis tasks.",
+ "enum": [
+ "SentimentAnalysis",
+ "EntityRecognition",
+ "PiiEntityRecognition",
+ "KeyPhraseExtraction",
+ "LanguageDetection",
+ "EntityLinking"
+ ],
+ "x-ms-enum": {
+ "name": "AnalyzeTextTaskKind",
+ "modelAsString": true
+ }
+ },
+ "AnalyzeTextLROTaskKind": {
+ "type": "string",
+ "description": "Enumeration of supported long-running Text Analysis tasks.",
+ "enum": [
+ "SentimentAnalysis",
+ "EntityRecognition",
+ "PiiEntityRecognition",
+ "KeyPhraseExtraction",
+ "EntityLinking",
+ "Healthcare",
+ "ExtractiveSummarization",
+ "CustomEntityRecognition",
+ "CustomSingleLabelClassification",
+ "CustomMultiLabelClassification"
+ ],
+ "x-ms-enum": {
+ "name": "AnalyzeTextLROTaskKind",
+ "modelAsString": true
+ }
+ },
+ "AnalyzeTextTaskResultsKind": {
+ "type": "string",
+ "description": "Enumeration of supported Text Analysis task results.",
+ "enum": [
+ "SentimentAnalysisResults",
+ "EntityRecognitionResults",
+ "PiiEntityRecognitionResults",
+ "KeyPhraseExtractionResults",
+ "LanguageDetectionResults",
+ "EntityLinkingResults"
+ ],
+ "x-ms-enum": {
+ "name": "AnalyzeTextTaskResultsKind",
+ "modelAsString": true
+ }
+ },
+ "AnalyzeTextLROResultsKind": {
+ "type": "string",
+ "description": "Enumeration of supported Text Analysis long-running operation task results.",
+ "enum": [
+ "SentimentAnalysisLROResults",
+ "EntityRecognitionLROResults",
+ "PiiEntityRecognitionLROResults",
+ "KeyPhraseExtractionLROResults",
+ "EntityLinkingLROResults",
+ "HealthcareLROResults",
+ "ExtractiveSummarizationLROResults",
+ "CustomEntityRecognitionLROResults",
+ "CustomSingleLabelClassificationLROResults",
+ "CustomMultiLabelClassificationLROResults"
+ ],
+ "x-ms-enum": {
+ "name": "AnalyzeTextLROResultsKind",
+ "modelAsString": true
+ }
+ },
+ "MultiLanguageAnalysisInput": {
+ "properties": {
+ "documents": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/MultiLanguageInput"
+ }
+ }
+ }
+ },
+ "LanguageDetectionAnalysisInput": {
+ "properties": {
+ "documents": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/LanguageInput"
+ }
+ }
+ }
+ },
+ "AnalyzeTextTask": {
+ "discriminator": "kind",
+ "required": [
+ "kind"
+ ],
+ "properties": {
+ "kind": {
+ "$ref": "#/definitions/AnalyzeTextTaskKind"
+ }
+ }
+ },
+ "AnalyzeTextLROTask": {
+ "discriminator": "kind",
+ "required": [
+ "kind"
+ ],
+ "properties": {
+ "kind": {
+ "$ref": "#/definitions/AnalyzeTextLROTaskKind"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/TaskIdentifier"
+ }
+ ]
+ },
+ "AnalyzeTextTaskResult": {
+ "discriminator": "kind",
+ "required": [
+ "kind"
+ ],
+ "properties": {
+ "kind": {
+ "$ref": "#/definitions/AnalyzeTextTaskResultsKind"
+ }
+ }
+ },
+ "AnalyzeTextEntityLinkingInput": {
+ "properties": {
+ "analysisInput": {
+ "$ref": "#/definitions/MultiLanguageAnalysisInput"
+ },
+ "parameters": {
+ "$ref": "#/definitions/EntityLinkingTaskParameters"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextTask"
+ }
+ ],
+ "x-ms-discriminator-value": "EntityLinking"
+ },
+ "AnalyzeTextEntityRecognitionInput": {
+ "properties": {
+ "analysisInput": {
+ "$ref": "#/definitions/MultiLanguageAnalysisInput"
+ },
+ "parameters": {
+ "$ref": "#/definitions/EntitiesTaskParameters"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextTask"
+ }
+ ],
+ "x-ms-discriminator-value": "EntityRecognition"
+ },
+ "AnalyzeTextKeyPhraseExtractionInput": {
+ "properties": {
+ "analysisInput": {
+ "$ref": "#/definitions/MultiLanguageAnalysisInput"
+ },
+ "parameters": {
+ "$ref": "#/definitions/KeyPhraseTaskParameters"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextTask"
+ }
+ ],
+ "x-ms-discriminator-value": "KeyPhraseExtraction"
+ },
+ "AnalyzeTextPiiEntitiesRecognitionInput": {
+ "properties": {
+ "analysisInput": {
+ "$ref": "#/definitions/MultiLanguageAnalysisInput"
+ },
+ "parameters": {
+ "$ref": "#/definitions/PiiTaskParameters"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextTask"
+ }
+ ],
+ "x-ms-discriminator-value": "PiiEntityRecognition"
+ },
+ "AnalyzeTextLanguageDetectionInput": {
+ "properties": {
+ "analysisInput": {
+ "$ref": "#/definitions/LanguageDetectionAnalysisInput"
+ },
+ "parameters": {
+ "$ref": "#/definitions/LanguageDetectionTaskParameters"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextTask"
+ }
+ ],
+ "x-ms-discriminator-value": "LanguageDetection"
+ },
+ "AnalyzeTextSentimentAnalysisInput": {
+ "properties": {
+ "analysisInput": {
+ "$ref": "#/definitions/MultiLanguageAnalysisInput"
+ },
+ "parameters": {
+ "$ref": "#/definitions/SentimentAnalysisTaskParameters"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextTask"
+ }
+ ],
+ "x-ms-discriminator-value": "SentimentAnalysis"
+ },
+ "AnalyzeTextJobsInput": {
+ "properties": {
+ "displayName": {
+ "description": "Optional display name for the analysis job.",
+ "type": "string"
+ },
+ "analysisInput": {
+ "$ref": "#/definitions/MultiLanguageAnalysisInput"
+ },
+ "tasks": {
+ "description": "The set of tasks to execute on the input documents.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/AnalyzeTextLROTask"
+ }
+ }
+ },
+ "required": [
+ "analysisInput",
+ "tasks"
+ ]
+ },
+ "TaskIdentifier": {
+ "type": "object",
+ "description": "Base task object.",
+ "properties": {
+ "taskName": {
+ "type": "string"
+ }
+ }
+ },
+ "TaskParameters": {
+ "type": "object",
+ "description": "Base parameters object for a text analysis task.",
+ "properties": {
+ "loggingOptOut": {
+ "type": "boolean",
+ "default": false
+ }
+ }
+ },
+ "PreBuiltTaskParameters": {
+ "type": "object",
+ "description": "Parameters object for a text analysis task using pre-built models.",
+ "properties": {
+ "modelVersion": {
+ "type": "string",
+ "default": "latest"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/TaskParameters"
+ }
+ ]
+ },
+ "PreBuiltResult": {
+ "properties": {
+ "errors": {
+ "type": "array",
+ "description": "Errors by document id.",
+ "items": {
+ "$ref": "#/definitions/DocumentError"
+ }
+ },
+ "statistics": {
+ "$ref": "#/definitions/RequestStatistics"
+ },
+ "modelVersion": {
+ "type": "string",
+ "description": "This field indicates which model is used for scoring."
+ }
+ },
+ "required": [
+ "errors",
+ "modelVersion"
+ ]
+ },
+ "CustomTaskParameters": {
+ "type": "object",
+ "description": "Parameters object for a text analysis task using custom models.",
+ "properties": {
+ "projectName": {
+ "type": "string"
+ },
+ "deploymentName": {
+ "type": "string"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/TaskParameters"
+ }
+ ],
+ "required": [
+ "projectName",
+ "deploymentName"
+ ]
+ },
+ "CustomResult": {
+ "properties": {
+ "errors": {
+ "type": "array",
+ "description": "Errors by document id.",
+ "items": {
+ "$ref": "#/definitions/DocumentError"
+ }
+ },
+ "statistics": {
+ "$ref": "#/definitions/RequestStatistics"
+ },
+ "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": [
+ "errors",
+ "projectName",
+ "deploymentName"
+ ]
+ },
+ "CustomEntitiesTaskParameters": {
+ "type": "object",
+ "description": "Supported parameters for a Custom Entities task.",
+ "properties": {
+ "stringIndexType": {
+ "$ref": "common.json#/definitions/StringIndexType"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/CustomTaskParameters"
+ }
+ ]
+ },
+ "CustomEntitiesLROTask": {
+ "type": "object",
+ "description": "Use custom models to ease the process of information extraction from unstructured documents like contracts or financial documents",
+ "properties": {
+ "parameters": {
+ "$ref": "#/definitions/CustomEntitiesTaskParameters"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextLROTask"
+ }
+ ],
+ "x-ms-discriminator-value": "CustomEntityRecognition"
+ },
+ "CustomEntitiesResult": {
+ "type": "object",
+ "properties": {
+ "documents": {
+ "type": "array",
+ "description": "Response by document",
+ "items": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/EntitiesDocumentResult"
+ }
+ ]
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/CustomResult"
+ }
+ ],
+ "required": [
+ "documents"
+ ]
+ },
+ "CustomSingleLabelClassificationTaskParameters": {
+ "type": "object",
+ "description": "Supported parameters for a Custom Single Classification task.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/CustomTaskParameters"
+ }
+ ]
+ },
+ "CustomSingleLabelClassificationLROTask": {
+ "type": "object",
+ "description": "Use custom models to classify text into single label taxonomy",
+ "properties": {
+ "parameters": {
+ "$ref": "#/definitions/CustomSingleLabelClassificationTaskParameters"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextLROTask"
+ }
+ ],
+ "x-ms-discriminator-value": "CustomSingleLabelClassification"
+ },
+ "CustomSingleLabelClassificationResult": {
+ "type": "object",
+ "properties": {
+ "documents": {
+ "type": "array",
+ "description": "Response by document",
+ "items": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/SingleClassificationDocumentResult"
+ }
+ ]
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/CustomResult"
+ }
+ ],
+ "required": [
+ "documents"
+ ]
+ },
+ "SingleClassificationDocumentResult": {
+ "type": "object",
+ "properties": {
+ "class": {
+ "$ref": "#/definitions/ClassificationResult"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/DocumentResult"
+ }
+ ],
+ "required": [
+ "class"
+ ]
+ },
+ "ClassificationResult": {
+ "type": "object",
+ "required": [
+ "category",
+ "confidenceScore"
+ ],
+ "properties": {
+ "category": {
+ "type": "string",
+ "description": "Classification type."
+ },
+ "confidenceScore": {
+ "type": "number",
+ "format": "double",
+ "description": "Confidence score between 0 and 1 of the recognized class."
+ }
+ }
+ },
+ "CustomMultiLabelClassificationTaskParameters": {
+ "type": "object",
+ "description": "Supported parameters for a Custom Multi Classification task.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/CustomTaskParameters"
+ }
+ ]
+ },
+ "CustomMultiLabelClassificationLROTask": {
+ "type": "object",
+ "description": "Use custom models to classify text into multi label taxonomy",
+ "properties": {
+ "parameters": {
+ "$ref": "#/definitions/CustomMultiLabelClassificationTaskParameters"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextLROTask"
+ }
+ ],
+ "x-ms-discriminator-value": "CustomMultiLabelClassification"
+ },
+ "CustomMultiLabelClassificationResult": {
+ "type": "object",
+ "properties": {
+ "documents": {
+ "type": "array",
+ "description": "Response by document",
+ "items": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/MultiClassificationDocumentResult"
+ }
+ ]
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/CustomResult"
+ }
+ ],
+ "required": [
+ "documents"
+ ]
+ },
+ "MultiClassificationDocumentResult": {
+ "type": "object",
+ "properties": {
+ "class": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ClassificationResult"
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/DocumentResult"
+ }
+ ],
+ "required": [
+ "class"
+ ]
+ },
+ "HealthcareTaskParameters": {
+ "type": "object",
+ "description": "Supported parameters for a Healthcare task.",
+ "properties": {
+ "stringIndexType": {
+ "$ref": "common.json#/definitions/StringIndexType"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/PreBuiltTaskParameters"
+ }
+ ]
+ },
+ "HealthcareLROTask": {
+ "type": "object",
+ "properties": {
+ "parameters": {
+ "$ref": "#/definitions/HealthcareTaskParameters"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextLROTask"
+ }
+ ],
+ "x-ms-discriminator-value": "Healthcare"
+ },
+ "HealthcareResult": {
+ "type": "object",
+ "properties": {
+ "documents": {
+ "type": "array",
+ "items": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/HealthcareEntitiesDocumentResult"
+ }
+ ]
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/PreBuiltResult"
+ }
+ ],
+ "required": [
+ "documents"
+ ]
+ },
+ "HealthcareEntitiesDocumentResult": {
+ "type": "object",
+ "properties": {
+ "entities": {
+ "description": "Healthcare entities.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/HealthcareEntity"
+ }
+ },
+ "relations": {
+ "type": "array",
+ "description": "Healthcare entity relations.",
+ "items": {
+ "$ref": "#/definitions/HealthcareRelation"
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/DocumentResult"
+ }
+ ],
+ "required": [
+ "entities",
+ "relations"
+ ]
+ },
+ "HealthcareEntity": {
+ "type": "object",
+ "properties": {
+ "text": {
+ "type": "string",
+ "description": "Entity text as appears in the request."
+ },
+ "category": {
+ "x-ms-enum": {
+ "name": "healthcareEntityCategory",
+ "modelAsString": true
+ },
+ "type": "string",
+ "description": "Healthcare Entity Category.",
+ "enum": [
+ "BODY_STRUCTURE",
+ "AGE",
+ "GENDER",
+ "EXAMINATION_NAME",
+ "DATE",
+ "DIRECTION",
+ "FREQUENCY",
+ "MEASUREMENT_VALUE",
+ "MEASUREMENT_UNIT",
+ "RELATIONAL_OPERATOR",
+ "TIME",
+ "GENE_OR_PROTEIN",
+ "VARIANT",
+ "ADMINISTRATIVE_EVENT",
+ "CARE_ENVIRONMENT",
+ "HEALTHCARE_PROFESSION",
+ "DIAGNOSIS",
+ "SYMPTOM_OR_SIGN",
+ "CONDITION_QUALIFIER",
+ "MEDICATION_CLASS",
+ "MEDICATION_NAME",
+ "DOSAGE",
+ "MEDICATION_FORM",
+ "MEDICATION_ROUTE",
+ "FAMILY_RELATION",
+ "TREATMENT_NAME"
+ ]
+ },
+ "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": {
+ "type": "object",
+ "$ref": "#/definitions/HealthcareAssertion"
+ },
+ "name": {
+ "description": "Preferred name for the entity. Example: 'histologically' would have a 'name' of 'histologic'.",
+ "type": "string"
+ },
+ "links": {
+ "description": "Entity references in known data sources.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/HealthcareEntityLink"
+ }
+ }
+ },
+ "required": [
+ "text",
+ "category",
+ "offset",
+ "length",
+ "confidenceScore"
+ ]
+ },
+ "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.",
+ "required": [
+ "relationType",
+ "entities"
+ ],
+ "properties": {
+ "relationType": {
+ "description": "Type of relation. Examples include: `DosageOfMedication` or 'FrequencyOfMedication', etc.",
+ "type": "string",
+ "enum": [
+ "Abbreviation",
+ "DirectionOfBodyStructure",
+ "DirectionOfCondition",
+ "DirectionOfExamination",
+ "DirectionOfTreatment",
+ "DosageOfMedication",
+ "FormOfMedication",
+ "FrequencyOfMedication",
+ "FrequencyOfTreatment",
+ "QualifierOfCondition",
+ "RelationOfExamination",
+ "RouteOfMedication",
+ "TimeOfCondition",
+ "TimeOfEvent",
+ "TimeOfExamination",
+ "TimeOfMedication",
+ "TimeOfTreatment",
+ "UnitOfCondition",
+ "UnitOfExamination",
+ "ValueOfCondition",
+ "ValueOfExamination"
+ ],
+ "x-ms-enum": {
+ "name": "relationType",
+ "modelAsString": true
+ }
+ },
+ "entities": {
+ "description": "The entities in the relation.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/HealthcareRelationEntity"
+ }
+ }
+ }
+ },
+ "HealthcareAssertion": {
+ "type": "object",
+ "properties": {
+ "conditionality": {
+ "description": "Describes any conditionality on the entity.",
+ "type": "string",
+ "enum": [
+ "hypothetical",
+ "conditional"
+ ],
+ "x-ms-enum": {
+ "name": "Conditionality",
+ "modelAsString": false
+ }
+ },
+ "certainty": {
+ "description": "Describes the entities certainty and polarity.",
+ "type": "string",
+ "enum": [
+ "positive",
+ "positivePossible",
+ "neutralPossible",
+ "negativePossible",
+ "negative"
+ ],
+ "x-ms-enum": {
+ "name": "Certainty",
+ "modelAsString": false
+ }
+ },
+ "association": {
+ "description": "Describes if the entity is the subject of the text or if it describes someone else.",
+ "type": "string",
+ "enum": [
+ "subject",
+ "other"
+ ],
+ "x-ms-enum": {
+ "name": "Association",
+ "modelAsString": false
+ }
+ }
+ }
+ },
+ "HealthcareRelationEntity": {
+ "type": "object",
+ "required": [
+ "ref",
+ "role"
+ ],
+ "properties": {
+ "ref": {
+ "description": "Reference link object, using a JSON pointer RFC 6901 (URI Fragment Identifier Representation), pointing to the entity .",
+ "type": "string"
+ },
+ "role": {
+ "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).",
+ "type": "string"
+ }
+ }
+ },
+ "HealthcareEntityLink": {
+ "type": "object",
+ "required": [
+ "dataSource",
+ "id"
+ ],
+ "properties": {
+ "dataSource": {
+ "description": "Entity Catalog. Examples include: UMLS, CHV, MSH, etc.",
+ "type": "string"
+ },
+ "id": {
+ "description": "Entity id in the given source catalog.",
+ "type": "string"
+ }
+ }
+ },
+ "SentimentAnalysisTaskParameters": {
+ "type": "object",
+ "description": "Supported parameters for a Sentiment Analysis task.",
+ "properties": {
+ "opinionMining": {
+ "type": "boolean",
+ "default": false
+ },
+ "stringIndexType": {
+ "$ref": "common.json#/definitions/StringIndexType"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/PreBuiltTaskParameters"
+ }
+ ]
+ },
+ "SentimentAnalysisLROTask": {
+ "type": "object",
+ "description": "An object representing the task definition for a Sentiment Analysis task.",
+ "properties": {
+ "parameters": {
+ "$ref": "#/definitions/SentimentAnalysisTaskParameters"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextLROTask"
+ }
+ ],
+ "x-ms-discriminator-value": "SentimentAnalysis"
+ },
+ "SentimentTaskResult": {
+ "type": "object",
+ "properties": {
+ "results": {
+ "$ref": "#/definitions/SentimentResponse"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextTaskResult"
+ }
+ ],
+ "required": [
+ "results"
+ ],
+ "x-ms-discriminator-value": "SentimentAnalysisResults"
+ },
+ "SentimentResponse": {
+ "type": "object",
+ "properties": {
+ "documents": {
+ "type": "array",
+ "description": "Sentiment analysis per document.",
+ "items": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/SentimentDocumentResult"
+ }
+ ]
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/PreBuiltResult"
+ }
+ ],
+ "required": [
+ "documents"
+ ]
+ },
+ "SentimentDocumentResult": {
+ "type": "object",
+ "properties": {
+ "sentiment": {
+ "type": "string",
+ "description": "Predicted sentiment for document (Negative, Neutral, Positive, or Mixed).",
+ "enum": [
+ "positive",
+ "neutral",
+ "negative",
+ "mixed"
+ ],
+ "x-ms-enum": {
+ "name": "DocumentSentimentValue",
+ "modelAsString": false
+ }
+ },
+ "confidenceScores": {
+ "description": "Document level sentiment confidence scores between 0 and 1 for each sentiment class.",
+ "$ref": "#/definitions/SentimentConfidenceScorePerLabel"
+ },
+ "sentences": {
+ "type": "array",
+ "description": "Sentence level sentiment analysis.",
+ "items": {
+ "$ref": "#/definitions/SentenceSentiment"
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/DocumentResult"
+ }
+ ],
+ "required": [
+ "sentiment",
+ "confidenceScores",
+ "sentences"
+ ]
+ },
+ "SentimentConfidenceScorePerLabel": {
+ "type": "object",
+ "required": [
+ "positive",
+ "neutral",
+ "negative"
+ ],
+ "properties": {
+ "positive": {
+ "type": "number",
+ "format": "double"
+ },
+ "neutral": {
+ "type": "number",
+ "format": "double"
+ },
+ "negative": {
+ "type": "number",
+ "format": "double"
+ }
+ },
+ "description": "Represents the confidence scores between 0 and 1 across all sentiment classes: positive, neutral, negative."
+ },
+ "SentenceSentiment": {
+ "type": "object",
+ "required": [
+ "text",
+ "sentiment",
+ "confidenceScores",
+ "offset",
+ "length"
+ ],
+ "properties": {
+ "text": {
+ "type": "string",
+ "description": "The sentence text."
+ },
+ "sentiment": {
+ "type": "string",
+ "description": "The predicted Sentiment for the sentence.",
+ "enum": [
+ "positive",
+ "neutral",
+ "negative"
+ ],
+ "x-ms-enum": {
+ "name": "SentenceSentimentValue",
+ "modelAsString": false
+ }
+ },
+ "confidenceScores": {
+ "description": "The sentiment confidence score between 0 and 1 for the sentence for all classes.",
+ "$ref": "#/definitions/SentimentConfidenceScorePerLabel"
+ },
+ "offset": {
+ "type": "integer",
+ "format": "int32",
+ "description": "The sentence offset from the start of the document."
+ },
+ "length": {
+ "type": "integer",
+ "format": "int32",
+ "description": "The length of the sentence."
+ },
+ "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"
+ }
+ }
+ }
+ },
+ "SentenceTarget": {
+ "type": "object",
+ "required": [
+ "confidenceScores",
+ "length",
+ "offset",
+ "relations",
+ "sentiment",
+ "text"
+ ],
+ "properties": {
+ "sentiment": {
+ "type": "string",
+ "enum": [
+ "positive",
+ "mixed",
+ "negative"
+ ],
+ "x-ms-enum": {
+ "name": "TokenSentimentValue",
+ "modelAsString": false
+ },
+ "description": "Targeted sentiment in the sentence."
+ },
+ "confidenceScores": {
+ "description": "Target sentiment confidence scores for the target in the sentence.",
+ "$ref": "#/definitions/TargetConfidenceScoreLabel"
+ },
+ "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"
+ }
+ }
+ }
+ },
+ "SentenceAssessment": {
+ "type": "object",
+ "required": [
+ "confidenceScores",
+ "isNegated",
+ "length",
+ "offset",
+ "sentiment",
+ "text"
+ ],
+ "properties": {
+ "sentiment": {
+ "type": "string",
+ "enum": [
+ "positive",
+ "mixed",
+ "negative"
+ ],
+ "x-ms-enum": {
+ "name": "TokenSentimentValue",
+ "modelAsString": false
+ },
+ "description": "Assessment sentiment in the sentence."
+ },
+ "confidenceScores": {
+ "description": "Assessment sentiment confidence scores in the sentence.",
+ "$ref": "#/definitions/TargetConfidenceScoreLabel"
+ },
+ "offset": {
+ "type": "integer",
+ "format": "int32",
+ "description": "The assessment offset from the start of the sentence."
+ },
+ "length": {
+ "type": "integer",
+ "format": "int32",
+ "description": "The length of the assessment."
+ },
+ "text": {
+ "type": "string",
+ "description": "The assessment text detected."
+ },
+ "isNegated": {
+ "type": "boolean",
+ "description": "The indicator representing if the assessment is negated."
+ }
+ }
+ },
+ "TargetRelation": {
+ "type": "object",
+ "required": [
+ "ref",
+ "relationType"
+ ],
+ "properties": {
+ "relationType": {
+ "type": "string",
+ "enum": [
+ "assessment",
+ "target"
+ ],
+ "x-ms-enum": {
+ "name": "TargetRelationType",
+ "modelAsString": false
+ },
+ "description": "The type related to the target."
+ },
+ "ref": {
+ "type": "string",
+ "description": "The JSON pointer indicating the linked object."
+ }
+ }
+ },
+ "TargetConfidenceScoreLabel": {
+ "type": "object",
+ "required": [
+ "negative",
+ "positive"
+ ],
+ "properties": {
+ "positive": {
+ "type": "number",
+ "format": "double"
+ },
+ "negative": {
+ "type": "number",
+ "format": "double"
+ }
+ },
+ "description": "Represents the confidence scores across all sentiment classes: positive, neutral, negative."
+ },
+ "EntitiesTaskParameters": {
+ "type": "object",
+ "description": "Supported parameters for an Entity Recognition task.",
+ "properties": {
+ "stringIndexType": {
+ "$ref": "common.json#/definitions/StringIndexType"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/PreBuiltTaskParameters"
+ }
+ ]
+ },
+ "EntitiesLROTask": {
+ "type": "object",
+ "description": "An object representing the task definition for an Entities Recognition task.",
+ "properties": {
+ "parameters": {
+ "$ref": "#/definitions/EntitiesTaskParameters"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextLROTask"
+ }
+ ],
+ "x-ms-discriminator-value": "EntityRecognition"
+ },
+ "EntitiesTaskResult": {
+ "type": "object",
+ "properties": {
+ "results": {
+ "$ref": "#/definitions/EntitiesResult"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextTaskResult"
+ }
+ ],
+ "x-ms-discriminator-value": "EntityRecognitionResults"
+ },
+ "EntitiesResult": {
+ "type": "object",
+ "properties": {
+ "documents": {
+ "type": "array",
+ "description": "Response by document",
+ "items": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/EntitiesDocumentResult"
+ }
+ ]
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/PreBuiltResult"
+ }
+ ],
+ "required": [
+ "documents"
+ ]
+ },
+ "EntitiesDocumentResult": {
+ "type": "object",
+ "properties": {
+ "entities": {
+ "type": "array",
+ "description": "Recognized entities in the document.",
+ "items": {
+ "$ref": "#/definitions/Entity"
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/DocumentResult"
+ }
+ ],
+ "required": [
+ "entities"
+ ]
+ },
+ "Entity": {
+ "type": "object",
+ "required": [
+ "text",
+ "category",
+ "offset",
+ "length",
+ "confidenceScore"
+ ],
+ "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."
+ }
+ }
+ },
+ "EntityLinkingTaskParameters": {
+ "type": "object",
+ "description": "Supported parameters for an Entity Linking task.",
+ "properties": {
+ "stringIndexType": {
+ "$ref": "common.json#/definitions/StringIndexType"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/PreBuiltTaskParameters"
+ }
+ ]
+ },
+ "EntityLinkingLROTask": {
+ "type": "object",
+ "description": "An object representing the task definition for an Entity Linking task.",
+ "properties": {
+ "parameters": {
+ "$ref": "#/definitions/EntityLinkingTaskParameters"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextLROTask"
+ }
+ ],
+ "x-ms-discriminator-value": "EntityLinking"
+ },
+ "EntityLinkingTaskResult": {
+ "type": "object",
+ "properties": {
+ "results": {
+ "$ref": "#/definitions/EntityLinkingResult"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextTaskResult"
+ }
+ ],
+ "x-ms-discriminator-value": "EntityLinkingResults"
+ },
+ "EntityLinkingResult": {
+ "type": "object",
+ "properties": {
+ "documents": {
+ "type": "array",
+ "description": "Response by document",
+ "items": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/LinkedEntitiesDocumentResult"
+ }
+ ]
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/PreBuiltResult"
+ }
+ ],
+ "required": [
+ "documents"
+ ]
+ },
+ "LinkedEntitiesDocumentResult": {
+ "type": "object",
+ "required": [
+ "entities"
+ ],
+ "properties": {
+ "entities": {
+ "type": "array",
+ "description": "Recognized well known entities in the document.",
+ "items": {
+ "$ref": "#/definitions/LinkedEntity"
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/DocumentResult"
+ }
+ ]
+ },
+ "LinkedEntity": {
+ "type": "object",
+ "required": [
+ "name",
+ "matches",
+ "language",
+ "url",
+ "dataSource"
+ ],
+ "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."
+ }
+ }
+ },
+ "Match": {
+ "type": "object",
+ "required": [
+ "confidenceScore",
+ "text",
+ "offset",
+ "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."
+ }
+ }
+ },
+ "PiiTaskParameters": {
+ "type": "object",
+ "description": "Supported parameters for a PII Entities Recognition task.",
+ "properties": {
+ "domain": {
+ "$ref": "#/definitions/PiiDomain"
+ },
+ "piiCategories": {
+ "$ref": "#/definitions/PiiCategories"
+ },
+ "stringIndexType": {
+ "$ref": "common.json#/definitions/StringIndexType"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/PreBuiltTaskParameters"
+ }
+ ]
+ },
+ "PiiLROTask": {
+ "type": "object",
+ "description": "An object representing the task definition for a PII Entities Recognition task.",
+ "properties": {
+ "parameters": {
+ "$ref": "#/definitions/PiiTaskParameters"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextLROTask"
+ }
+ ],
+ "x-ms-discriminator-value": "PiiEntityRecognition"
+ },
+ "PiiTaskResult": {
+ "type": "object",
+ "properties": {
+ "results": {
+ "$ref": "#/definitions/PiiResult"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextTaskResult"
+ }
+ ],
+ "x-ms-discriminator-value": "PiiEntityRecognitionResults"
+ },
+ "PiiResult": {
+ "type": "object",
+ "properties": {
+ "documents": {
+ "type": "array",
+ "description": "Response by document",
+ "items": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/PiiEntitiesDocumentResult"
+ }
+ ]
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/PreBuiltResult"
+ }
+ ],
+ "required": [
+ "documents"
+ ]
+ },
+ "PiiDomain": {
+ "type": "string",
+ "description": "The PII domain used for PII Entity Recognition.",
+ "default": "none",
+ "enum": [
+ "phi",
+ "none"
+ ],
+ "x-ms-enum": {
+ "name": "PiiDomain",
+ "modelAsString": true,
+ "values": [
+ {
+ "name": "phi",
+ "description": "Indicates that entities in the Personal Health Information domain should be redacted.",
+ "value": "phi"
+ },
+ {
+ "name": "none",
+ "description": "Indicates that no domain is specified.",
+ "value": "none"
+ }
+ ]
+ }
+ },
+ "PiiEntitiesDocumentResult": {
+ "type": "object",
+ "properties": {
+ "redactedText": {
+ "type": "string",
+ "description": "Returns redacted text."
+ },
+ "entities": {
+ "type": "array",
+ "description": "Recognized entities in the document.",
+ "items": {
+ "$ref": "#/definitions/Entity"
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/DocumentResult"
+ }
+ ],
+ "required": [
+ "redactedText",
+ "entities"
+ ]
+ },
+ "PiiCategories": {
+ "description": "(Optional) describes the PII categories to return",
+ "items": {
+ "type": "string",
+ "x-ms-enum": {
+ "name": "PiiCategory",
+ "modelAsString": true
+ },
+ "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",
+ "All",
+ "Default"
+ ]
+ },
+ "type": "array",
+ "uniqueItems": true
+ },
+ "ExtractiveSummarizationTaskParameters": {
+ "type": "object",
+ "description": "Supported parameters for an Extractive Summarization task.",
+ "properties": {
+ "sentenceCount": {
+ "type": "integer",
+ "default": 3
+ },
+ "sortBy": {
+ "$ref": "#/definitions/ExtractiveSummarizationSortingCriteria"
+ },
+ "stringIndexType": {
+ "$ref": "common.json#/definitions/StringIndexType"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/PreBuiltTaskParameters"
+ }
+ ]
+ },
+ "ExtractiveSummarizationLROTask": {
+ "type": "object",
+ "description": "An object representing the task definition for an Extractive Summarization task.",
+ "properties": {
+ "parameters": {
+ "$ref": "#/definitions/ExtractiveSummarizationTaskParameters"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextLROTask"
+ }
+ ],
+ "x-ms-discriminator-value": "ExtractiveSummarization"
+ },
+ "ExtractiveSummarizationResult": {
+ "type": "object",
+ "properties": {
+ "documents": {
+ "type": "array",
+ "description": "Response by document",
+ "items": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/ExtractedSummaryDocumentResult"
+ }
+ ]
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/PreBuiltResult"
+ }
+ ],
+ "required": [
+ "documents"
+ ]
+ },
+ "ExtractiveSummarizationSortingCriteria": {
+ "type": "string",
+ "default": "Offset",
+ "description": "The sorting criteria to use for the results of Extractive Summarization.",
+ "enum": [
+ "Offset",
+ "Rank"
+ ],
+ "x-ms-enum": {
+ "name": "ExtractiveSummarizationSortingCriteria",
+ "modelAsString": true,
+ "values": [
+ {
+ "name": "Offset",
+ "description": "Indicates that results should be sorted in order of appearance in the text.",
+ "value": "Offset"
+ },
+ {
+ "name": "Rank",
+ "description": "Indicates that results should be sorted in order of importance (i.e. rank score) according to the model.",
+ "value": "Rank"
+ }
+ ]
+ }
+ },
+ "ExtractedSummaryDocumentResult": {
+ "type": "object",
+ "properties": {
+ "sentences": {
+ "type": "array",
+ "description": "A ranked list of sentences representing the extracted summary.",
+ "items": {
+ "$ref": "#/definitions/ExtractedSummarySentence"
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/DocumentResult"
+ }
+ ],
+ "required": [
+ "sentences"
+ ]
+ },
+ "ExtractedSummarySentence": {
+ "type": "object",
+ "required": [
+ "text",
+ "rankScore",
+ "offset",
+ "length"
+ ],
+ "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."
+ }
+ }
+ },
+ "KeyPhraseTaskParameters": {
+ "type": "object",
+ "description": "Supported parameters for a Key Phrase Extraction task.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PreBuiltTaskParameters"
+ }
+ ]
+ },
+ "KeyPhraseLROTask": {
+ "type": "object",
+ "description": "An object representing the task definition for a Key Phrase Extraction task.",
+ "properties": {
+ "parameters": {
+ "$ref": "#/definitions/KeyPhraseTaskParameters"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextLROTask"
+ }
+ ],
+ "x-ms-discriminator-value": "KeyPhraseExtraction"
+ },
+ "KeyPhraseTaskResult": {
+ "type": "object",
+ "properties": {
+ "results": {
+ "$ref": "#/definitions/KeyPhraseResult"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextTaskResult"
+ }
+ ],
+ "x-ms-discriminator-value": "KeyPhraseExtractionResults"
+ },
+ "KeyPhraseResult": {
+ "type": "object",
+ "properties": {
+ "documents": {
+ "type": "array",
+ "description": "Response by document",
+ "items": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/KeyPhrasesDocumentResult"
+ }
+ ]
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/PreBuiltResult"
+ }
+ ],
+ "required": [
+ "documents"
+ ]
+ },
+ "KeyPhrasesDocumentResult": {
+ "type": "object",
+ "properties": {
+ "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"
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/DocumentResult"
+ }
+ ],
+ "required": [
+ "keyPhrases"
+ ]
+ },
+ "LanguageDetectionTaskParameters": {
+ "type": "object",
+ "description": "Supported parameters for a Language Detection task.",
+ "allOf": [
+ {
+ "$ref": "#/definitions/PreBuiltTaskParameters"
+ }
+ ]
+ },
+ "LanguageDetectionTaskResult": {
+ "type": "object",
+ "properties": {
+ "results": {
+ "$ref": "#/definitions/LanguageDetectionResult"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextTaskResult"
+ }
+ ],
+ "x-ms-discriminator-value": "LanguageDetectionResults"
+ },
+ "LanguageDetectionResult": {
+ "type": "object",
+ "properties": {
+ "documents": {
+ "type": "array",
+ "description": "Response by document",
+ "items": {
+ "$ref": "#/definitions/LanguageDetectionDocumentResult"
+ }
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/PreBuiltResult"
+ }
+ ],
+ "required": [
+ "documents"
+ ]
+ },
+ "LanguageDetectionDocumentResult": {
+ "type": "object",
+ "properties": {
+ "detectedLanguage": {
+ "description": "Detected Language.",
+ "$ref": "#/definitions/DetectedLanguage"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/DocumentResult"
+ }
+ ],
+ "required": [
+ "detectedLanguage"
+ ]
+ },
+ "DetectedLanguage": {
+ "type": "object",
+ "required": [
+ "name",
+ "iso6391Name",
+ "confidenceScore"
+ ],
+ "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."
+ }
+ }
+ },
+ "AnalyzeTextJobState": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/JobState"
+ },
+ {
+ "$ref": "#/definitions/TasksState"
+ },
+ {
+ "$ref": "#/definitions/AnalyzeTextJobStatistics"
+ }
+ ]
+ },
+ "Pagination": {
+ "properties": {
+ "nextLink": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "JobMetadata": {
+ "properties": {
+ "displayName": {
+ "type": "string"
+ },
+ "createdDateTime": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "expirationDateTime": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "jobId": {
+ "format": "uuid",
+ "type": "string"
+ },
+ "lastUpdateDateTime": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "notStarted",
+ "running",
+ "succeeded",
+ "partiallySucceeded",
+ "failed",
+ "cancelled",
+ "cancelling"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "modelAsString": false,
+ "name": "State"
+ }
+ }
+ },
+ "required": [
+ "jobId",
+ "lastUpdateDateTime",
+ "createdDateTime",
+ "status"
+ ],
+ "type": "object"
+ },
+ "JobState": {
+ "properties": {
+ "displayName": {
+ "type": "string"
+ },
+ "createdDateTime": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "expirationDateTime": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "jobId": {
+ "format": "uuid",
+ "type": "string"
+ },
+ "lastUpdateDateTime": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "notStarted",
+ "running",
+ "succeeded",
+ "partiallySucceeded",
+ "failed",
+ "cancelled",
+ "cancelling"
+ ],
+ "type": "string",
+ "x-ms-enum": {
+ "modelAsString": false,
+ "name": "State"
+ }
+ },
+ "errors": {
+ "items": {
+ "$ref": "common.json#/definitions/Error"
+ },
+ "type": "array"
+ },
+ "nextLink": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "jobId",
+ "lastUpdateDateTime",
+ "createdDateTime",
+ "status"
+ ]
+ },
+ "JobErrors": {
+ "properties": {
+ "errors": {
+ "items": {
+ "$ref": "common.json#/definitions/Error"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "AnalyzeTextJobStatistics": {
+ "properties": {
+ "statistics": {
+ "$ref": "#/definitions/RequestStatistics"
+ }
+ },
+ "type": "object"
+ },
+ "TasksState": {
+ "properties": {
+ "tasks": {
+ "properties": {
+ "completed": {
+ "type": "integer"
+ },
+ "failed": {
+ "type": "integer"
+ },
+ "inProgress": {
+ "type": "integer"
+ },
+ "total": {
+ "type": "integer"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/AnalyzeTextLROResult"
+ }
+ }
+ },
+ "required": [
+ "total",
+ "completed",
+ "failed",
+ "inProgress"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "tasks"
+ ],
+ "type": "object"
+ },
+ "TaskState": {
+ "properties": {
+ "lastUpdateDateTime": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "notStarted",
+ "running",
+ "succeeded",
+ "failed",
+ "cancelled",
+ "cancelling"
+ ],
+ "x-ms-enum": {
+ "modelAsString": false,
+ "name": "State"
+ }
+ }
+ },
+ "required": [
+ "status",
+ "lastUpdateDateTime"
+ ],
+ "type": "object"
+ },
+ "AnalyzeTextLROResult": {
+ "type": "object",
+ "discriminator": "kind",
+ "properties": {
+ "kind": {
+ "$ref": "#/definitions/AnalyzeTextLROResultsKind"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/TaskState"
+ },
+ {
+ "$ref": "#/definitions/TaskIdentifier"
+ }
+ ],
+ "required": [
+ "kind"
+ ]
+ },
+ "EntityRecognitionLROResult": {
+ "type": "object",
+ "properties": {
+ "results": {
+ "$ref": "#/definitions/EntitiesResult"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextLROResult"
+ }
+ ],
+ "required": [
+ "results"
+ ],
+ "x-ms-discriminator-value": "EntityRecognitionLROResults"
+ },
+ "CustomEntityRecognitionLROResult": {
+ "type": "object",
+ "properties": {
+ "results": {
+ "$ref": "#/definitions/CustomEntitiesResult"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextLROResult"
+ }
+ ],
+ "required": [
+ "results"
+ ],
+ "x-ms-discriminator-value": "CustomEntityRecognitionLROResults"
+ },
+ "CustomSingleLabelClassificationLROResult": {
+ "type": "object",
+ "properties": {
+ "results": {
+ "$ref": "#/definitions/CustomSingleLabelClassificationResult"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextLROResult"
+ }
+ ],
+ "required": [
+ "results"
+ ],
+ "x-ms-discriminator-value": "CustomSingleLabelClassificationLROResults"
+ },
+ "CustomMultiLabelClassificationLROResult": {
+ "type": "object",
+ "properties": {
+ "results": {
+ "$ref": "#/definitions/CustomMultiLabelClassificationResult"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextLROResult"
+ }
+ ],
+ "required": [
+ "results"
+ ],
+ "x-ms-discriminator-value": "CustomMultiLabelClassificationLROResults"
+ },
+ "EntityLinkingLROResult": {
+ "type": "object",
+ "properties": {
+ "results": {
+ "$ref": "#/definitions/EntityLinkingResult"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextLROResult"
+ }
+ ],
+ "required": [
+ "results"
+ ],
+ "x-ms-discriminator-value": "EntityLinkingLROResults"
+ },
+ "PiiEntityRecognitionLROResult": {
+ "type": "object",
+ "properties": {
+ "results": {
+ "$ref": "#/definitions/PiiResult"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextLROResult"
+ }
+ ],
+ "required": [
+ "results"
+ ],
+ "x-ms-discriminator-value": "PiiEntityRecognitionLROResults"
+ },
+ "ExtractiveSummarizationLROResult": {
+ "type": "object",
+ "properties": {
+ "results": {
+ "$ref": "#/definitions/ExtractiveSummarizationResult"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextLROResult"
+ }
+ ],
+ "required": [
+ "results"
+ ],
+ "x-ms-discriminator-value": "ExtractiveSummarizationLROResults"
+ },
+ "HealthcareLROResult": {
+ "type": "object",
+ "properties": {
+ "results": {
+ "$ref": "#/definitions/HealthcareResult"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextLROResult"
+ }
+ ],
+ "required": [
+ "results"
+ ],
+ "x-ms-discriminator-value": "HealthcareLROResults"
+ },
+ "SentimentLROResult": {
+ "type": "object",
+ "properties": {
+ "results": {
+ "$ref": "#/definitions/SentimentResponse"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextLROResult"
+ }
+ ],
+ "required": [
+ "results"
+ ],
+ "x-ms-discriminator-value": "SentimentAnalysisLROResults"
+ },
+ "KeyPhraseExtractionLROResult": {
+ "type": "object",
+ "properties": {
+ "results": {
+ "$ref": "#/definitions/KeyPhraseResult"
+ }
+ },
+ "allOf": [
+ {
+ "$ref": "#/definitions/AnalyzeTextLROResult"
+ }
+ ],
+ "required": [
+ "results"
+ ],
+ "x-ms-discriminator-value": "KeyPhraseExtractionLROResults"
+ },
+ "DocumentResponse": {
+ "type": "object",
+ "properties": {}
+ },
+ "DocumentResult": {
+ "type": "object",
+ "required": [
+ "id",
+ "warnings"
+ ],
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Unique, non-empty document identifier."
+ },
+ "warnings": {
+ "type": "array",
+ "description": "Warnings encountered while processing document.",
+ "items": {
+ "$ref": "#/definitions/DocumentWarning"
+ }
+ },
+ "statistics": {
+ "description": "if showStats=true was specified in the request this field will contain information about the document payload.",
+ "$ref": "#/definitions/DocumentStatistics"
+ }
+ }
+ },
+ "DocumentError": {
+ "type": "object",
+ "required": [
+ "id",
+ "error"
+ ],
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Document Id."
+ },
+ "error": {
+ "type": "object",
+ "description": "Document Error.",
+ "$ref": "common.json#/definitions/Error"
+ }
+ }
+ },
+ "DocumentWarning": {
+ "type": "object",
+ "required": [
+ "code",
+ "message"
+ ],
+ "properties": {
+ "code": {
+ "type": "string",
+ "enum": [
+ "LongWordsInDocument",
+ "DocumentTruncated"
+ ],
+ "x-ms-enum": {
+ "name": "WarningCodeValue",
+ "modelAsString": true
+ },
+ "description": "Error code."
+ },
+ "message": {
+ "type": "string",
+ "description": "Warning message."
+ },
+ "targetRef": {
+ "type": "string",
+ "description": "A JSON pointer reference indicating the target object."
+ }
+ }
+ },
+ "DocumentStatistics": {
+ "type": "object",
+ "required": [
+ "charactersCount",
+ "transactionsCount"
+ ],
+ "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."
+ }
+ },
+ "description": "if showStats=true was specified in the request this field will contain information about the document payload."
+ },
+ "RequestStatistics": {
+ "type": "object",
+ "required": [
+ "documentsCount",
+ "validDocumentsCount",
+ "erroneousDocumentsCount",
+ "transactionsCount"
+ ],
+ "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."
+ }
+ },
+ "description": "if showStats=true was specified in the request this field will contain information about the request payload."
+ },
+ "MultiLanguageInput": {
+ "type": "object",
+ "description": "Contains an input document to be analyzed by the service.",
+ "required": [
+ "id",
+ "text"
+ ],
+ "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."
+ }
+ }
+ },
+ "LanguageInput": {
+ "type": "object",
+ "required": [
+ "id",
+ "text"
+ ],
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "Unique, non-empty document identifier."
+ },
+ "text": {
+ "type": "string"
+ },
+ "countryHint": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "parameters": {
+ "ShowStats": {
+ "name": "showStats",
+ "in": "query",
+ "description": "(Optional) if set to true, response will contain request and document level statistics.",
+ "type": "boolean",
+ "required": false,
+ "x-ms-parameter-location": "method"
+ },
+ "JobId": {
+ "description": "Job ID",
+ "format": "uuid",
+ "in": "path",
+ "name": "jobId",
+ "required": true,
+ "type": "string",
+ "x-ms-parameter-location": "method"
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/readme.md b/specification/cognitiveservices/data-plane/Language/readme.md
index 09d48dead6dc..edabd823b23c 100644
--- a/specification/cognitiveservices/data-plane/Language/readme.md
+++ b/specification/cognitiveservices/data-plane/Language/readme.md
@@ -6,9 +6,19 @@ This is the AutoRest configuration file the Cognitive Services Language SDK.
## Releases
-The current preview release is 2022-02-01-preview
+The current preview release of Conversational Language Understanding and Text Analytics is 2022-03-01-preview.
-The current stable release of QuestionAnswering is 2021-10-01 and preview release of Luis Deepstack is 2021-07-15-preview
+The current stable release of Question Answering is 2021-10-01.
+
+```yaml
+tag: release_2022_03_01_preview
+add-credentials: true
+clear-output-folder: true
+openapi-type: data-plane
+directive:
+ - suppress: LongRunningResponseStatusCode
+ reason: The validation tools do not properly recognize 202 as a supported response code.
+```
```yaml
tag: release_2022_02_01_preview
@@ -30,7 +40,6 @@ directive:
reason: The validation tools do not properly recognize 202 as a supported response code.
```
-
```yaml
tag: release_2021_10_01
add-credentials: true
@@ -45,6 +54,20 @@ clear-output-folder: true
openapi-type: data-plane
```
+### Release 2022-03-01-preview
+
+These settings apply only when `--tag=release_2022_03_01_preview` is specified on the command line.
+
+``` yaml $(tag) == 'release_2022_03_01_preview'
+input-file:
+ - preview/2022-03-01-preview/textanalytics.json
+ - preview/2022-03-01-preview/analyzeconversations.json
+title:
+ Microsoft Cognitive Language Service
+modelerfour:
+ lenient-model-deduplication: true
+```
+
### Release 2022-02-01-preview
These settings apply only when `--tag=release_2022_02_01_preview` is specified on the command line.
@@ -123,3 +146,13 @@ swagger-to-sdk:
- repo: azure-sdk-for-net
- repo: azure-sdk-for-python
```
+### Tag: package-preview-2022-03
+
+These settings apply only when `--tag=package-preview-2022-03` is specified on the command line.
+
+```yaml $(tag) == 'package-preview-2022-03'
+input-file:
+ - preview/2022-03-01-preview/common.json
+ - preview/2022-03-01-preview/textanalytics.json
+ - preview/2022-03-01-preview/analyzeconversations.json
+```