@azure/ai-language-text package
Classes
| AzureKeyCredential |
A static-key-based credential that supports updating the underlying key value. |
| TextAnalysisClient |
A client for interacting with the text analysis features in Azure Cognitive Language Service. The client needs the endpoint of a Language resource and an authentication method such as an API key or AAD. The API key and endpoint can be found in the Language resource page in the Azure portal. They will be located in the resource's Keys and Endpoint page, under Resource Management. Examples for authentication:API Key
Azure Active DirectorySee the
|
Interfaces
| AbstractiveSummarizationAction |
Options for an Abstractive Summarization action. |
| AbstractiveSummarizationBatchAction |
Options for an abstractive summarization batch action. |
| AbstractiveSummarizationSuccessResult |
The result of the abstractive summarization action on a single document, containing a collection of the summaries identified for that document. |
| AbstractiveSummary |
An object representing a single summary with context for given document. |
| ActionCommon |
Configuration common to all actions. |
| ActionCustom |
Configuration common to all actions that use custom models. |
| ActionMetadata |
Action metadata. |
| ActionPrebuilt |
Configuration common to all actions that use prebuilt models. |
| AnalyzeBatchActionCommon |
Options common to all batch actions. |
| AnalyzeBatchOperationMetadata |
The metadata for long-running operations started by beginAnalyzeBatch. |
| AnalyzeBatchOperationState |
The state of the begin analyze polling operation. |
| AssessmentSentiment |
An object that contains the predicted sentiment, confidence scores and other information about an assessment of a target. For example, in the sentence "The food is good", the assessment of the target 'food' is 'good'. |
| BatchActionErrorResult |
The error of an analyze batch action. |
| BatchActionState |
The State of a batched action |
| BatchActionSuccessResult |
The state of a succeeded batched action. |
| BeginAnalyzeBatchOptions |
Options for the begin analyze actions operation. |
| ClassificationCategory |
A classification result from a custom classify document single category action |
| CustomActionMetadata |
Custom action metadata. |
| CustomEntityRecognitionAction |
Supported parameters for a Custom Entities task. |
| CustomEntityRecognitionBatchAction |
Options for a custom entity recognition batch action. |
| CustomEntityRecognitionSuccessResult |
The result of the custom entity recognition action on a single document, containing a collection of the entities identified in that document. |
| CustomMultiLabelClassificationAction |
Options for a multi-label classification custom action |
| CustomMultiLabelClassificationBatchAction |
Options for a custom multi-label classification batch action. |
| CustomMultiLabelClassificationSuccessResult |
The result of a successful multi-label classification action on a multi document, containing the result of the classification. |
| CustomSingleLabelClassificationAction |
Options for a single-label classification custom action |
| CustomSingleLabelClassificationBatchAction |
Options for a custom single-label classification batch action. |
| CustomSingleLabelClassificationSuccessResult |
The result of a successful single-label classification action on a single document, containing the result of the classification. |
| DetectedLanguage |
Information about the language of a document as identified by the Language service. |
| DocumentWarning |
Represents a warning encountered while processing a document. |
| Entity |
A word or phrase identified as an entity that is categorized within a taxonomy of types. The set of categories recognized by the Language service is described at https://docs.microsoft.com/azure/cognitive-services/language-service/named-entity-recognition/concepts/named-entity-categories . |
| EntityDataSource |
A type representing a reference for the healthcare entity into a specific entity catalog. |
| EntityLinkingAction |
Options for an entity linking action. |
| EntityLinkingBatchAction |
Options for an entity linking batch action. |
| EntityLinkingSuccessResult |
The result of a entity linking action on a single document, containing a collection of the LinkedEntity objects identified in that document. |
| EntityRecognitionAction |
Options for an entity recognition action. |
| EntityRecognitionBatchAction |
Options for an entity recognition batch action. |
| EntityRecognitionSuccessResult |
The result of an entity recognition action on a single document, containing a collection of Entity objects identified in that document. |
| ExtractiveSummarizationAction |
Supported parameters for an Extractive Summarization task. |
| ExtractiveSummarizationBatchAction |
Options for an extractive summarization batch action. |
| ExtractiveSummarizationSuccessResult |
The result of the extractive summarization action on a single document, containing a collection of the summary identified in that document. |
| HealthcareAction |
Supported parameters for a Healthcare task. |
| HealthcareAssertion |
An object that describes metadata about the healthcare entity such as whether it is hypothetical or conditional. |
| HealthcareBatchAction |
Options for a healthcare batch action. |
| HealthcareEntity |
A healthcare entity represented as a node in a directed graph where the edges are a particular type of relationship between the source and target nodes. |
| HealthcareEntityRelation |
A relationship between two or more healthcare entities. |
| HealthcareEntityRelationRole |
A healthcare entity that plays a specific role in a relation. |
| HealthcareSuccessResult |
The results of a successful healthcare analysis action for a single document. |
| KeyPhraseExtractionAction |
Options for a key phrase recognition action. |
| KeyPhraseExtractionBatchAction |
Options for an key phrase extraction batch action. |
| KeyPhraseExtractionSuccessResult |
The result of a key phrase extraction action on a single document, containing a collection of the key phrases identified in that document. |
| LanguageDetectionAction |
Options for a language detection action. |
| LanguageDetectionInput |
An input to the language detection operation. This object specifies a unique document id, as well as the full text of a document and a hint indicating the document's country of origin to assist the Language predictive model in detecting the document's language. |
| LanguageDetectionSuccessResult |
The result of a language detection action on a single document, containing a prediction of what language the document is written in. |
| LinkedEntity |
A word or phrase identified as a well-known entity within a database, including its formal (disambiguated) name and a link to the entity information within the source database. |
| Match |
Details about the specific substring in a document that refers to a linked entity identified by the Language model. |
| Opinion |
A mined opinion object represents an opinion we've extracted from a sentence. It consists of both a target that these assessments are about, and the actual assessments themselves. |
| PiiEntityRecognitionAction |
Options for a Pii entity recognition action. |
| PiiEntityRecognitionBatchAction |
Options for a pii entity recognition batch action. |
| PiiEntityRecognitionSuccessResult |
The result of a pii entity recognition action on a single document, containing the collection of Entity objects identified in that document. |
| PollerLike |
Abstract representation of a poller, intended to expose just the minimal API that the user needs to work with. |
| RestoreAnalyzeBatchPollerOptions |
Options for the begin analyze actions operation. |
| SentenceSentiment |
The predicted sentiment for a given span of text. For more information regarding text sentiment, see https://docs.microsoft.com//azure/cognitive-services/language-service/sentiment-opinion-mining/overview. |
| SentimentAnalysisAction |
Options for a sentiment analysis action. |
| SentimentAnalysisBatchAction |
Options for a sentiment analysis batch action. |
| SentimentAnalysisSuccessResult |
The result of a sentiment analysis action on a single document, containing the predicted sentiment for each sentence as well as for the full document. |
| SentimentConfidenceScores |
Represents the confidence scores between 0 and 1 across all sentiment classes: positive, neutral, negative. |
| SummaryContext |
The context of the summary. |
| SummarySentence |
A sentence that is part of the extracted summary. |
| TargetConfidenceScores |
Represents the confidence scores across all sentiment classes: positive and negative. |
| TargetSentiment |
TargetSentiment contains the predicted sentiment, confidence scores and other information about a target of a product. A target of a product/service is a key component of that product/service. For example in "The food at Hotel Foo is good", "food" is a target of "Hotel Foo". |
| TextAnalysisClientOptions |
Configuration options for TextAnalysisClient. |
| TextAnalysisError |
Type describing an API error. |
| TextAnalysisErrorResult |
Base type for error results of an action corresponding to a single document. |
| TextAnalysisOperationOptions |
Options common to all operations. |
| TextAnalysisSuccessResult |
Base type for results of an action corresponding to a single input document. |
| TextDocumentBatchStatistics |
if includeStatistics=true was specified in the request this field will contain information about the request payload. |
| TextDocumentInput |
An object representing an individual text document to be analyzed by the Language service. The document contains a unique document ID, the full text of the document, and the language of the document's text. |
| TextDocumentStatistics |
if includeStatistics=true was specified in the request this field will contain information about the document payload. |
Type Aliases
| AbstractiveSummarizationBatchResult |
The result of an abstractive summarization batch action. |
| AbstractiveSummarizationErrorResult |
An error result from the abstractive summarization action on a single document. |
| AbstractiveSummarizationResult |
The result of the abstractive summarization action on a single document. |
| AnalyzeActionName |
Type of actions supported by the analyze method. |
| AnalyzeActionParameters |
The type of parameters for every action in $AnalyzeActionNames. |
| AnalyzeBatchAction |
Batch of actions. |
| AnalyzeBatchActionName |
Type of actions supported by the beginAnalyzeBatch method. |
| AnalyzeBatchPoller |
A poller that polls long-running operations started by beginAnalyzeBatch. |
| AnalyzeBatchResult |
Results of a batch of actions. |
| AnalyzeResult |
The type of results of every action in $AnalyzeActionNames. |
| BatchActionResult |
The result of a batched action. |
| CustomEntityRecognitionBatchResult |
The result of a custom entity recognition batch action. |
| CustomEntityRecognitionErrorResult |
An error result from the custom entity recognition action on a single document. |
| CustomEntityRecognitionResult |
The result of the custom entity recognition action on a single document. |
| CustomMultiLabelClassificationBatchResult |
The result of a custom multi-label classification batch action. |
| CustomMultiLabelClassificationErrorResult |
An error result from the multi-label classification action on a multi document. |
| CustomMultiLabelClassificationResult |
The result of the multi-label classification action on a multi document. |
| CustomSingleLabelClassificationBatchResult |
The result of a custom single-label classification batch action. |
| CustomSingleLabelClassificationErrorResult |
An error result from the single-label classification action on a single document. |
| CustomSingleLabelClassificationResult |
The result of the single-label classification action on a single document. |
| DocumentSentimentLabel |
Defines values for DocumentSentimentLabel. |
| EntityAssociation |
Defines values for EntityAssociation. |
| EntityCertainty |
Defines values for EntityCertainty. |
| EntityConditionality |
Defines values for EntityConditionality. |
| EntityLinkingBatchResult |
The result of an entity linking batch action. |
| EntityLinkingErrorResult |
An error result from an entity linking action on a single document. |
| EntityLinkingResult |
The result of an entity linking action on a single document. |
| EntityRecognitionBatchResult |
The result of an entity recognition batch action. |
| EntityRecognitionErrorResult |
An error result from an entity recognition action on a single document. |
| EntityRecognitionResult |
The result of an entity recognition action on a single document. |
| ExtractiveSummarizationBatchResult |
The result of an extractive summarization batch action. |
| ExtractiveSummarizationErrorResult |
An error result from the extractive summarization action on a single document. |
| ExtractiveSummarizationOrderingCriteria |
Defines values for ExtractiveSummarizationOrderingCriteria. Known values supported by the serviceOffset: Indicates that results should be sorted in order of appearance in the text. |
| ExtractiveSummarizationResult |
The result of the extractive summarization action on a single document. |
| HealthcareBatchResult |
The result of a healthcare batch action. |
| HealthcareEntityCategory |
Defines values for HealthcareEntityCategory. Known values supported by the serviceBodyStructure |
| HealthcareEntityRelationRoleType |
The type of different roles a healthcare entity can play in a relation. |
| HealthcareErrorResult |
An error result from the healthcare analysis action on a single document. |
| HealthcareResult |
The result of the healthcare analysis action on a single document. |
| KeyPhraseExtractionBatchResult |
The result of a key phrase extraction batch action. |
| KeyPhraseExtractionErrorResult |
An error result from a key phrase extraction action on a single document. |
| KeyPhraseExtractionResult |
The result of a sentiment analysis action on a single document. |
| LanguageDetectionErrorResult |
An error result from a language detection action on a single document. |
| LanguageDetectionResult |
The result of a language detection action on a single document. |
| PagedAnalyzeBatchResult |
Paged results of the beginAnalyzeBatch operation. |
| PiiEntityCategory |
Defines values for PiiEntityCategory. Known values supported by the serviceABARoutingNumber |
| PiiEntityDomain |
Defines values for PiiEntityDomain. Known values supported by the servicephi: Indicates that entities in the Personal Health Information domain should be redacted. |
| PiiEntityRecognitionBatchResult |
The result of a pii entity recognition batch action. |
| PiiEntityRecognitionErrorResult |
An error result from a pii entity recognition action on a single document. |
| PiiEntityRecognitionResult |
The result of an entity recognition action on a single document. |
| RelationType |
Defines values for RelationType. Known values supported by the serviceAbbreviation |
| SentenceSentimentLabel |
Defines values for SentenceSentimentLabel. |
| SentimentAnalysisBatchResult |
The result of a sentiment analysis batch action. |
| SentimentAnalysisErrorResult |
An error result from a sentiment analysis action on a single document. |
| SentimentAnalysisResult |
The result of a sentiment analysis action on a single document. |
| StringIndexType |
Defines values for StringIndexType. Known values supported by the serviceTextElements_v8: 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. |
| TokenSentimentLabel |
Defines values for TokenSentimentLabel. |
| WarningCode |
Defines values for WarningCode. Known values supported by the serviceLongWordsInDocument |
Enums
| KnownErrorCode |
Known values of KnownErrorCode that the service accepts. |
| KnownExtractiveSummarizationOrderingCriteria |
Known values of ExtractiveSummarizationOrderingCriteria that the service accepts. |
| KnownHealthcareEntityCategory |
Known values of HealthcareEntityCategory that the service accepts. |
| KnownInnerErrorCode |
Known values of KnownInnerErrorCode that the service accepts. |
| KnownPiiEntityCategory |
Known values of PiiEntityCategory that the service accepts. |
| KnownPiiEntityDomain |
Known values of PiiEntityDomain that the service accepts. |
| KnownRelationType |
Known values of RelationType that the service accepts. |
| KnownStringIndexType |
Known values of StringIndexType that the service accepts. |
Variables
| Analyze |
Type of actions supported by the analyze method. |
| Analyze |
Type of actions supported by the beginAnalyzeBatch method. |
| Known |
Enum of possible error codes of a TextAnalysisError. |
Variable Details
AnalyzeActionNames
Type of actions supported by the analyze method.
AnalyzeActionNames: { EntityLinking: "EntityLinking", EntityRecognition: "EntityRecognition", KeyPhraseExtraction: "KeyPhraseExtraction", LanguageDetection: "LanguageDetection", PiiEntityRecognition: "PiiEntityRecognition", SentimentAnalysis: "SentimentAnalysis" }
Type
{ EntityLinking: "EntityLinking", EntityRecognition: "EntityRecognition", KeyPhraseExtraction: "KeyPhraseExtraction", LanguageDetection: "LanguageDetection", PiiEntityRecognition: "PiiEntityRecognition", SentimentAnalysis: "SentimentAnalysis" }
AnalyzeBatchActionNames
Type of actions supported by the beginAnalyzeBatch method.
AnalyzeBatchActionNames: { AbstractiveSummarization: "AbstractiveSummarization", CustomEntityRecognition: "CustomEntityRecognition", CustomMultiLabelClassification: "CustomMultiLabelClassification", CustomSingleLabelClassification: "CustomSingleLabelClassification", EntityLinking: "EntityLinking", EntityRecognition: "EntityRecognition", ExtractiveSummarization: "ExtractiveSummarization", Healthcare: "Healthcare", KeyPhraseExtraction: "KeyPhraseExtraction", PiiEntityRecognition: "PiiEntityRecognition", SentimentAnalysis: "SentimentAnalysis" }
Type
{ AbstractiveSummarization: "AbstractiveSummarization", CustomEntityRecognition: "CustomEntityRecognition", CustomMultiLabelClassification: "CustomMultiLabelClassification", CustomSingleLabelClassification: "CustomSingleLabelClassification", EntityLinking: "EntityLinking", EntityRecognition: "EntityRecognition", ExtractiveSummarization: "ExtractiveSummarization", Healthcare: "Healthcare", KeyPhraseExtraction: "KeyPhraseExtraction", PiiEntityRecognition: "PiiEntityRecognition", SentimentAnalysis: "SentimentAnalysis" }
KnownTextAnalysisErrorCode
Enum of possible error codes of a TextAnalysisError.
KnownTextAnalysisErrorCode: { AzureCognitiveSearchIndexLimitReached: KnownErrorCode.AzureCognitiveSearchIndexLimitReached, AzureCognitiveSearchIndexNotFound: KnownErrorCode.AzureCognitiveSearchIndexNotFound, AzureCognitiveSearchNotFound: KnownInnerErrorCode.AzureCognitiveSearchNotFound, AzureCognitiveSearchThrottling: KnownInnerErrorCode.AzureCognitiveSearchThrottling, Conflict: KnownErrorCode.Conflict, EmptyRequest: KnownInnerErrorCode.EmptyRequest, ExtractionFailure: KnownInnerErrorCode.ExtractionFailure, Forbidden: KnownErrorCode.Forbidden, InternalServerError: KnownErrorCode.InternalServerError, InvalidArgument: KnownErrorCode.InvalidArgument, InvalidCountryHint: KnownInnerErrorCode.InvalidCountryHint, InvalidDocument: KnownInnerErrorCode.InvalidDocument, InvalidDocumentBatch: KnownInnerErrorCode.InvalidDocumentBatch, InvalidParameterValue: KnownInnerErrorCode.InvalidParameterValue, InvalidRequest: KnownInnerErrorCode.InvalidRequest, InvalidRequestBodyFormat: KnownInnerErrorCode.InvalidRequestBodyFormat, KnowledgeBaseNotFound: KnownInnerErrorCode.KnowledgeBaseNotFound, MissingInputDocuments: KnownInnerErrorCode.MissingInputDocuments, ModelVersionIncorrect: KnownInnerErrorCode.ModelVersionIncorrect, NotFound: KnownErrorCode.NotFound, OperationNotFound: KnownErrorCode.OperationNotFound, ProjectNotFound: KnownErrorCode.ProjectNotFound, QuotaExceeded: KnownErrorCode.QuotaExceeded, ServiceUnavailable: KnownErrorCode.ServiceUnavailable, Timeout: KnownErrorCode.Timeout, TooManyRequests: KnownErrorCode.TooManyRequests, Unauthorized: KnownErrorCode.Unauthorized, UnsupportedLanguageCode: KnownInnerErrorCode.UnsupportedLanguageCode, Warning: KnownErrorCode.Warning }
Type
{ AzureCognitiveSearchIndexLimitReached: KnownErrorCode.AzureCognitiveSearchIndexLimitReached, AzureCognitiveSearchIndexNotFound: KnownErrorCode.AzureCognitiveSearchIndexNotFound, AzureCognitiveSearchNotFound: KnownInnerErrorCode.AzureCognitiveSearchNotFound, AzureCognitiveSearchThrottling: KnownInnerErrorCode.AzureCognitiveSearchThrottling, Conflict: KnownErrorCode.Conflict, EmptyRequest: KnownInnerErrorCode.EmptyRequest, ExtractionFailure: KnownInnerErrorCode.ExtractionFailure, Forbidden: KnownErrorCode.Forbidden, InternalServerError: KnownErrorCode.InternalServerError, InvalidArgument: KnownErrorCode.InvalidArgument, InvalidCountryHint: KnownInnerErrorCode.InvalidCountryHint, InvalidDocument: KnownInnerErrorCode.InvalidDocument, InvalidDocumentBatch: KnownInnerErrorCode.InvalidDocumentBatch, InvalidParameterValue: KnownInnerErrorCode.InvalidParameterValue, InvalidRequest: KnownInnerErrorCode.InvalidRequest, InvalidRequestBodyFormat: KnownInnerErrorCode.InvalidRequestBodyFormat, KnowledgeBaseNotFound: KnownInnerErrorCode.KnowledgeBaseNotFound, MissingInputDocuments: KnownInnerErrorCode.MissingInputDocuments, ModelVersionIncorrect: KnownInnerErrorCode.ModelVersionIncorrect, NotFound: KnownErrorCode.NotFound, OperationNotFound: KnownErrorCode.OperationNotFound, ProjectNotFound: KnownErrorCode.ProjectNotFound, QuotaExceeded: KnownErrorCode.QuotaExceeded, ServiceUnavailable: KnownErrorCode.ServiceUnavailable, Timeout: KnownErrorCode.Timeout, TooManyRequests: KnownErrorCode.TooManyRequests, Unauthorized: KnownErrorCode.Unauthorized, UnsupportedLanguageCode: KnownInnerErrorCode.UnsupportedLanguageCode, Warning: KnownErrorCode.Warning }