Options
All
  • Public
  • Public/Protected
  • All
Menu

@azure/ai-text-analytics

Package version

Index

Classes

Interfaces

Type aliases

Variables

Functions

Object literals

Type aliases

AnalyzeSentimentErrorResult

AnalyzeSentimentErrorResult: TextAnalyticsErrorResult

An error result from the analyze sentiment operation on a single document.

AnalyzeSentimentOptions

AnalyzeSentimentOptions: TextAnalyticsOperationOptions

Options for the analyze sentiment operation.

AnalyzeSentimentResult

The result of the analyze sentiment operation on a single document.

DetectLanguageErrorResult

DetectLanguageErrorResult: TextAnalyticsErrorResult

An error result from the detect languge operation on a single document.

DetectLanguageOptions

DetectLanguageOptions: TextAnalyticsOperationOptions

Options for the detect languages operation.

DetectLanguageResult

The result of the detect language operation on a single document.

DocumentSentimentLabel

DocumentSentimentLabel: "positive" | "neutral" | "negative" | "mixed"

Defines values for DocumentSentimentLabel. Possible values include: 'positive', 'neutral', 'negative', 'mixed'

readonly

EntitiesLinkingResponse

EntitiesLinkingResponse: EntityLinkingResult & { _response: coreHttp.HttpResponse & { bodyAsText: string; parsedBody: EntityLinkingResult } }

Contains response data for the entitiesLinking operation.

EntitiesRecognitionGeneralResponse

EntitiesRecognitionGeneralResponse: EntitiesResult & { _response: coreHttp.HttpResponse & { bodyAsText: string; parsedBody: EntitiesResult } }

Contains response data for the entitiesRecognitionGeneral operation.

ErrorCode

An Error Code returned from the Text Analytics service. Possible values include:

For more information about the error, see the message property of the associated error.

ErrorCodeValue

ErrorCodeValue: "InvalidRequest" | "InvalidArgument" | "InternalServerError" | "ServiceUnavailable"

Defines values for ErrorCodeValue. Possible values include: 'InvalidRequest', 'InvalidArgument', 'InternalServerError', 'ServiceUnavailable'

readonly

ExtractKeyPhrasesErrorResult

ExtractKeyPhrasesErrorResult: TextAnalyticsErrorResult

An error result from the extract key phrases operation on a single document.

ExtractKeyPhrasesOptions

ExtractKeyPhrasesOptions: TextAnalyticsOperationOptions

Options for the extract key phrases operation.

ExtractKeyPhrasesResult

The result of the extract key phrases operation on a single document.

InnerErrorCodeValue

InnerErrorCodeValue: "InvalidParameterValue" | "InvalidRequestBodyFormat" | "EmptyRequest" | "MissingInputRecords" | "InvalidDocument" | "ModelVersionIncorrect" | "InvalidDocumentBatch" | "UnsupportedLanguageCode" | "InvalidCountryHint"

Defines values for InnerErrorCodeValue. Possible values include: 'InvalidParameterValue', 'InvalidRequestBodyFormat', 'EmptyRequest', 'MissingInputRecords', 'InvalidDocument', 'ModelVersionIncorrect', 'InvalidDocumentBatch', 'UnsupportedLanguageCode', 'InvalidCountryHint'

readonly

KeyPhrasesResponse

KeyPhrasesResponse: KeyPhraseResult & { _response: coreHttp.HttpResponse & { bodyAsText: string; parsedBody: KeyPhraseResult } }

Contains response data for the keyPhrases operation.

LanguagesResponse

LanguagesResponse: LanguageResult & { _response: coreHttp.HttpResponse & { bodyAsText: string; parsedBody: LanguageResult } }

Contains response data for the languages operation.

OperationTracingOptions

OperationTracingOptions: OperationOptions["tracingOptions"]

RecognizeCategorizedEntitiesErrorResult

RecognizeCategorizedEntitiesErrorResult: TextAnalyticsErrorResult

An error result from the recognize entities operation on a single document.

RecognizeCategorizedEntitiesOptions

