- Added the following methods:
TextAnalyticsClient.AnalyzeActions
andTextAnalyticsClient.AnalyzeActionsAsync
. - Hid
TextAnalyticsClient.StartAnalyzeActions
andTextAnalyticsClient.StartAnalyzeActionsAsync
in favor ofTextAnalyticsClient.AnalyzeActions
andTextAnalyticsClient.AnalyzeActionsAsync
. These methods can still be used but are not shown in code suggestions. - Added the following methods:
TextAnalyticsClient.AnalyzeHealthcareEntities
andTextAnalyticsClient.AnalyzeHealthcareEntitiesAsync
. - Hid
TextAnalyticsClient.StartAnalyzeHealthcareEntities
andTextAnalyticsClient.StartAnalyzeHealthcareEntitiesAsync
in favor ofTextAnalyticsClient.AnalyzeHealthcareEntities
andTextAnalyticsClient.AnalyzeHealthcareEntitiesAsync
. These methods can still be used but are not shown in code suggestions. - Added the following methods:
TextAnalyticsClient.SingleLabelClassify
andTextAnalyticsClient.SingleLabelClassifyAsync
. - Hid
TextAnalyticsClient.StartSingleLabelClassify
andTextAnalyticsClient.StartSingleLabelClassifyAsync
in favor ofTextAnalyticsClient.SingleLabelClassify
andTextAnalyticsClient.SingleLabelClassifyAsync
. These methods can still be used but are not shown in code suggestions. - Added the following methods:
TextAnalyticsClient.MultiLabelClassify
andTextAnalyticsClient.MultiLabelClassifyAsync
. - Hid
TextAnalyticsClient.StartMultiLabelClassify
andTextAnalyticsClient.StartMultiLabelClassifyAsync
in favor ofTextAnalyticsClient.MultiLabelClassify
andTextAnalyticsClient.MultiLabelClassifyAsync
. These methods can still be used but are not shown in code suggestions. - Added the following methods:
TextAnalyticsClient.RecognizeCustomEntities
andTextAnalyticsClient.RecognizeCustomEntitiesAsync
. - Hid
TextAnalyticsClient.StartRecognizeCustomEntities
andTextAnalyticsClient.StartRecognizeCustomEntitiesAsync
in favor ofTextAnalyticsClient.RecognizeCustomEntities
andTextAnalyticsClient.RecognizeCustomEntitiesAsync
. These methods can still be used but are not shown in code suggestions.
Note: The following breaking changes only apply when upgrading from the previous beta versions (5.3.0-beta.*) and do not impact stable versions.
- Changes to extractive summarization:
- Renamed the
TextAnalyticsClient.StartExtractSummary
andTextAnalyticsClient.StartExtractSummaryAsync
methods toTextAnalyticsClient.ExtractiveSummarize
andTextAnalyticsClient.ExtractiveSummarizeAsync
respectively. - Renamed the
TextAnalyticsActions.ExtractSummaryActions
property toTextAnalyticsActions.ExtractiveSummarizeActions
. - Renamed the
AnalyzeActionResult.ExtractSummaryResults
property toAnalyzeActionResult.ExtractiveSummarizeResults
. - Renamed the
ExtractSummaryAction
class toExtractiveSummarizeAction
. - Renamed the
ExtractSummaryActionResult
class toExtractiveSummarizeActionResult
. - Renamed the
ExtractSummaryOperation
class toExtractiveSummarizeOperation
. - Renamed the
ExtractSummaryOptions
class toExtractiveSummarizeOptions
. - Renamed the
ExtractSummaryResult
class toExtractiveSummarizeResult
. - Renamed the
ExtractSummaryResultCollection
class toExtractiveSummarizeResultCollection
. - Renamed the
SummarySentencesOrder
enum toExtractiveSummarySentencesOrder
. - Renamed the
SummarySentence
class toExtractiveSummarySentence
.
- Renamed the
- Changes to abstractive summarization:
- Renamed the
TextAnalyticsClient.StartAbstractSummary
andTextAnalyticsClient.StartAbstractSummaryAsync
methods toTextAnalyticsClient.AbstractiveSummarize
andTextAnalyticsClient.AbstractiveSummarizeAsync
respectively. - Renamed the
TextAnalyticsActions.AbstractSummaryActions
property toTextAnalyticsActions.AbstractiveSummarizeActions
. - Renamed the
AnalyzeActionResult.AbstractSummaryResults
property toAnalyzeActionResult.AbstractiveSummarizeResults
. - Renamed the
AbstractSummaryAction
class toAbstractiveSummarizeAction
. - Renamed the
AbstractSummaryActionResult
class toAbstractiveSummarizeActionResult
. - Renamed the
AbstractSummaryOperation
class toAbstractiveSummarizeOperation
. - Renamed the
AbstractSummaryOptions
class toAbstractiveSummarizeOptions
. - Renamed the
AbstractSummaryResult
class toAbstractiveSummarizeResult
. - Renamed the
AbstractSummaryResultCollection
class toAbstractiveSummarizeResultCollection
. - Renamed the
AbstractSummaryAction
class toAbstractiveSummaryAction
. - Renamed the
SummaryContext
class toAbstractiveSummaryContext
.
- Renamed the
- Removed support for dynamic classification:
- Removed the following methods:
TextAnalyticsClient.DynamicClassify
andTextAnalyticsClient.DynamicClassifyAsync
. - Removed the following methods:
TextAnalyticsClient.DynamicClassifyBatch
andTextAnalyticsClient.DynamicClassifyBatchAsync
. - Removed the
DynamicClassifyDocumentResultCollection
class. - Removed the
ClassificationType
enum.
- Removed the following methods:
The client now defaults to targeting service API version 2023-04-01
.
- Upgraded dependent
Azure.Core
to1.30.0
.
- Added support for logging the "warn-text" response header.
Note: The following breaking changes only apply when upgrading from the previous beta version (5.3.0-beta.1) and do not impact stable versions.
- Changes to dynamic classification:
- Added the
classificationType
parameter to the following methods:TextAnalyticsClient.DynamicClassify
,TextAnalyticsClient.DynamicClassifyAsync
,TextAnalyticsClient.DynamicClassifyBatch
andTextAnalyticsClient.DynamicClassifyBatchAsync
. - Removed the
options
parameter from the following methods for consistency:TextAnalyticsClient.DynamicClassify
andTextAnalyticsClient.DynamicClassifyAsync
. - Removed the
DynamicClassifyOptions
class for consistency.
- Added the
- Changes to abstractive summarization:
- Renamed
AbstractSummaryAction.MaxSentenceCount
toAbstractSummaryAction.SentenceCount
. - Renamed
AbstractSummaryOptions.MaxSentenceCount
toAbstractSummaryOptions.SentenceCount
.
- Renamed
- Changes to Fast Healthcare Interoperability Resources (FHIR) bundles as part of healthcare text analysis.
- Renamed the
WellKnownFhirVersion
enum toFhirVersion
. - Changed the type of the
AnalyzeHealthcareEntitiesResult.FhirBundle
property fromIReadOnlyDictionary<string, object>
toBinaryData
.
- Renamed the
- Changes to named entity recognition (NER) resolutions:
- Removed the
BooleanResolution
class; boolean resolutions are not supported by the service.
- Removed the
- Changes to automatic language detection:
- Removed the
AbstractSummaryOptions.AutoDetectionDefaultLanguage
property; the property is not supported by the service. - Removed the
AnalyzeActionsOptions.AutoDetectionDefaultLanguage
property; the property is not supported by the service. - Removed the
AnalyzeHealthcareEntitiesOptions.AutoDetectionDefaultLanguage
property; the property is not supported by the service. - Removed the
ExtractSummaryOptions.AutoDetectionDefaultLanguage
property; the property is not supported by the service. - Removed the
MultiLabelClassifyOptions.AutoDetectionDefaultLanguage
property; the property is not supported by the service. - Removed the
RecognizeCustomEntitiesOptions.AutoDetectionDefaultLanguage
property; the property is not supported by the service. - Removed the
SingleLabelClassifyOptions.AutoDetectionDefaultLanguage
property; the property is not supported by the service.
- Removed the
- Added support for dynamic classification.
- Added the following methods:
TextAnalyticsClient.DynamicClassify
andTextAnalyticsClient.DynamicClassifyAsync
. - Added the following methods:
TextAnalyticsClient.DynamicClassifyBatch
andTextAnalyticsClient.DynamicClassifyBatchAsync
. - Added the following classes:
DynamicClassifyDocumentResultCollection
andDynamicClassifyOptions
. - Added the
ClassificationType
enum.
- Added the following methods:
- Added support for extractive summarization.
- Added the
TextAnalyticsActions.ExtractSummaryActions
property to support extractive summarization in a batch of actions. - Added the
TextAnalyticsClient.StartExtractSummary
andTextAnalyticsClient.StartExtractSummaryAsync
methods to perform extractive summarization on a collection of documents.
- Added the
- Added support for abstractive summarization.
- Added the
TextAnalyticsActions.AbstractSummaryActions
property to support abstractive summarization in a batch of actions. - Added the
TextAnalyticsClient.StartAbstractSummary
andTextAnalyticsClient.StartAbstractSummaryAsync
methods to perform abstractive summarization on a collection of documents.
- Added the
- Added support for Fast Healthcare Interoperability Resources (FHIR) bundles as part of healthcare text analysis.
- Added the
AnalyzeHealthcareEntitiesOptions.FhirVersion
andAnalyzeHealthcareEntitiesOptions.DocumentType
properties. - Added the
AnalyzeHealthcareEntitiesAction.FhirVersion
andAnalyzeHealthcareEntitiesAction.DocumentType
properties. - Added the
AnalyzeHealthcareEntitiesResult.FhirBundle
property. - Added the
WellKnownFhirVersion
andHealthcareDocumentType
enums.
- Added the
- Added support for confidence scores in healthcare entity relations.
- Added the
HealthcareEntityRelation.ConfidenceScore
property.
- Added the
- Added support for named entity recognition (NER) resolutions.
- Added the
CategorizedEntity.Resolutions
property. - Added the following classes:
AgeResolution
,AreaResolution
,BaseResolution
,BooleanResolution
,CurrencyResolution
,DateTimeResolution
,InformationResolution
,LengthResolution
,NumberResolution
,NumericRangeResolution
,OrdinalResolution
,SpeedResolution
,TemperatureResolution
,TemporalSpanResolution
VolumeResolution
, andWeightResolution
. - Added the following enums:
AgeUnit
,AreaUnit
,DateTimeSubKind
,InformationUnit
,LengthUnit
,NumberKind
,RangeKind
,RelativeTo
,SpeedUnit
,TemperatureUnit
,TemporalModifier
,VolumeUnit
, andWeightUnit
.
- Added the
- Added support for automatic language detection.
- Added the
AbstractSummaryOptions.AutoDetectionDefaultLanguage
property. - Added the
AbstractSummaryResult.DetectedLanguage
property. - Added the
AnalyzeActionsOptions.AutoDetectionDefaultLanguage
property. - Added the
AnalyzeHealthcareEntitiesOptions.AutoDetectionDefaultLanguage
property. - Added the
AnalyzeHealthcareEntitiesResult.DetectedLanguage
property. - Added the
AnalyzeSentimentResult.DetectedLanguage
property. - Added the
ClassifyDocumentResult.DetectedLanguage
property. - Added the
ExtractKeyPhrasesResult.DetectedLanguage
property. - Added the
ExtractSummaryOptions.AutoDetectionDefaultLanguage
property. - Added the
ExtractSummaryResult.DetectedLanguage
property. - Added the
MultiLabelClassifyOptions.AutoDetectionDefaultLanguage
property. - Added the
RecognizeCustomEntitiesOptions.AutoDetectionDefaultLanguage
property. - Added the
RecognizeEntitiesResult.DetectedLanguage
property. - Added the
RecognizeLinkedEntitiesResult.DetectedLanguage
property. - Added the
RecognizePiiEntitiesResult.DetectedLanguage
property. - Added the
SingleLabelClassifyOptions.AutoDetectionDefaultLanguage
property.
- Added the
- Added support for script detection.
- Added the
DetectedLanguage.Script
property. - Added the
ScriptKind
enum.
- Added the
The client now defaults to targeting service API version 2022-10-01-preview
.
- Added
DisplayName
property to the following classes to set the optional display name of the operations below:AnalyzeHealthcareEntitiesOptions
MultiLabelClassifyOptions
RecognizeCustomEntitiesOptions
SingleLabelClassifyOptions
- Added
DisplayName
property to the following operations to read the optional display name set on options classes above:AnalyzeHealthcareEntitiesOperation
fromAnalyzeHealthcareEntitiesOptions
ClassifyDocumentOperation
fromMultiLabelClassifyOptions
andSingleLabelClassifyOptions
RecognizeCustomEntitiesOperation
fromRecognizeCustomEntitiesOptions
- Added the following members to
HealthcareEntityCategory
following proper naming guidelines:Age
GeneOrProtein
SymptomOrSign
- Changed type
MultiLabelClassifyOptions.IncludeStatistics
frombool
tobool?
. - Changed type
RecognizeCustomEntitiesOptions.IncludeStatistics
frombool
tobool?
. - Changed type
SingleLabelClassifyOptions.IncludeStatistics
frombool
tobool?
.
- The values of
HealthcareEntityCategory
have been redefined to match what the service actually returns. (#20024)
- Validate that a number of operations and model properties are only used for API versions in which they were defined, or newer API versions.
- Added
AnalyzeActionsOperation.Cancel
andCancelAsync
to cancel a batch of actions. - Added
AnalyzeActionsResult.AnalyzeHealthcareEntitiesResults
to get healthcare entities from a batch of actions. - Added
TextAnalyticsActions.AnalyzeHealthcareEntitiesActions
to analyze healthcare entities in a batch of actions. - Added
TextAnalyticsClient.StartRecognizeCustomEntities
andStartRecognizeCustomEntitiesAsync
to recognize custom entities in a collection of documents. - Added
TextAnalyticsClient.StartSingleLabelClassify
andStartSingleLabelClassifyAsync
to classify documents with a single label. - Added
TextAnalyticsClient.StartMultiLabelClassify
andStartMultiLabelClassifyAsync
to classify documents with multiple labels.
- Merged
MultiCategoryClassifyResult
andSingleCategoryClassifyResult
intoClassifyDocumentResult
. - Removed Extractive Text Summarization and related models. To access this beta feature, install the 5.2.0-beta.3 version of the client library.
- Removed Extractive Text Summarization, Multi Label Classification, and Single Label Classification from legacy client library.
- Removed
HealthcareTaskParameters.FhirVersion
andAnalyzeHealthcareEntitiesResult.FhirBundle
. To access this beta feature, install the 5.2.0-beta.3 version of the client library. - Renamed
LabelClassifyResult.Classifications
toLabelClassifyResult.ClassificationCategories
. - Renamed
MultiCategoryClassifyAction
toMultiLabelClassifyAction
. - Renamed
MultiCategoryClassifyActionResult
toMultiLabelClassifyActionResult
. - Renamed
MultiCategoryClassifyResult
toClassifyDocumentResult
. - Renamed
MultiCategoryClassifyResultCollection
toClassifyDocumentResultCollection
. - Renamed
SingleCategoryClassifyAction
toSingleLabelClassifyAction
. - Renamed
SingleCategoryClassifyActionResult
toSingleLabelClassifyActionResult
. - Renamed
SingleCategoryClassifyResult
toClassifyDocumentResult
. - Renamed
SingleCategoryClassifyResultCollection
toClassifyDocumentResultCollection
.
- We are now targeting the service version
2022-05-01
API as the default instead of3.2-preview.2
. - The legacy client library is now targeting the service version
3.1
.
- Added keyword argument
FhirVersion
toAnalyzeHealthcareEntitiesOptions
. Use the keyword to indicate the version for the propertyAnalyzeHealthcareEntitiesResult.FhirBundle
that represents a FHIR compatible object for consumption in other Healthcare tools. - Added property
FhirBundle
toAnalyzeHealthcareEntitiesResult
.
- Enum
EntityCategory.IPAddress
now uses the underlying stringIPAddress
value instead ofIP
to align with the Text Analytics service behavior.
- Long-Running operation rehydration has been patched to stop throwing a
NullReferenceException
. Issue 24692. - TextAnalyticsAudience has been added to allow the user to select the Azure cloud where the resource is located. Issue 18520.
- In
AnalyzeHealthcareEntitiesOperation
,Cancel
calls won't overwrite the response fromGetRawResponse
anymore. PR 28375
This is the first version of the client library that targets the Azure Cognitive Service for Language APIs which includes the existing text analysis and natural language processing features found in the Text Analytics client library. In addition, the service API has changed from semantic to date-based versioning. This version of the client library defaults to the latest supported API version, which currently is 2022-04-01-preview
.
- Enum
EntityCategory.IPAddress
now uses the underlying stringIPAddress
value instead ofIP
to align with the Text Analytics service behavior.
- Long-Running operation rehydration has been patched to stop throwing a
NullReferenceException
. Issue 24692.
- Adding support for three new actions in
StartAnalyzeActions
:RecognizeCustomEntities
,SingleCategoryClassify
, andMultiCategoriesClassify
. The new actions allow you to use custom models to perform entity recognition and category classification. - Added property
ActionName
to allxxActions
input types so user can specify a name per action. If not provided, service will generate a name. - Added property
ActionName
to allxxActionResult
output types that displays the name of each action. - Added suppport for multiple actions of the same type.
AnalyzeActionsOperation.GetValuesAsync()
andAnalyzeHealthcareEntitiesOperation.GetValuesAsync()
are now validating that the operation has completed successfully before attempting to return any values. AnInvalidOperationException
is thrown if this is not true.
- We are now targeting the service version
3.2-preview.2
API as the default instead of3.2-preview.1
.
- The client defaults to the latest supported service version, which currently is
3.2-preview.1
. - Added property
ExtractSummaryActions
toTextAnalyticsActions
to support the new 'extractive text summarization' API. This action can be used to get a summary for the input document by extracting the most relevant sentences.
- Added support for service version
3.0
. This can be specified in theTextAnalyticsClientOptions
object under theServiceVersion
enum. By default the SDK targets latest supported service version. - Added AAD support for the
StartAnalyzeHealthcareEntities
methods. - Added value
None
to enumPiiEntityDomainType
to allow user to specify no domain. - Added new overload methods to all
xxActions
types that take axxOptions
object to facilitate a transition from a singular method to an actions method. - The parameter
CategoriesFilter
inRecognizePiiEntitiesActions
has been enabled forStartAnalyzeActions
methods.
- Changed behavior in
StartAnalyzeActions
andStartAnalyzeActionsAsync
where now accepts a single action per action type. AnArgumentException
is raised if duplicate actions are passed. - Changed type
RecognizePiiEntitiesOptions.DomainFilter
fromPiiEntityDomainType?
toPiiEntityDomainType
. - Changed type
AnalyzeActionsOptions.IncludeStatistics
frombool
tobool?
. - Renamed
StartAnalyzeBatchActions
toStartAnalyzeActions
. - Renamed
AnalyzeBatchActionsOperation
toAnalyzeActionsOperation
. - Renamed
AnalyzeBatchActionsResult
toAnalyzeActionsResult
. - Renamed
AnalyzeBatchActionsOptions
toAnalyzeActionsOptions
. TextAnalyticsActions
now takesxxAction
types, instead ofxxOptions
types. Renames and types are as follow:ExtractKeyPhrasesOptions
changed to new typeExtractKeyPhrasesActions
.RecognizeEntitiesOptions
changed to new typeRecognizeEntitiesActions
.RecognizePiiEntitiesOptions
changed to new typeRecognizePiiEntitiesActions
.RecognizeLinkedEntitiesOptions
changed to new typeRecognizeLinkedEntitiesActions
.AnalyzeSentimentOptions
changed to new typeAnalyzeSentimentActions
.
- Renamed type
TextAnalyticsActionDetails
toTextAnalyticsActionResult
. - Renamed type
PiiEntityDomainType
toPiiEntityDomain
. - Renamed type
Results
toDocumentsResults
inAnalyzeSentimentActionResult
,ExtractKeyPhrasesActionResult
,RecognizeEntitiesActionResult
,RecognizeLinkedEntitiesActionResult
, andRecognizePiiEntitiesActionResult
. - Renamed all types under
AnalyzeActionsResult
fromxxActionsResults
to ``xxResults`. - Removed property
Statistics
fromAnalyzeActionsResult
as it is not currently returned by the service even if the user passesIncludeStatistics = true
. - Removed property
StringIndexType
fromTextAnalyticsRequestOptions
. This SDK will keep usingUTF-16
code unit as the default encoding. - Removed type
ExtractKeyPhrasesOptions
and respective exposure. - Removed type
RecognizeEntitiesOptions
and respective exposure. - Removed type
RecognizeLinkedEntitiesOptions
and respective exposure.
- Added property
DisableServiceLogs
toTextAnalyticsRequestOptions
. - Added support for Sentiment Analysis as an action type for
StartAnalyzeBatchActions
. - Changed type of
IncludeOpinionMining
tobool?
.
- The client defaults to the latest supported service version, which currently is
3.1-preview.5
. - Renamed type
TextElementsV8
toTextElementV8
in modelStringIndexType
.
- Add overloads to
ExtractKeyPhrasesBatch
andExtractKeyPhrasesBatchAsync
to onTextAnalyticsClient
to acceptExtractKeyPhrasesOptions
and hid the previous methods (non-breaking change). - Add overloads to
RecognizeEntitiesBatch
andRecognizeEntitiesBatchAsync
to onTextAnalyticsClient
to acceptRecognizeEntitiesOptions
and hid the previous methods (non-breaking change). - Add overloads to
RecognizeLinkedEntitiesBatch
andRecognizeLinkedEntitiesBatch
to onTextAnalyticsClient
to acceptRecognizeLinkedEntitiesOptions
and hid the previous methods (non-breaking change).
- Renamed
TotalActions
toActionsTotal
.
- Added ability to filter the categories returned in a Personally Identifiable Information recognition with the optional parameter
CategoriesFilter
inRecognizePiiEntitiesOptions
. - Added the ability to recognize linked entities under
StartAnalyzeBatchActions
. - Added
RecognizeLinkedEntitiesOptions
toTextAnalyticsActions
. - Added
RecognizeLinkedEntitiesActionsResults
toAnalyzeBatchActionsResult
. AnalyzeHealthcareEntitiesResult
, now exposes the propertyEntityRelations
of typeHealthcareEntityRelation
.- Introduced
HealthcareEntityRelation
class which will determine all the different relations between the entities asRoles
. - Added
HealthcareEntityRelationRole
, which exposesName
andEntity
of typestring
andHealthcareEntity
respectively. HealthcareEntityAssertion
is added toHealthcareEntity
which further exposesEntityAssociation
,EntityCertainty
andEntityConditionality
.- Added new types under
HealthcareRelationType
class.
- Renamed
AspectSentiment
toTargetSentiment
. - Renamed
MinedOpinion
toSentenceOpinion
. - Renamed
OpinionSentiment
toAssessmentSentiment
. - For
PiiEntity.Category
the type of the property is nowPiiEntityCategory
instead ofEntityCategory
. - Removed
RelatedEntities
. RecognizePiiEntitiesOptions.Domain
is now a nullable type.- In
StartAnalyzeBatchActions
when all actions return statusfailed
the SDK will no longer throw an exception. The request will succeed and the errors will be located at the specific action level.
RecognizePiiEntities
andTextAnalyticsActions.RecognizePiiEntitiesOptions
were always passingPiiEntityDomainType.PHI
. Now, it is only passed when requested by the user 19086.
- Added property
Length
toCategorizedEntity
,SentenceSentiment
,LinkedEntityMatch
,AspectSentiment
,OpinionSentiment
, andPiiEntity
. StringIndexType
has been added to all endpoints that expose the new propertiesOffset
andLength
to determine the encoding which service should use. It is added into theTextAnalyticsRequestOptions
class and default for this SDK isUTF-16
code unit.AnalyzeHealthcareEntitiesOperation
now exposes the propertiesCreatedOn
,ExpiresOn
,LastModified
, andStatus
.AnalyzeBatchActionsOperation
now exposes the propertiesCreatedOn
,ExpiresOn
,LastModified
,Status
,ActionsFailed
,ActionsInProgress
,ActionsSucceeded
,DisplayName
, andTotalActions
.
- Renamed
JobStatus
toTextAnalyticsOperationStatus
.
- Pagination support was added for all
StartAnalyzeHealthcareEntities
methods. - Moved
Cancel
andCancelAsync
for Healthcare fromTextAnalyticsClient
toAnalyzeHealthcareEntitiesOperation
. - The healthcare entities returned by
StartAnalyzeHealthcareEntities
are now organized as a directed graph where the edges represent a certain type of healthcare relationship between the source and target entities. Edges are stored in theRelatedEntities
property. - Renamed
StartHealthcareBatch
andStartHealthcareBatchAsync
toStartAnalyzeHealthcareEntities
andStartAnalyzeHealthcareEntitiesAsync
respectively. - Renamed
RecognizeHealthcareEntitiesResultCollection
toAnalyzeHealthcareEntitiesResultCollection
. - Renamed
DocumentHealthcareResult
toAnalyzeHealthcareEntitiesResult
. - Renamed
HealthcareOperation
toAnalyzeHealthcareEntitiesOperation
. - Renamed
HealthcareOptions
toAnalyzeHealthcareEntitiesOptions
, and removed typesSkip
andTop
from it. Pagination is now done automatically by the SDK. - Renamed
HealthcareEntityLink
toEntityDataSource
withDataSource
toEntityDataSource
andId
toName
. - Renamed
HealthcareRelation
toHealthcareRelationType
. - Removed method
GetHealthcareEntities
as pagination is now done with the mainStartAnalyzeHealthcareEntities
methods. - Removed
HealthcareTaskResult
. - Removed
StartHealthcare
andStartHealthcareAsync
methods. - Removed
IsNegated
property fromHealthcareEntity
.
- The word
action
is now used consistently in our names and documentation instead oftask
. - Pagination support was added for all
StartAnalyzeBatchActions
methods. - Renamed methods
StartAnalyzeOperationBatch
andStartAnalyzeOperationBatchAsync
toStartAnalyzeBatchActions
andStartAnalyzeBatchActionsAsync
respectively. - Type
TextAnalyticsActions
added toStartAnalyzeBatchActions
methods to specify the actions to execute in the batch of documents instead of inAnalyzeOperationOptions
. - The way to configure the options for each action is now exposed in the respective
ExtractKeyPhrasesOptions
,RecognizeEntitiesOptions
, orRecognizePiiEntitiesOptions
object. - Results for the
StartAnalyzeBatchActions
method are now returned in aAnalyzeHealthcareEntitiesResultCollection
object that contains information per type of action. - Renamed
AnalyzeOperation
toAnalyzeBatchActionsOperation
. - Reuse
PiiEntityDomainType
instead ofPiiTaskParametersDomain
. - Removed
AnalyzeTasks
,EntitiesTask
,EntitiesTaskParameters
,EntityRecognitionTasksItem
,JobManifestTasks
,KeyPhraseExtractionTasksItem
,KeyPhrasesTask
,KeyPhrasesTaskParameters
,PiiTask
,PiiTaskParameters
.
- Added
HealthcareOperation
long running operation for new asynchronousText Analytics for health
hosted API with support for batch processing. Note this is a currently in a gated preview where AAD is not supported. More information here. - Added
AnalyzeOperation
long running operation for new asynchronousAnalyze API
to support batch processing of Named entity recognition, Personally Identifiable Information and Key phrase extraction. - Both new features listed above are available in
West US2
,East US2
,Central US
,North Europe
andWest Europe
regions and in Standard tier.
- Modified the way to turn on Opinion Mining feature in
AnalyzeSentiment
to a bool property calledIncludeOpinionMining
.
- Removed property
Length
fromCategorizedEntity
,SentenceSentiment
,LinkedEntityMatch
,AspectSentiment
,OpinionSentiment
, andPiiEntity
.
- It defaults to the latest supported API version, which currently is
3.1-preview.2
. ErrorCode
value returned from the service is now surfaced inRequestFailedException
.- Added the
RecognizePiiEntities
endpoint which returns entities containing Personally Identifiable Information. This feature is available in the Text Analytics service v3.1-preview.1 and above. - Support added for Opinion Mining. This feature is available in the Text Analytics service v3.1-preview.1 and above.
- Added
Offset
andLength
properties forCategorizedEntity
,SentenceSentiment
, andLinkedEntityMatch
. The default encoding is UTF-16 code units. For additional information see https://aka.ms/text-analytics-offsets TextAnalyticsError
andTextAnalyticsWarning
now are marked as immutable.- Added property
BingEntitySearchApiId
to theLinkedEntity
class. This property is only available for v3.1-preview.2 and up, and it is to be used in conjunction with the Bing Entity Search API to fetch additional relevant information about the returned entity.
- Re-release of version
1.0.1
with updated version5.0.0
.
- The document confidence scores for analyze sentiment now contains the values the Text Analytics service returns (12889).
TextAnalyticsErrorCode
casing is now pascal case instead of camel case (12888).
- First stable release of Azure.AI.TextAnalytics package.
- Now targets the service's v3.0 API, instead of the v3.0-preview.1 API
- Removed
GraphemeLength
andGraphemeOffset
fromCategorizedEntity
,SentenceSentiment
, andLinkedEntityMatch
. GraphemeCount
inTextDocumentStatistics
has been renamed toCharacterCount
.DetectedLanguage
propertySentimentScores
has been renamed toConfidenceScores
.TextAnalyticsError
propertyCode
has been renamed toErrorCode
and it is anTextAnalyticsErrorCode
instead of a string.- Single operation method
RecognizeEntitiesAsync
andRecognizeEntities
now returns aCategorizedEntityCollection
. - Single operation method
ExtractKeyPhrasesAsync
andExtractKeyPhrases
now returns aKeyPhraseCollection
. - Single operation method
RecognizeLinkedEntitiesAsync
andRecognizeLinkedEntities
now returns aLinkedEntityCollection
.
- Added
Text
property toSentenceSentiment
. Warnings
property added to each document-level response object returned from the endpoints. It is a list ofTextAnalyticsWarnings
.
- Replaced
TextAnalyticsApiKeyCredential
withAzureKeyCredential
. - Renamed all input parameters
inputText
todocument
, andinputs
todocuments
. - Removed the
RecognizePiiEntities
endpoint and all related models (RecognizePiiEntitiesResult
andPiiEntity
) from this library.
- Refactor common properties from
DetectLanguageInput
andTextDocumentInput
into it's own typeTextAnalyticsInput
. - Mock support for the Text Analytics client with respective samples.
- Integration for ASP.NET Core.
- In both
DocumentSentiment
andSentenceSentiment
propertySentimentScores
has been renamed toConfidenceScores
. - In
LinkedEntity
, propertyId
has been renamed toDataSourceEntityId
. - Change wording in all documentation from
text inputs
todocuments
. - Properties
Length
andOffset
have been renamed toGraphemeLength
andGraphemeOffset
for theSentenceSentiment
,CategorizedEntity
,PiiEntity
, andLinkedEntityMatch
objects, to make it clear that the offsets and lengths are in units of Unicode graphemes. CharacterCount
inTextDocumentStatistics
has been renamed toGraphemeCount
.- Unified
DocumentSentimentLabel
andSentenceSentimentLabel
intoTextSentiment
. SentimentConfidenceScorePerLabel
renamed toSentimentConfidenceScores
.- Extensible ENUM
SubCategory
has been deleted and managed as a string throughout the code. Score
has been renamed toConfidenceScore
for typesCategorizedEntity
,LinkedEntityMatch
, andPiiEntity
.
- Added
DetectLanguageInput.None
for user convenience when overriding the default behavior ofCountryHint
. - Added
PersonType
,Skill
,Product
,IP Address
, andEvent
to theEntityCategory
ENUM.
- The
TextAnalyticsError
model has been simplified to an object with propertiesCode
,Message
, andTarget
. - To use an API key as the credential for authenticating the client, a new credential class
TextAnalyticsApiKeyCredential("<api_key>")
must be passed in for the credential parameter. Passing the API key as a string is no longer supported. - Reference to
subscription key
changed toAPI key
. DetectLanguages
has been renamed toDetectLanguage
. Same applies forDetectLanguagesAsync
toDetectLanguageAsync
.- All batch overload methods have been renamed by adding the suffix
Batch
orBatchAsync
accordingly. For example, instead ofAnalyzeSentimentAsync
now we haveAnalyzeSentimentBatchAsync
. - Added a new parameter
TextAnalyticsRequestOptions
options to batch method overloads accepting a list of documents for allowing the users to opt for batch operation statistics. - All single text operation methods now return an atomic type of the operation result. For example
DetectLanguage(String text)
returns aDetectedLanguage
rather than aDetectLanguageResult
. NamedEntity.Type
andNamedEntity.SubType
have been renamed toNamedEntity.Category
andNamedEntity.SubCategory
.NamedEntity
has been renamed toCategorizedEntity
.RecognizeEntitiesResult
propertyNamedEntities
has been renamed toEntities
.RecognizePiiEntitiesResult
now contains a list ofPiiEntity
instead ofNamedEntity
.RecognizePiiEntitiesResult
propertyNamedEntities
has been renamed toEntities
.RecognizeLinkedEntitiesResult
propertyLinkedEntities
has been renamed toEntities
.DetectLanguageResult
no longer has a propertyDetectedLanguages
. UsePrimaryLanguage
to access the detected language in text.- Created class
DocumentSentiment
that includes a list ofSentenceSentiment
. - Sentiment label and sentiment scores are now part of
DocumentSentiment
andSentenceSentiment
. - Renamed
TextSentiment
toSentenceSentiment
. - Renamed
SentimentClass
toSentimentLabel
. - Extandable ENUMs created for
Category
, andSubCategory
.
Credential class TextAnalyticsApiKeyCredential
provides an UpdateCredential()
method which allows you to update the API key for long-lived clients.
A new HasError
property has added to <document>Collection
types to allow you to check if an operation on a particular document succeeded or failed.
If you try to access a result attribute where the operation was unsuccessful, an InvalidOperationException
is raised with a custom error message that provides information about the error.
This is the first preview of the Azure.AI.TextAnalytics
client library. It is not a direct replacement for Microsoft.Azure.CognitiveServices.Language.TextAnalytics
, as applications currently using that library would require code changes to use Azure.AI.TextAnalytics
.
This package's documentation and samples demonstrate the new API.
- This library supports only the Text Analytics Service v3.0-preview.1 API, whereas the previous library supports only earlier versions.
- The namespace/package name for Azure Text Analytics client library has changed from
Microsoft.Azure.CognitiveServices.Language.TextAnalytics
toAzure.AI.TextAnalytics
- Added support for:
- Subscription key and AAD authentication for both synchronous and asynchronous clients.
- Detect Language.
- Separation of Entity Recognition and Entity Linking.
- Identification of Personally Identifiable Information.
- Analyze Sentiment APIs including analysis for mixed sentiment.