5.1.0 (2021-07-07)
New features
- 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.
Breaking changes
- 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.