RecognizeCategorizedEntitiesOptions: TextAnalyticsOperationOptions

Options for the recognize entities operation.

RecognizeCategorizedEntitiesResult

The result of the recognize entities operation on a single document.

RecognizeLinkedEntitiesErrorResult

RecognizeLinkedEntitiesErrorResult: TextAnalyticsErrorResult

An error result from the recognize linked entities operation on a single document.

RecognizeLinkedEntitiesOptions

RecognizeLinkedEntitiesOptions: TextAnalyticsOperationOptions

Options for the recognize linked entities operation.

RecognizeLinkedEntitiesResult

The result of the recognize linked entities operation on a single document.

SentenceSentimentLabel

SentenceSentimentLabel: "positive" | "neutral" | "negative"

Defines values for SentenceSentimentLabel. Possible values include: 'positive', 'neutral', 'negative'

readonly

SentimentResponse2

SentimentResponse2: SentimentResponse & { _response: coreHttp.HttpResponse & { bodyAsText: string; parsedBody: SentimentResponse } }

Contains response data for the sentiment operation.

TextAnalyticsResult

The result of a text analytics operation on a single input document.

WarningCode

WarningCode: "LongWordsInDocument" | "DocumentTruncated"

Defines values for WarningCode. Possible values include: 'LongWordsInDocument', 'DocumentTruncated'

readonly

Variables

Const API_KEY_HEADER_NAME

API_KEY_HEADER_NAME: "Ocp-Apim-Subscription-Key" = "Ocp-Apim-Subscription-Key"

Const DEFAULT_COGNITIVE_SCOPE

DEFAULT_COGNITIVE_SCOPE: "https://cognitiveservices.azure.com/.default" = "https://cognitiveservices.azure.com/.default"

Const SDK_VERSION

SDK_VERSION: string = "5.0.1"

Const logger

logger: any = createClientLogger("ai-text-analytics")

The @azure/logger configuration for this package.

Const packageName

packageName: "@azure/ai-text-analytics" = "@azure/ai-text-analytics"

Const packageVersion

packageVersion: "5.0.1" = "5.0.1"

Const serializer

serializer: any = new coreHttp.Serializer(Mappers)

Functions

convertToDetectLanguageInput

convertToTextDocumentInput

  • convertToTextDocumentInput(inputs: string[], language: string): TextDocumentInput[]

createTextAnalyticsAzureKeyCredentialPolicy

  • createTextAnalyticsAzureKeyCredentialPolicy(credential: KeyCredential): RequestPolicyFactory
  • Create an HTTP pipeline policy to authenticate a request using an AzureKeyCredential for Text Analytics

    Parameters

    • credential: KeyCredential

    Returns RequestPolicyFactory

intoTextAnalyticsError

  • intoTextAnalyticsError(errorModel: GeneratedTextAnalyticsErrorModel | InnerError): TextAnalyticsError
  • Helper function for converting nested service error into the unified TextAnalyticsError

    Parameters

    • errorModel: GeneratedTextAnalyticsErrorModel | InnerError

    Returns TextAnalyticsError

isStringArray

  • isStringArray(documents: any[]): documents is string[]

makeAnalyzeSentimentErrorResult

makeAnalyzeSentimentResult

makeAnalyzeSentimentResultArray

makeDetectLanguageErrorResult

makeDetectLanguageResult

makeDetectLanguageResultArray

makeExtractKeyPhrasesErrorResult

makeExtractKeyPhrasesResult

makeExtractKeyPhrasesResultArray

makeRecognizeCategorizedEntitiesErrorResult

makeRecognizeCategorizedEntitiesResult

makeRecognizeCategorizedEntitiesResultArray

makeRecognizeLinkedEntitiesErrorResult

makeRecognizeLinkedEntitiesResult

makeRecognizeLinkedEntitiesResultArray

makeTextAnalyticsErrorResult

makeTextAnalyticsSuccessResult

Object literals

Const DetectLanguageInput

DetectLanguageInput: object

serializedName

serializedName: string = "DetectLanguageInput"

