5.1.0 (2021-07-08)
Feature Added
- We are now targeting the service's v3.1 API as the default instead of v3.1-preview.4.
- Added a new class,
HealthcareEntityCategory
to replace theString
type of propertycategory
in theHealthcareEntity
. - Added the new types,
ExtractKeyPhrasesAction
,RecognizeEntitiesAction
,RecognizePiiEntitiesAction
,
RecognizeLinkedEntitiesAction
, andAnalyzeSentimentAction
. - Added new customized
***PagedFlux
,***PagedIterable
types,AnalyzeActionsResultPagedFlux
,
AnalyzeActionsResultPagedIterable
,AnalyzeHealthcareEntitiesPagedFlux
, andAnalyzeHealthcareEntitiesPagedIterable
. beginAnalyzeHealthcareEntities
now works with Azure Active Directory credentials.
Breaking Changes
- Changed behavior in
beginAnalyzeActions
API where now accepts up to one action only per action type.
AnIllegalArgumentException
is raised if multiple actions of the same type are passed. - Replaced
AnalyzeActionsResultPagedFlux
toPagedFlux<AnalyzeActionsResult>
,
AnalyzeActionsResultPagedIterable
toPagedIterable<AnalyzeActionsResult>
,
AnalyzeHealthcareEntitiesPagedFlux
toPagedFlux<AnalyzeHealthcareEntitiesResultCollection>
,
AnalyzeHealthcareEntitiesPagedIterable
toPagedIterable<AnalyzeHealthcareEntitiesResultCollection>
. - Deprecated
analyzeSentimentBatch***
APIs with typeTextAnalyticsRequestOptions
option bag below. The same
functionalities can be done in the APIs withAnalyzeSentimentOptions
instead:
AnalyzeSentimentResultCollection analyzeSentimentBatch(Iterable<String> documents, String language, TextAnalyticsRequestOptions options)
,
Response<AnalyzeSentimentResultCollection> analyzeSentimentBatchWithResponse(Iterable<TextDocumentInput> documents, TextAnalyticsRequestOptions options, Context context)
,
Mono<Response<AnalyzeSentimentResultCollection>> analyzeSentimentBatchWithResponse(Iterable<TextDocumentInput> documents, TextAnalyticsRequestOptions options)
,
Mono<AnalyzeSentimentResultCollection> analyzeSentimentBatch(Iterable<String> documents, String language, TextAnalyticsRequestOptions options)
- Removed
StringIndexType
. This SDK will keep using UTF-16 code unit as the default encoding. - Removed type
ExtractKeyPhrasesOptions
,RecognizeEntitiesOptions
,RecognizeLinkedEntitiesOptions
and respective exposures. - Removed the property
statistics
fromAnalyzeActionsResult
as it is not currently returned by the service even if
the user passesincludeStatistics
=true
. - Removed constructors, but to use the private setter accessor to assign the additional properties:
CategorizedEntity(String text, EntityCategory category, String subcategory, double confidenceScore, int offset)
,
LinkedEntity(String name, IterableStream<LinkedEntityMatch> matches, String languages, String dataSourceEntityId, String url, String dataSource, String bingEntitySearchApiId)
,
LinkedEntityMatch(String text, double confidenceScore, int offset)
- Renamed type
PiiEntityDomainType
toPiiEntityDomain
. - Renamed
AnalyzeActionResult
's propertyrecognizeEntitiesActionResults
torecognizeEntitiesResults
which dropped the keywordAction
.
This change applied to all the other***ActionResults
properties as well. - Renamed property name
result
todocumentsResults
inAnalyzeSentimentActionResult
,ExtractKeyPhrasesActionResult
,
RecognizeEntitiesActionResult
,RecognizeLinkedEntitiesActionResult
, andRecognizePiiEntitiesActionResult
. - Renamed the enum values in
PiiEntityCategory
by separating words with the underscore character. - Renamed the methods in
AnalyzeActionsOperationDetail
,
getActionsFailed()
togetFailedCount()
,
getActionsInProgress()
togetInProgressCount()
,
getActionsInTotal()
togetTotalCount()
,
getActionsSucceeded()
togetSucceededCount()
. TextAnalyticsActions
now takes***Action
types, instead of***Options
types. Renamed The getter and setter method names
based on the new type names. Replacing types show as follows:ExtractKeyPhrasesOption
changed to new typeExtractKeyPhrasesAction
.RecognizeEntitiesOption
changed to new typeRecognizeEntitiesAction
.RecognizePiiEntitiesOption
changed to new typeRecognizePiiEntitiesAction
.RecognizeLinkedEntitiesOption
changed to new typeRecognizeLinkedEntitiesAction
.AnalyzeSentimentOption
changed to new typeAnalyzeSentimentAction
.
- Changed enum types
EntityCertainty
andEntityConditionality
toExpandableStringEnum
types.