type

type: object

className

className: string = "DetectLanguageInput"

name

name: string = "Composite"

modelProperties

modelProperties: object

countryHint

countryHint: object

serializedName

serializedName: string = "countryHint"

type

type: object

name

name: string = "String"

id

id: object

required

required: boolean = true

serializedName

serializedName: string = "id"

type

type: object

name

name: string = "String"

text

text: object

required

required: boolean = true

serializedName

serializedName: string = "text"

type

type: object

name

name: string = "String"

Const DetectedLanguage

DetectedLanguage: object

serializedName

serializedName: string = "DetectedLanguage"

type

type: object

className

className: string = "DetectedLanguage"

name

name: string = "Composite"

modelProperties

modelProperties: object

confidenceScore

confidenceScore: object

required

required: boolean = true

serializedName

serializedName: string = "confidenceScore"

type

type: object

name

name: string = "Number"

iso6391Name

iso6391Name: object

required

required: boolean = true

serializedName

serializedName: string = "iso6391Name"

type

type: object

name

name: string = "String"

name

name: object

required

required: boolean = true

serializedName

serializedName: string = "name"

type

type: object

name

name: string = "String"

Const DocumentEntities

DocumentEntities: object

serializedName

serializedName: string = "DocumentEntities"

type

type: object

className

className: string = "DocumentEntities"

name

name: string = "Composite"

modelProperties

modelProperties: object

entities

entities: object

required

required: boolean = true

serializedName

serializedName: string = "entities"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "Entity"

name

name: string = "Composite"

id

id: object

required

required: boolean = true

serializedName

serializedName: string = "id"

type

type: object

name

name: string = "String"

statistics

statistics: object

serializedName

serializedName: string = "statistics"

type

type: object

className

className: string = "TextDocumentStatistics"

name

name: string = "Composite"

warnings

warnings: object

required

required: boolean = true

serializedName

serializedName: string = "warnings"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "TextAnalyticsWarning"

name

name: string = "Composite"

Const DocumentError

DocumentError: object

serializedName

serializedName: string = "DocumentError"

type

type: object

className

className: string = "DocumentError"

name

name: string = "Composite"

modelProperties

modelProperties: object

error

error: object

required

required: boolean = true

serializedName

serializedName: string = "error"

type

type: object

className

className: string = "TextAnalyticsError"

name

name: string = "Composite"

id

id: object

required

required: boolean = true

serializedName

serializedName: string = "id"

type

type: object

name

name: string = "String"

Const DocumentKeyPhrases

DocumentKeyPhrases: object

serializedName

serializedName: string = "DocumentKeyPhrases"

type

type: object

className

className: string = "DocumentKeyPhrases"

name

name: string = "Composite"

modelProperties

modelProperties: object

id

id: object

required

required: boolean = true

serializedName

serializedName: string = "id"

type

type: object

name

name: string = "String"

keyPhrases

keyPhrases: object

required

required: boolean = true

serializedName

serializedName: string = "keyPhrases"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

name

name: string = "String"

statistics

statistics: object

serializedName

serializedName: string = "statistics"

type

type: object

className

className: string = "TextDocumentStatistics"

name

name: string = "Composite"

warnings

warnings: object

required

required: boolean = true

serializedName

serializedName: string = "warnings"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "TextAnalyticsWarning"

name

name: string = "Composite"

Const DocumentLanguage

DocumentLanguage: object

serializedName

serializedName: string = "DocumentLanguage"

type

type: object

className

className: string = "DocumentLanguage"

name

name: string = "Composite"

modelProperties

modelProperties: object

detectedLanguage

detectedLanguage: object

required

required: boolean = true

serializedName

serializedName: string = "detectedLanguage"

type

type: object

className

className: string = "DetectedLanguage"

name

name: string = "Composite"

id

id: object

required

required: boolean = true

serializedName

serializedName: string = "id"

type

type: object

name

name: string = "String"

statistics

statistics: object

serializedName

serializedName: string = "statistics"

type

type: object

className

className: string = "TextDocumentStatistics"

name

name: string = "Composite"

warnings

warnings: object

required

required: boolean = true

serializedName

serializedName: string = "warnings"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "TextAnalyticsWarning"

name

name: string = "Composite"

Const DocumentLinkedEntities

DocumentLinkedEntities: object

serializedName

serializedName: string = "DocumentLinkedEntities"

type

type: object

className

className: string = "DocumentLinkedEntities"

name

name: string = "Composite"

modelProperties

modelProperties: object

entities

entities: object

required

required: boolean = true

serializedName

serializedName: string = "entities"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "LinkedEntity"

name

name: string = "Composite"

id

id: object

required

required: boolean = true

serializedName

serializedName: string = "id"

type

type: object

name

name: string = "String"

statistics

statistics: object

serializedName

serializedName: string = "statistics"

type

type: object

className

className: string = "TextDocumentStatistics"

name

name: string = "Composite"

warnings

warnings: object

required

required: boolean = true

serializedName

serializedName: string = "warnings"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "TextAnalyticsWarning"

name

name: string = "Composite"

Const DocumentSentiment

DocumentSentiment: object

serializedName

serializedName: string = "DocumentSentiment"

type

type: object

className

className: string = "DocumentSentiment"

name

name: string = "Composite"

modelProperties

modelProperties: object

confidenceScores

confidenceScores: object

required

required: boolean = true

serializedName

serializedName: string = "confidenceScores"

type

type: object

className

className: string = "SentimentConfidenceScores"

name

name: string = "Composite"

id

id: object

required

required: boolean = true

serializedName

serializedName: string = "id"

type

type: object

name

name: string = "String"

sentenceSentiments

sentenceSentiments: object

required

required: boolean = true

serializedName

serializedName: string = "sentences"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "SentenceSentiment"

name

name: string = "Composite"

sentiment

sentiment: object

required

required: boolean = true

serializedName

serializedName: string = "sentiment"

type

type: object

allowedValues

allowedValues: Object = ["positive","neutral","negative","mixed"]

name

name: string = "Enum"

statistics

statistics: object

serializedName

serializedName: string = "statistics"

type

type: object

className

className: string = "TextDocumentStatistics"

name

name: string = "Composite"

warnings

warnings: object

required

required: boolean = true

serializedName

serializedName: string = "warnings"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "TextAnalyticsWarning"

name

name: string = "Composite"

Const EntitiesResult

EntitiesResult: object

serializedName

serializedName: string = "EntitiesResult"

type

type: object

className

className: string = "EntitiesResult"

name

name: string = "Composite"

modelProperties

modelProperties: object

documents

documents: object

required

required: boolean = true

serializedName

serializedName: string = "documents"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "DocumentEntities"

name

name: string = "Composite"

errors

errors: object

required

required: boolean = true

serializedName

serializedName: string = "errors"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "DocumentError"

name

name: string = "Composite"

modelVersion

modelVersion: object

required

required: boolean = true

serializedName

serializedName: string = "modelVersion"

type

type: object

name

name: string = "String"

statistics

statistics: object

serializedName

serializedName: string = "statistics"

type

type: object

className

className: string = "TextDocumentBatchStatistics"

name

name: string = "Composite"

Const Entity

Entity: object

serializedName

serializedName: string = "Entity"

type

type: object

className

className: string = "Entity"

name

name: string = "Composite"

modelProperties

modelProperties: object

category

category: object

required

required: boolean = true

serializedName

serializedName: string = "category"

type

type: object

name

name: string = "String"

confidenceScore

confidenceScore: object

required

required: boolean = true

serializedName

serializedName: string = "confidenceScore"

type

type: object

name

name: string = "Number"

subCategory

subCategory: object

serializedName

serializedName: string = "subcategory"

type

type: object

name

name: string = "String"

text

text: object

required

required: boolean = true

serializedName

serializedName: string = "text"

type

type: object

name

name: string = "String"

Const EntityLinkingResult

EntityLinkingResult: object

serializedName

serializedName: string = "EntityLinkingResult"

type

type: object

className

className: string = "EntityLinkingResult"

name

name: string = "Composite"

modelProperties

modelProperties: object

documents

documents: object

required

required: boolean = true

serializedName

serializedName: string = "documents"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "DocumentLinkedEntities"

name

name: string = "Composite"

errors

errors: object

required

required: boolean = true

serializedName

serializedName: string = "errors"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "DocumentError"

name

name: string = "Composite"

modelVersion

modelVersion: object

required

required: boolean = true

serializedName

serializedName: string = "modelVersion"

type

type: object

name

name: string = "String"

statistics

statistics: object

serializedName

serializedName: string = "statistics"

type

type: object

className

className: string = "TextDocumentBatchStatistics"

name

name: string = "Composite"

Const InnerError

InnerError: object

serializedName

serializedName: string = "InnerError"

type

type: object

className

className: string = "InnerError"

name

name: string = "Composite"

modelProperties

modelProperties: object

code

code: object

required

required: boolean = true

serializedName

serializedName: string = "code"

type

type: object

allowedValues

allowedValues: Object = ["InvalidParameterValue","InvalidRequestBodyFormat","EmptyRequest","MissingInputRecords","InvalidDocument","ModelVersionIncorrect","InvalidDocumentBatch","UnsupportedLanguageCode","InvalidCountryHint"]

name

name: string = "Enum"

details

details: object

serializedName

serializedName: string = "details"

type

type: object

name

name: string = "Dictionary"

value

value: object

type

type: object

name

name: string = "String"

innerError

innerError: object

serializedName

serializedName: string = "innererror"

type

type: object

className

className: string = "InnerError"

name

name: string = "Composite"

message

message: object

required

required: boolean = true

serializedName

serializedName: string = "message"

type

type: object

name

name: string = "String"

target

target: object

serializedName

serializedName: string = "target"

type

type: object

name

name: string = "String"

Const KeyPhraseResult

KeyPhraseResult: object

serializedName

serializedName: string = "KeyPhraseResult"

type

type: object

className

className: string = "KeyPhraseResult"

name

name: string = "Composite"

modelProperties

modelProperties: object

documents

documents: object

required

required: boolean = true

serializedName

serializedName: string = "documents"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "DocumentKeyPhrases"

name

name: string = "Composite"

errors

errors: object

required

required: boolean = true

serializedName

serializedName: string = "errors"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "DocumentError"

name

name: string = "Composite"

modelVersion

modelVersion: object

required

required: boolean = true

serializedName

serializedName: string = "modelVersion"

type

type: object

name

name: string = "String"

statistics

statistics: object

serializedName

serializedName: string = "statistics"

type

type: object

className

className: string = "TextDocumentBatchStatistics"

name

name: string = "Composite"

Const LanguageBatchInput

LanguageBatchInput: object

serializedName

serializedName: string = "LanguageBatchInput"

type

type: object

className

className: string = "LanguageBatchInput"

name

name: string = "Composite"

modelProperties

modelProperties: object

documents

documents: object

required

required: boolean = true

serializedName

serializedName: string = "documents"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "DetectLanguageInput"

name

name: string = "Composite"

Const LanguageResult

LanguageResult: object

serializedName

serializedName: string = "LanguageResult"

type

type: object

className

className: string = "LanguageResult"

name

name: string = "Composite"

modelProperties

modelProperties: object

documents

documents: object

required

required: boolean = true

serializedName

serializedName: string = "documents"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "DocumentLanguage"

name

name: string = "Composite"

errors

errors: object

required

required: boolean = true

serializedName

serializedName: string = "errors"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "DocumentError"

name

name: string = "Composite"

modelVersion

modelVersion: object

required

required: boolean = true

serializedName

serializedName: string = "modelVersion"

type

type: object

name

name: string = "String"

statistics

statistics: object

serializedName

serializedName: string = "statistics"

type

type: object

className

className: string = "TextDocumentBatchStatistics"

name

name: string = "Composite"

Const LinkedEntity

LinkedEntity: object

serializedName

serializedName: string = "LinkedEntity"

type

type: object

className

className: string = "LinkedEntity"

name

name: string = "Composite"

modelProperties

modelProperties: object

dataSource

dataSource: object

required

required: boolean = true

serializedName

serializedName: string = "dataSource"

type

type: object

name

name: string = "String"

dataSourceEntityId

dataSourceEntityId: object

serializedName

serializedName: string = "id"

type

type: object

name

name: string = "String"

language

language: object

required

required: boolean = true

serializedName

serializedName: string = "language"

type

type: object

name

name: string = "String"

matches

matches: object

required

required: boolean = true

serializedName

serializedName: string = "matches"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "Match"

name

name: string = "Composite"

name

name: object

required

required: boolean = true

serializedName

serializedName: string = "name"

type

type: object

name

name: string = "String"

url

url: object

required

required: boolean = true

serializedName

serializedName: string = "url"

type

type: object

name

name: string = "String"

Const Match

Match: object

serializedName

serializedName: string = "Match"

type

type: object

className

className: string = "Match"

name

name: string = "Composite"

modelProperties

modelProperties: object

confidenceScore

confidenceScore: object

required

required: boolean = true

serializedName

serializedName: string = "confidenceScore"

type

type: object

name

name: string = "Number"

text

text: object

required

required: boolean = true

serializedName

serializedName: string = "text"

type

type: object

name

name: string = "String"

Const MultiLanguageBatchInput

MultiLanguageBatchInput: object

serializedName

serializedName: string = "MultiLanguageBatchInput"

type

type: object

className

className: string = "MultiLanguageBatchInput"

name

name: string = "Composite"

modelProperties

modelProperties: object

documents

documents: object

required

required: boolean = true

serializedName

serializedName: string = "documents"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "TextDocumentInput"

name

name: string = "Composite"

Const SentenceSentiment

SentenceSentiment: object

serializedName

serializedName: string = "SentenceSentiment"

type

type: object

className

className: string = "SentenceSentiment"

name

name: string = "Composite"

modelProperties

modelProperties: object

confidenceScores

confidenceScores: object

required

required: boolean = true

serializedName

serializedName: string = "confidenceScores"

type

type: object

className

className: string = "SentimentConfidenceScores"

name

name: string = "Composite"

sentiment

sentiment: object

required

required: boolean = true

serializedName

serializedName: string = "sentiment"

type

type: object

allowedValues

allowedValues: Object = ["positive","neutral","negative"]

name

name: string = "Enum"

text

text: object

serializedName

serializedName: string = "text"

type

type: object

name

name: string = "String"

Const SentimentConfidenceScores

SentimentConfidenceScores: object

serializedName

serializedName: string = "SentimentConfidenceScores"

type

type: object

className

className: string = "SentimentConfidenceScores"

name

name: string = "Composite"

modelProperties

modelProperties: object

negative

negative: object

required

required: boolean = true

serializedName

serializedName: string = "negative"

type

type: object

name

name: string = "Number"

neutral

neutral: object

required

required: boolean = true

serializedName

serializedName: string = "neutral"

type

type: object

name

name: string = "Number"

positive

positive: object

required

required: boolean = true

serializedName

serializedName: string = "positive"

type

type: object

name

name: string = "Number"

Const SentimentResponse

SentimentResponse: object

serializedName

serializedName: string = "SentimentResponse"

type

type: object

className

className: string = "SentimentResponse"

name

name: string = "Composite"

modelProperties

modelProperties: object

documents

documents: object

required

required: boolean = true

serializedName

serializedName: string = "documents"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "DocumentSentiment"

name

name: string = "Composite"

errors

errors: object

required

required: boolean = true

serializedName

serializedName: string = "errors"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "DocumentError"

name

name: string = "Composite"

modelVersion

modelVersion: object

required

required: boolean = true

serializedName

serializedName: string = "modelVersion"

type

type: object

name

name: string = "String"

statistics

statistics: object

serializedName

serializedName: string = "statistics"

type

type: object

className

className: string = "TextDocumentBatchStatistics"

name

name: string = "Composite"

Const TextAnalyticsError

TextAnalyticsError: object

serializedName

serializedName: string = "TextAnalyticsError"

type

type: object

className

className: string = "TextAnalyticsError"

name

name: string = "Composite"

modelProperties

modelProperties: object

code

code: object

required

required: boolean = true

serializedName

serializedName: string = "code"

type

type: object

allowedValues

allowedValues: Object = ["InvalidRequest","InvalidArgument","InternalServerError","ServiceUnavailable"]

name

name: string = "Enum"

details

details: object

serializedName

serializedName: string = "details"

type

type: object

name

name: string = "Sequence"

element

element: object

type

type: object

className

className: string = "TextAnalyticsError"

name

name: string = "Composite"

innerError

innerError: object

serializedName

serializedName: string = "innererror"

type

type: object

className

className: string = "InnerError"

name

name: string = "Composite"

message

message: object

required

required: boolean = true

serializedName

serializedName: string = "message"

type

type: object

name

name: string = "String"

target

target: object

serializedName

serializedName: string = "target"

type

type: object

name

name: string = "String"

Const TextAnalyticsWarning

TextAnalyticsWarning: object

serializedName

serializedName: string = "TextAnalyticsWarning"

type

type: object

className

className: string = "TextAnalyticsWarning"

name

name: string = "Composite"

modelProperties

modelProperties: object

code

code: object

required

required: boolean = true

serializedName

serializedName: string = "code"

type

type: object

allowedValues

allowedValues: Object = ["LongWordsInDocument","DocumentTruncated"]

name

name: string = "Enum"

message

message: object

required

required: boolean = true

serializedName

serializedName: string = "message"

type

type: object

name

name: string = "String"

Const TextDocumentBatchStatistics

TextDocumentBatchStatistics: object

serializedName

serializedName: string = "TextDocumentBatchStatistics"

type

type: object

className

className: string = "TextDocumentBatchStatistics"

name

name: string = "Composite"

modelProperties

modelProperties: object

documentCount

documentCount: object

required

required: boolean = true

serializedName

serializedName: string = "documentsCount"

type

type: object

name

name: string = "Number"

erroneousDocumentCount

erroneousDocumentCount: object

required

required: boolean = true

serializedName

serializedName: string = "erroneousDocumentsCount"

type

type: object

name

name: string = "Number"

transactionCount

transactionCount: object

required

required: boolean = true

serializedName

serializedName: string = "transactionsCount"

type

type: object

name

name: string = "Number"

validDocumentCount

validDocumentCount: object

required

required: boolean = true

serializedName

serializedName: string = "validDocumentsCount"

type

type: object

name

name: string = "Number"

Const TextDocumentInput

TextDocumentInput: object

serializedName

serializedName: string = "TextDocumentInput"

type

type: object

className

className: string = "TextDocumentInput"

name

name: string = "Composite"

modelProperties

modelProperties: object

id

id: object

required

required: boolean = true

serializedName

serializedName: string = "id"

type

type: object

name

name: string = "String"

language

language: object

serializedName

serializedName: string = "language"

type

type: object

name

name: string = "String"

text

text: object

required

required: boolean = true

serializedName

serializedName: string = "text"

type

type: object

name

name: string = "String"

Const TextDocumentStatistics

TextDocumentStatistics: object

serializedName

serializedName: string = "TextDocumentStatistics"

type

type: object

className

className: string = "TextDocumentStatistics"

name

name: string = "Composite"

modelProperties

modelProperties: object

characterCount

characterCount: object

required

required: boolean = true

serializedName

serializedName: string = "charactersCount"

type

type: object

name

name: string = "Number"

transactionCount

transactionCount: object

required

required: boolean = true

serializedName

serializedName: string = "transactionsCount"

type

type: object

name

name: string = "Number"

Const endpoint

endpoint: object

parameterPath

parameterPath: string = "endpoint"

skipEncoding

skipEncoding: boolean = true

mapper

mapper: object

defaultValue

defaultValue: string = ""

required

required: boolean = true

serializedName

serializedName: string = "Endpoint"

type

type: object

name

name: string = "String"

Const entitiesLinkingOperationSpec

entitiesLinkingOperationSpec: object

httpMethod

httpMethod: string = "POST"

path

path: string = "entities/linking"

queryParameters

queryParameters: Object = [Parameters.modelVersion,Parameters.includeStatistics]

serializer

serializer: any

urlParameters

urlParameters: Object = [Parameters.endpoint]

requestBody

requestBody: object

parameterPath

parameterPath: string = "input"

mapper

mapper: object

required

required: boolean = true

responses

responses: object

200

200: object

bodyMapper

bodyMapper: any = Mappers.EntityLinkingResult

default

default: object

bodyMapper

bodyMapper: any = Mappers.TextAnalyticsError

Const entitiesRecognitionGeneralOperationSpec

entitiesRecognitionGeneralOperationSpec: object

httpMethod

httpMethod: string = "POST"

path

path: string = "entities/recognition/general"

queryParameters

queryParameters: Object = [Parameters.modelVersion,Parameters.includeStatistics]

serializer

serializer: any

urlParameters

urlParameters: Object = [Parameters.endpoint]

requestBody

requestBody: object

parameterPath

parameterPath: string = "input"

mapper

mapper: object

required

required: boolean = true

responses

responses: object

200

200: object

bodyMapper

bodyMapper: any = Mappers.EntitiesResult

default

default: object

bodyMapper

bodyMapper: any = Mappers.TextAnalyticsError

Const includeStatistics

includeStatistics: object

parameterPath

parameterPath: Object = ["options","includeStatistics"]

mapper

mapper: object

serializedName

serializedName: string = "showStats"

type

type: object

name

name: string = "Boolean"

Const keyPhrasesOperationSpec

keyPhrasesOperationSpec: object

httpMethod

httpMethod: string = "POST"

path

path: string = "keyPhrases"

queryParameters

queryParameters: Object = [Parameters.modelVersion,Parameters.includeStatistics]

serializer

serializer: any

urlParameters

urlParameters: Object = [Parameters.endpoint]

requestBody

requestBody: object

parameterPath

parameterPath: string = "input"

mapper

mapper: object

required

required: boolean = true

responses

responses: object

200

200: object

bodyMapper

bodyMapper: any = Mappers.KeyPhraseResult

default

default: object

bodyMapper

bodyMapper: any = Mappers.TextAnalyticsError

Const languagesOperationSpec

languagesOperationSpec: object

httpMethod

httpMethod: string = "POST"

path

path: string = "languages"

queryParameters

queryParameters: Object = [Parameters.modelVersion,Parameters.includeStatistics]

serializer

serializer: any

urlParameters

urlParameters: Object = [Parameters.endpoint]

requestBody

requestBody: object

parameterPath

parameterPath: string = "input"

mapper

mapper: object

required

required: boolean = true

responses

responses: object

200

200: object

bodyMapper

bodyMapper: any = Mappers.LanguageResult

default

default: object

bodyMapper

bodyMapper: any = Mappers.TextAnalyticsError

Const modelVersion

modelVersion: object

parameterPath

parameterPath: Object = ["options","modelVersion"]

mapper

mapper: object

serializedName

serializedName: string = "model-version"

type

type: object

name

name: string = "String"

Const sentimentOperationSpec

sentimentOperationSpec: object

httpMethod

httpMethod: string = "POST"

path

path: string = "sentiment"

queryParameters

queryParameters: Object = [Parameters.modelVersion,Parameters.includeStatistics]

serializer

serializer: any

urlParameters

urlParameters: Object = [Parameters.endpoint]

requestBody

requestBody: object

parameterPath

parameterPath: string = "input"

mapper

mapper: object

required

required: boolean = true

responses

responses: object

200

200: object

bodyMapper

bodyMapper: any = Mappers.SentimentResponse

default

default: object

bodyMapper

bodyMapper: any = Mappers.TextAnalyticsError

Generated using TypeDoc