- Upgraded
azure-core
from1.53.0
to version1.54.1
. - Upgraded
azure-core-http-netty
from1.15.5
to version1.15.7
.
- Upgraded
azure-core-http-netty
from1.15.4
to version1.15.5
. - Upgraded
azure-core
from1.52.0
to version1.53.0
.
- Upgraded
azure-core-http-netty
from1.15.3
to version1.15.4
. - Upgraded
azure-core
from1.51.0
to version1.52.0
. - Upgraded
azure-json
from1.2.0
to version1.3.0
.
- Upgraded
azure-core
from1.50.0
to version1.51.0
. - Upgraded
azure-core-http-netty
from1.15.2
to version1.15.3
. - Upgraded
azure-json
from1.1.0
to version1.2.0
.
- Removed remaining
jackson-databind
usages and dependency from the project.
- Upgraded
azure-core
from1.49.1
to version1.50.0
. - Upgraded
azure-core-http-netty
from1.15.1
to version1.15.2
.
- Upgraded
azure-core
from1.49.0
to version1.49.1
. - Upgraded
azure-core-http-netty
from1.15.0
to version1.15.1
.
- Upgraded
azure-core
from1.48.0
to version1.49.0
. - Upgraded
azure-core-http-netty
from1.14.2
to version1.15.0
.
- Upgraded
azure-core
from1.47.0
to version1.48.0
. - Upgraded
azure-core-http-netty
from1.14.1
to version1.14.2
.
- Upgraded
azure-core
from1.46.0
to version1.47.0
. - Upgraded
azure-core-http-netty
from1.14.0
to version1.14.1
.
- Upgraded
azure-core-http-netty
from1.13.11
to version1.14.0
. - Upgraded
azure-core
from1.45.1
to version1.46.0
.
- Upgraded
azure-core-http-netty
from1.13.10
to version1.13.11
. - Upgraded
azure-core
from1.45.0
to version1.45.1
.
- Upgraded
azure-core
from1.44.1
to version1.45.0
. - Upgraded
azure-core-http-netty
from1.13.9
to version1.13.10
.
- Added new default constructor to existing models for compatible with JDK 21. #36371
- Upgraded
azure-core-http-netty
from1.13.7
to version1.13.9
. - Upgraded
azure-core
from1.43.0
to version1.44.1
.
- Upgraded
azure-core-http-netty
from1.13.6
to version1.13.7
. - Upgraded
azure-core
from1.42.0
to version1.43.0
.
- Upgraded
azure-core-http-netty
from1.13.5
to version1.13.6
. - Upgraded
azure-core
from1.41.0
to version1.42.0
.
- Upgraded
azure-core-http-netty
from1.13.4
to version1.13.5
. - Upgraded
azure-core
from1.40.0
to version1.41.0
.
This version of the client library defaults to the service API version 2023-04-01.
- Added
values()
methods to all ExpandableStringEnum models. - Added more values to enum class:
HealthcareEntityCategory
andHealthcareEntityRelationType
.
Note: The following changes are only breaking from the previous beta. They are not breaking against previous stable versions.
- Removed
Auto Language Detection
,Dynamic Classification
,Entity Resoluton
, andHealthcare FHIR
features, which were introduced in the previous beta releases. - Renamed class:
SummaryContext
toAbstractiveSummaryContext
,SummarySentence
toExtractiveSummarySentence
,SummarySentencesOrder
toExtractiveSummarySentencesOrder
,ExtractSummaryOptions
toExtractiveSummaryOptions
,ExtractSummaryAction
toExtractiveSummaryAction
,ExtractSummaryActionResult
toExtractiveSummaryActionResult
,ExtractSummaryResult
toExtractiveSummaryResult
,ExtractSummaryResultCollection
toExtractiveSummaryResultCollection
,ExtractSummaryOperationDetail
toExtractiveSummaryOperationDetail
,ExtractSummaryPagedFlux
toExtractiveSummaryPagedFlux
,ExtractSummaryPagedIterable
toExtractiveSummaryPagedIterable
,AbstractSummaryOptions
toAbstractiveSummaryOptions
,AbstractSummaryAction
toAbstractiveSummaryAction
,AbstractSummaryActionResult
toAbtractiveSummaryActionResult
,AbstractSummaryResultCollection
toAbstractiveSummaryResultCollection
AbstractSummaryResult
toAbstractiveSummaryResult
,AbstractSummaryOperationDetail
toAbstractiveSummaryOperationDetail
,AbstractSummaryPagedFlux
toAbstractiveSummaryPagedFlux
,AbstractSummaryPagedIterable
toAbstractiveSummaryPagedIterable
, - Renamed methods:
getExtractSummaryActions()
togetExtractiveSummaryActions()
,getAbstractSummaryActions()
togetAbstractiveSummaryActions()
,setAbstractSummaryActions(AbstractSummaryAction... abstractSummaryActions)
tosetAbstractiveSummaryActions(AbstractiveSummaryAction... abstractiveSummaryActions)
,setExtractSummaryActions(ExtractSummaryAction... extractSummaryActions)
tosetExtractiveSummaryActions(ExtractiveSummaryAction... extractiveSummaryActions)
,getAbstractSummaryResults
togetAbstractiveSummaryResults
,getExtractSummaryResults
togetExtractiveSummaryResults
- Upgraded
azure-core
from1.39.0
to version1.40.0
. - Upgraded
azure-core-http-netty
from1.13.3
to version1.13.4
.
- Upgraded
azure-core-http-netty
from1.13.2
to version1.13.3
. - Upgraded
azure-core
from1.38.0
to version1.39.0
.
- Upgraded
azure-core
from1.37.0
to version1.38.0
. - Upgraded
azure-core-http-netty
from1.13.1
to version1.13.2
.
- Upgraded
azure-core-http-netty
from1.13.0
to version1.13.1
. - Upgraded
azure-core
from1.36.0
to version1.37.0
.
- Added the following methods for performing abstractive summarization and extractive summarization actions:
beginAbstractSummary(...)
beginExtractSummary(...)
- Added the following types for the newly added methods
AbstractSummaryOperationDetail
,AbstractSummaryOptions
,AbstractSummaryPagedFlux
,AbstractSummaryPagedIterable
ExtractSummaryOperationDetail
,ExtractSummaryOptions
,ExtractSummaryPagedFlux
,ExtractSummaryPagedIterable
- Changed
dynamic classify categories
as a required parameter in dynamic text classification methods. - Renamed naming phrase
DynamicClassficationXXX
toDynamicClassifyXXX
in class name, method name. - Changed
BaseResolution
to an abstract class. - Removed class
BooleanResolution
and enum valueBooleanResolution
in the classResolutionKind
. - Renamed
maxSentenceCount
tosentenceCount
in abstractive summarization.
- Integrate synchronous workflow for sync clients so that they do not block on async client APIs. It simplifies stack traces and improves debugging experience.
- Upgraded
azure-core
from1.35.0
to version1.36.0
. - Upgraded
azure-core-http-netty
from1.12.8
to version1.13.0
.
- Updated
azure-core
to1.35.0
. - Updated
azure-core-http-netty
to1.12.8
.
- This version of the client library marks a beta release and defaults to the service API version
2022-10-01-preview
. - Added properties
fhirVersion
anddocumentType
toAnalyzeHealthcareEntitiesOptions
andAnalyzeHealthcareEntitiesAction
. - Added property
fhirBundle
toAnalyzeHealthcareEntitiesResult
. - Added property
confidenceScore
toHealthcareEntityRelation
. - Added enum
HealthcareDocumentType
andFhirVersion
. - Added property
resolutions
toCategorizedEntity
. - Added models and enums related to resolutions:
BaseResolution
,ResolutionKind
,AgeResolution
,AreaResolution
,BooleanResolution
,CurrencyResolution
,DateTimeResolution
,InformationResolution
,LengthResolution
,NumberResolution
,NumericRangeResolution
,OrdinalResolution
,SpeedResolution
,TemperatureResolution
,TemporalSpanResolution
,VolumeResolution
,WeightResolution
,AgeUnit
,AreaUnit
,TemporalModifier
,InformationUnit
,LengthUnit
,NumberKind
,RangeKind
,RelativeTo
,SpeedUnit
,TemperatureUnit
,VolumeUnit
, andWeightUnit
. - Added the Extractive Summarization feature and related models:
ExtractSummaryAction
,ExtractSummaryActionResult
,ExtractSummaryResultCollection
,ExtractSummaryResult
,SummarySentence
andSummarySentencesOrder
. Access the feature through thebeginAnalyzeActions
API. - Added the Abstractive Summarization feature and related models:
AbstractSummaryAction
,AbstractSummaryActionResult
,AbstractSummaryResultCollection
,AbstractSummaryResult
,AbstractiveSummary
, andSummaryContext
. Access the feature through thebeginAnalyzeActions
API. - Added the dynamic text classification on documents without needing to train a model. The feature can be used by calling:
- Synchronous API:
Response<DynamicClassifyDocumentResultCollection> dynamicClassificationBatchWithResponse(Iterable<TextDocumentInput> documents, DynamicClassificationOptions options, Context context)
- Asynchronous API:
Mono<Response<DynamicClassifyDocumentResultCollection>> dynamicClassificationBatchWithResponse(Iterable<TextDocumentInput> documents, DynamicClassificationOptions options)
. - Added new models:
ClassificationType
,DynamicClassificationOptions
andDynamicClassifyDocumentResultCollection
.
- Synchronous API:
- Added automatic language detection to long-running operation APIs. Pass
auto
into the documentlanguage
hint to use this feature. - Added property
detectedLanguage
toRecognizeEntitiesResult
,RecognizePiiEntitiesResult
,AnalyzeHealthcareEntitiesResult
,ExtractKeyPhrasesResult
,RecognizeLinkedEntitiesResult
,AnalyzeSentimentResult
,RecognizeCustomEntitiesResult
,ClassifyDocumentResult
,ExtractSummaryResult
, andAbstractSummaryResult
to indicate the language detected by automatic language detection. - Added property
script
toDetectedLanguage
to indicate the script of the input document, and new enum modelScriptKind
.
- Updated
azure-core
to1.34.0
. - Updated
azure-core-http-netty
to1.12.7
.
- Updated
azure-core
to1.33.0
. - Updated
azure-core-http-netty
to1.12.6
.
- This version of the client library marks a stable release and defaults to the service API version
2022-05-01
. - Added overload methods to take only required input parameter for all existing long-running operations:
beginAnalyzeActions(Iterable<String> documents, TextAnalyticsActions actions)
beginAnalyzeHealthcareEntities(Iterable<String> documents)
beginMultiLabelClassify(Iterable<String> documents, String projectName, String deploymentName)
beginRecognizeCustomEntities(Iterable<String> documents, String projectName, String deploymentName)
beginSingleLabelClassify(Iterable<String> documents, String projectName, String deploymentName)
- Added
displayName
property which is the name of long-running operation, to the following classes to set the optional display name:AnalyzeHealthcareEntitiesOptions
MultiLabelClassifyOptions
RecognizeCustomEntitiesOptions
SingleLabelClassifyOptions
- Added
displayName
property to the following operations to read the optional display name set on options classes above:AnalyzeHealthcareEntitiesOperationDetail
fromAnalyzeHealthcareEntitiesOptions
ClassifyDocumentOperationDetail
fromMultiLabelClassifyOptions
andSingleLabelClassifyOptions
RecognizeCustomEntitiesOperationDetail
fromRecognizeCustomEntitiesOptions
- Updated
azure-core
to1.32.0
. - Updated
azure-core-http-netty
to1.12.5
.
- We are now targeting the service's
2022-05-01
API as the default. - Added bespoke methods for the custom entity recognition, and single-label and multi-label classification features,
such as,
beginRecognizeCustomEntities()
,beginSingleLabelClassify()
andbeginMultiLabelClassify()
.
- Removed support for
Healthcare FHIR
, andExtractive Summarization
features. - Renamed
SingleCategoryClassifyAction
toSingleLabelClassifyAction
,MultiCategoryClassifyAction
toMultiLabelClassifyAction
. - Merged
SingleCategoryClassifyResultCollection
andSingleCategoryClassifyResultCollection
toClassifyDocumentResultCollection
,MultiCategoryClassifyResult
andSingleCategoryClassifyResult
toClassifyDocumentResult
.
- Updated
azure-core
to1.31.0
. - Updated
azure-core-http-netty
to1.12.4
.
- Updated
azure-core
to1.30.0
. - Updated
azure-core-http-netty
to1.12.3
.
- Updated
azure-core
to1.29.1
. - Updated
azure-core-http-netty
to1.12.2
.
Note that 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
. Support for
v3.2-preview.2
is removed, however, all functionalities are included in the latest version.
- Added interfaces from
com.azure.core.client.traits
toTextAnalyticsClientBuilder
. - Added support for Healthcare Entities Analysis through the
beginAnalyzeActions
API with theAnalyzeHealthcareEntitiesAction
type. - Added property
fhirVersion
toAnalyzeHealthcareEntitiesOptions
andAnalyzeHealthcareEntitiesAction
. Use the keyword to indicate the version for thefhirBundle
contained on theAnalyzeHealthcareEntitiesResult
. - Added property
fhirBundle
toAnalyzeHealthcareEntitiesResult
.
- Updated
azure-core
to1.28.0
. - Updated
azure-core-http-netty
to1.12.0
.
- Updated
azure-core
to1.27.0
. - Updated
azure-core-http-netty
to1.11.9
.
- Updated
azure-core
to1.26.0
. - Updated
azure-core-http-netty
to1.11.8
.
- Updated
azure-core
to1.25.0
. - Updated
azure-core-http-netty
to1.11.7
.
- Updated
azure-core
from1.22.0
to1.24.1
. - Updated
azure-core-http-netty
from1.11.2
to1.11.6
.
- Updated
azure-core
from1.21.0
to1.22.0
. - Updated
azure-core-http-netty
from1.11.1
to1.11.2
.
- We are now targeting the service's v3.2-preview.2 API as the default instead of v3.2-preview.1.
- Multiple of the same action type is now supported with
beginAnalyzeActions
method, and the action name for each action can be set now. - Added support for
Custom Entity Recognition
actions through theRecognizeCustomEntitiesAction
type. This action can be used to get a custom entity recognition for an input document or batch of documents. - Added support for
Custom Single Classification
actions through theSingleCategoryClassifyAction
type. This action can be used to get a custom classification for an input document or batch of documents. - Added support for
Custom Multiple Classification
actions through theMultiCategoryClassifyAction
type. This action can be used to get multiple custom classifications for an input document or batch of documents.
- Renamed methods
setSentencesOrderBy()
tosetOrderBy()
andgetSentencesOrderBy()
togetOrderBy()
, in the option bag,ExtractSummaryAction
.
- Updated
azure-core
from1.20.0
to1.21.0
. - Updated
azure-core-http-netty
from1.11.0
to1.11.1
.
- Updated
azure-core
from1.19.0
to1.20.0
. - Updated
azure-core-http-netty
from1.10.2
to1.11.0
.
- We are now targeting the service's v3.2-preview.1 API as the default instead of v3.1.
- Added support for Extractive Summarization actions through the
ExtractSummaryAction
type.
- Updated
azure-core
from1.18.0
to1.19.0
. - Updated
azure-core-http-netty
from1.10.1
to1.10.2
.
- Fixed the bug to support the default value
disableServiceLogs = true
, in the option bags,AnalyzeHealthcareEntitiesOptions
,RecognizePiiEntitiesOptions
andRecognizePiiEntitiesAction
, - Using UTF-16 code unit as the default encoding in the
Sentiment Analysis
andLinked Entities Recognition
actions.
- 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.
- 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.
- Added property
disableServiceLogs
to all endpoints' options bag - Added support for
Sentiment Analysis
as an action type for thebeginAnalyzeActions
API.
- We are now targeting the service's v3.1-preview.5 API as the default instead of v3.1-preview.4.
- Removed
batch
keyword from the model names,AnalyzeBatchActionsResult
,AnalyzeBatchActionsOperationDetail
,AnalyzeBatchActionOptions
and the related method names, such as renamedbeginAnalyzeBatchActions
tobeginAnalyzeActions
. - Renamed the static final String type
TEXT_ELEMENTS_V8
toTEXT_ELEMENT_V8
in theStringIndexType
class.
- Fixed
NullPointerException
for passing valuenull
to options tasks in theTextAnalyticsActions
.
- Updated
azure-core
from1.15.0
to1.16.0
. - Updated
azure-core-http-netty
from1.9.1
to1.9.2
. - Updated
azure-core-serializer-json-jackson
from1.2.2
to1.2.3
.
- Removed the input parameter
Context
from non-max-overload healthcare synchronous API,beginAnalyzeHealthcareEntities()
.
- Update dependency version,
azure-core
to 1.15.0 andazure-core-http-netty
to 1.9.1.
- We are now targeting the service's v3.1-preview.4 API as the default instead of v3.1-preview.3.
- Added a new property
categoriesFilter
toRecognizePiiEntitiesOptions
. The PII entity recognition endpoint will return the result with categories only match the givencategoriesFilter
list. - Added
normalizedText
property toHealthcareEntity
. AnalyzeHealthcareEntitiesResult
now exposes the propertyentityRelations
, which is a list ofHealthcareEntityRelation
.- Added
HealthcareEntityRelation
class which will determine all the different relations between the entities asRoles
. - Added
HealthcareEntityRelationRole
, which exposesname
andentity
of typeString
andHealthcareEntity
respectively. beginAnalyzeBatchActions
can now process recognize linked entities actions.recognizePiiEntities
takes a new option,categoriesFilter
, that specifies a list of PII categories to return.- Added new classes,
RecognizeLinkedEntitiesActionResult
,PiiEntityCategory
.
- Removed
PiiEntity
constructor andPiiEntity
'scategory
property is no longer a type ofEntityCategory
but use a new introduced typePiiEntityCategory
. - Replace
isNegated
byHealthcareEntityAssertion
toHealthcareEntity
which further exposesEntityAssociation
,EntityCertainity
andEntityConditionality
. - Renamed classes,
AspectSentiment
toTargetSentiment
,OpinionSentiment
toAssesssmentSentiment
,MinedOpinion
toSentenceOpinion
. - Renamed
SentenceSentiment
's method,getMinedOpinions()
togetOpinions()
.MinedOpinion
's methods,getAspect()
togetTarget()
,getOpinions()
togetAssessments()
. - Removed property,
relatedEntities
fromHealthcareEntity
. - Removed constructors,
SentenceSentiment(String text, TextSentiment sentiment, SentimentConfidenceScores confidenceScores, IterableStream<MinedOpinion> minedOpinions, int offset)
,AspectSentiment(String text, TextSentiment sentiment, int offset, SentimentConfidenceScores confidenceScores)
,OpinionSentiment(String text, TextSentiment sentiment, int offset, boolean isNegated, SentimentConfidenceScores confidenceScores)
beginAnalyzeHealthcareEntities
is currently in gated preview and can not be used with AAD credentials. For more information, see the Text Analytics for Health documentation.
- Update dependency version,
azure-core
to 1.14.0 andazure-core-http-netty
to 1.9.0.
- Added new classes,
StringIndexType
,RecognizeEntitiesOptions
,RecognizeLinkedEntitiesOptions
. - A new options to control how the offset and length are calculated by the service. Added
StringIndexType
to allAnalyzeSentimentOptions
,RecognizeEntitiesOptions
,RecognizeLinkedEntitiesOptions
,RecognizePiiEntitiesOptions
and the default isUTF16CODE_UNIT
if null value is assigned. For more information, see the Text Analytics documentation. - Added property
length
toCategorizedEntity
,SentenceSentiment
,LinkedEntityMatch
,AspectSentiment
,OpinionSentiment
, andPiiEntity
. - Added new API,
Mono<Response<RecognizeEntitiesResultCollection>> recognizeEntitiesBatchWithResponse( Iterable<TextDocumentInput> documents, RecognizeEntitiesOptions options)
,Response<RecognizeEntitiesResultCollection> recognizeEntitiesBatchWithResponse( Iterable<TextDocumentInput> documents, RecognizeEntitiesOptions options, Context context)
,Mono<Response<RecognizeLinkedEntitiesResultCollection>> recognizeLinkedEntitiesBatchWithResponse( Iterable<TextDocumentInput> documents, RecognizeLinkedEntitiesOptions options)
,Response<RecognizeLinkedEntitiesResultCollection> recognizeLinkedEntitiesBatchWithResponse( Iterable<TextDocumentInput> documents, RecognizeLinkedEntitiesOptions options, Context context)
- The healthcare entities returned by
beginAnalyzeHealthcareEntities
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. - The
links
property ofHealthcareEntity
is renamed todataSources
, a list of objects representing medical databases, where each object hasname
andentityId
properties. - Replace API
PollerFlux<TextAnalyticsOperationResult, PagedFlux<HealthcareTaskResult>> beginAnalyzeHealthcare(Iterable<TextDocumentInput> documents, RecognizeHealthcareEntityOptions options)
toPollerFlux<AnalyzeHealthcareEntitiesOperationDetail, PagedFlux<AnalyzeHealthcareEntitiesResultCollection>> beginAnalyzeHealthcareEntities(Iterable<TextDocumentInput> documents, AnalyzeHealthcareEntitiesOptions options)
,SyncPoller<TextAnalyticsOperationResult, PagedIterable<HealthcareTaskResult>> beginAnalyzeHealthcare(Iterable<TextDocumentInput> documents, RecognizeHealthcareEntityOptions options, Context context)
toSyncPoller<AnalyzeHealthcareEntitiesOperationDetail, PagedIterable<AnalyzeHealthcareEntitiesResultCollection>> beginAnalyzeHealthcareEntities(Iterable<TextDocumentInput> documents, AnalyzeHealthcareEntitiesOptions options, Context context)
- New overload APIs,
PollerFlux<AnalyzeHealthcareEntitiesOperationDetail, PagedFlux<AnalyzeHealthcareEntitiesResultCollection>> beginAnalyzeHealthcareEntities(Iterable<String> documents, String language, AnalyzeHealthcareEntitiesOptions options)
,SyncPoller<AnalyzeHealthcareEntitiesOperationDetail, PagedIterable<AnalyzeHealthcareEntitiesResultCollection>> beginAnalyzeHealthcareEntities(Iterable<String> documents, String language, AnalyzeHealthcareEntitiesOptions options, Context context)
- Added
AnalyzeHealthcareEntitiesResultCollection
,AnalyzeHealthcareEntitiesResult
,HealthcareEntityRelationType
- Removed
HealthcareTaskResult
,HealthcareEntityRelation
,HealthcareEntityCollection
,JobMetadata
,JobState
- Renamed
HealthcareEntityLink
toEntityDataSource
,RecognizeHealthcareEntityOptions
toAnalyzeHealthcareEntitiesOptions
,RecognizeHealthcareEntitiesResult
toAnalyzeHealthcareEntitiesResult
,RecognizeHealthcareEntitiesResultCollection
toAnalyzeHealthcareEntitiesResultCollection
TextAnalyticsOperationResult
toAnalyzeHealthcareEntitiesOperationDetail
- The word "action" are used consistently in our names and documentation instead of "task".
- Replace API
PollerFlux<TextAnalyticsOperationResult, PagedFlux<AnalyzeTasksResult>> beginAnalyzeTasks(Iterable<TextDocumentInput> documents, AnalyzeTasksOptions options)
toPollerFlux<AnalyzeBatchActionsOperationDetail, PagedFlux<AnalyzeBatchActionsResult>> beginAnalyzeBatchActions(Iterable<TextDocumentInput> documents, TextAnalyticsActions actions, AnalyzeBatchActionsOptions options)
,SyncPoller<TextAnalyticsOperationResult, PagedIterable<AnalyzeTasksResult>> beginAnalyzeTasks(Iterable<TextDocumentInput> documents, AnalyzeTasksOptions options, Context context)
toSyncPoller<AnalyzeBatchActionsOperationDetail, PagedIterable<AnalyzeBatchActionsResult>> beginAnalyzeBatchActions(Iterable<TextDocumentInput> documents, TextAnalyticsActions actions, AnalyzeBatchActionsOptions options, Context context)
- Added new overload APIs,
PollerFlux<AnalyzeBatchActionsOperationDetail, PagedFlux<AnalyzeBatchActionsResult>> beginAnalyzeBatchActions(Iterable<String> documents, TextAnalyticsActions actions, String language, AnalyzeBatchActionsOptions options)
,SyncPoller<AnalyzeBatchActionsOperationDetail, PagedIterable<AnalyzeBatchActionsResult>> beginAnalyzeBatchActions(Iterable<String> documents, TextAnalyticsActions actions, String language, AnalyzeBatchActionsOptions options)
- Added
ExtractKeyPhrasesActionResult
,RecognizeEntitiesActionResult
,RecognizePiiEntitiesActionResult
,TextAnalyticsActions
,TextAnalyticsActionResult
- Removed
EntitiesTask
,KeyPhrasesTask
,PiiTask
,TextAnalyticsErrorInformation
- Renamed
AnalyzeTasksOptions
toAnalyzeBatchActionsOptions
,AnalyzeTasksResult
toAnalyzeBatchActionsResult
,EntitiesTaskParameters
toRecognizeEntitiesOptions
KeyPhrasesTaskParameters
toExtractKeyPhrasesOptions
,PiiTaskParameters
toRecognizePiiEntityOptions
,PiiEntityDomainType
toPiiEntitiesDomainType
,RecognizePiiEntityOptions
toRecognizePiiEntitiesOptions
,TextAnalyticsOperationResult
toAnalyzeBatchActionsOperationDetail
- Update dependency version,
azure-core
to 1.13.0 andazure-core-http-netty
to 1.8.0.
- Update dependency version,
azure-core
to 1.12.0 andazure-core-http-netty
to 1.7.1.
- Added support for healthcare recognition feature. It is represented as a long-running operation. Cancellation supported.
- Added support for analyze tasks feature, It analyzes multiple tasks (such as, entity recognition, PII entity recognition and key phrases extraction) simultaneously in a list of document.
- Currently, Azure Active Directory (AAD) is not supported in the Healthcare recognition feature. For more information, see here.
- Both new features listed above are available in
West US2
,East US2
,Central US
,North Europe
andWest Europe
regions and in Standard tier.
- Update dependency version,
azure-core
to 1.10.0 andazure-core-http-netty
to 1.6.3.
- Removed property
length
fromCategorizedEntity
,SentenceSentiment
,LinkedEntityMatch
,AspectSentiment
,
OpinionSentiment
, andPiiEntity
because the length information can be accessed from the text property itself using the string's length property.
- Update dependency version,
azure-core
to 1.9.0 andazure-core-http-netty
to 1.6.2.
- Added
offset
andlength
properties forCategorizedEntity
,LinkedEntityMatch
andSentenceSentiment
length
is the number of characters in the text of these modelsoffset
is the offset of the text from the start of the document- Updated Text Analytics SDK's default service API version to
v3.1-preview.2
fromv3.0
. - Added support for Personally Identifiable Information(PII) entity recognition feature. To use this feature, you need to make sure you are using the service's v3.1-preview.1 API.
- Added support for the Opinion Mining feature. To use this feature, you need to make sure you are using the
service's v3.1-preview.1 and above API. To get this support passincludeOpinionMining
astrue
in
AnalyzeSentimentOptions
when calling the sentiment analysis endpoints. - Add 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
.
- Update dependency version,
azure-core
to 1.6.0 andazure-core-http-netty
to 1.5.3.
- First stable release of
azure-ai-textanalytics
.
- Added Text property and
getText()
toSentenceSentiment
. Warnings
property added to each document-level response object returned from the endpoints. It is a list ofTextAnalyticsWarnings
.- Added
CategorizedEntityCollection
,KeyPhrasesCollection
,LinkedEntityCollection
for havinggetWarnings()
to retrieve warnings. - Added a new enum value
ADDRESS
toEntityCategory
. - Text analytics SDK update the service to version
v3.0
fromv3.0-preview.1
.
- Removed pagination feature, which removed
TextAnalyticsPagedIterable
,TextAnalyticsPagedFlux
andTextAnalyticsPagedResponse
- Removed overload methods for API that takes a list of String, only keep max-overload API that has a list of String, language or country hint, and
TextAnalyticsRequestOption
. - Renamed
apiKey()
tocredential()
on TextAnalyticsClientBuilder. - Removed
getGraphemeLength()
andgetGraphemeOffset()
fromCategorizedEntity
,SentenceSentiment
, andLinkedEntityMatch
. getGraphemeCount()
inTextDocumentStatistics
has been renamed togetCharacterCount()
.getScore()
inDetectedLanguage
has been renamed togetConfidenceScore()
.getSubCategory()
inCategorizedEntity
has been renamed togetSubcategory()
.getLinkedEntityMatches()
inLinkedEntity
has been renamed togetMatches()
.getCode()
inTextAnalyticsException
andTextAnalyticsError
has been renamed togetErrorCode()
.getCode()
inTextAnalyticsWarning
has been renamed togetWarningCode()
.- Async client returns errors, mono error or flux error but no longer throws exception. Sync client throws exceptions only.
- Deprecated
TextDocumentInput(String id, String text, String language)
constructor, but addedsetLanguage()
setter sincelanguage
is optional. - Renamed
RecognizeCategorizedEntitiesResult
toRecognizeEntitiesResult
. - Renamed
DocumentResult
toTextAnalyticsResult
. - Removed
getServiceVersion()
from both synchronous and asynchronous clients. - Replaced all single input asynchronous APIs, e.x.,
TextAnalyticsPagedFlux<CategorizedEntity> recognizeEntities(String document)
toMono<CategorizedEntityCollection> recognizeEntities(String document)
.TextAnalyticsPagedFlux<LinkedEntity> recognizeLinkedEntities(String document)
toMono<LinkedEntityCollection> recognizeLinkedEntities(String document)
.TextAnalyticsPagedFlux<String> extractKeyPhrases(String document)
toMono<KeyPhrasesCollection> extractKeyPhrases(String document)
.
- Replaced all single input synchronous APIs, e.x.,
TextAnalyticsPagedIterable<CategorizedEntity> recognizeEntities(String document)
toCategorizedEntityCollection recognizeEntities(String document)
.TextAnalyticsPagedIterable<LinkedEntity> recognizeLinkedEntities(String document)
toLinkedEntityCollection recognizeLinkedEntities(String document)
.TextAnalyticsPagedIterable<String> extractKeyPhrases(String document)
toKeyPhrasesCollection extractKeyPhrases(String document)
.
- Throws an illegal argument exception when the given list of documents is an empty list.
- Renamed all input parameters
text
todocument
, andinputTexts
todocuments
. - Removed all PII endpoints and update with related changes, such as remove related models, samples, codesnippets, docstrings, etc from this library.
- Replaced
TextAnalyticsApiKeyCredential
withAzureKeyCredential
.
- Introduced
TextAnalyticsPagedFlux
,TextAnalyticsPagedIterable
, andTextAnalyticsPagedResponse
type. MovedmodelVersion
amdTextDocumentBatchStatistics
intoTextAnalyticsPagedResponse
. All collection APIs are returnTextAnalyticsPagedFlux
andTextAnalyticsPagedIterable
in the asynchronous and synchronous client, respectively. SoDocumentResultCollection
is no longer required. Most of existing API surface are changes. Please check upTextAnalyticsAsyncClient
andTextAnalyticsClient
for more detail. - Introduced
EntityCategory
class to support major entity categories that the service supported. - Added
getDefaultCountryHint()
,getDefaultLanguage()
andgetServiceVersion()
toTextAnalyticsClient
- Supported
Iterable<T>
instead ofList<T>
text inputs. - Default language and country hint can only be assigned value when building a Text Analytics client.
- Renamed
showStatistics()
toisIncludeStatistics()
in theTextAnalyticsRequestOptions
. - Renamed
getErrorCodeValue()
togetCode()
in theTextAnalyticsException
. - Renamed
getOffset()
,getLength()
andgetScore()
togetGraphemeOffset()
,getGraphemeLength
andgetConfidenceScore()
inCategorizedEntity
,LinkedEntityMatch
,PiiEntity
. - Renamed
SentimentLabel
toTextSentiment
class. - Renamed
SentimentScorePerLabel
toSentimentConfidenceScores
class. - Renamed
getCharacterCount()
togetGraphemeCount()
in theTextDocumentStatistics
. - Removed
InnerError
,DocumentResultCollection
andTextAnalyticsClientOptions
class.
-
The single text, module-level operations return an atomic type of the operation result. For example,
detectLanguage(String text)
returns aDetectedLanguage
rather than aDetectLanguageResult
.For other module-level operations,
recognizeEntities(String text)
, it no longer returns type ofMono<RecognizeEntitiesResult>
butPagedFlux<CategorizedEntity>
in asynchronous API andPagedIterable<CategorizedEntity>
in synchronous API.recognizePiiEntities(String text)
, it no longer returns type ofMono<RecognizePiiEntitiesResult>
butPagedFlux<PiiEntity>
in asynchronous API andPagedIterable<PiiEntity>
in synchronous API.recognizeLinkedEntities(String text)
, it no longer returns type ofMono<RecognizeLinkedEntitiesResult>
butPagedFlux<LinkedEntity>
in asynchronous API andPagedIterable<LinkedEntity>
in synchronous API.extractKeyPhrases(String text)
, it no longer returns type ofMono<ExtractKeyPhraseResult>
butPagedFlux<String>
in asynchronous API andPagedIterable<String>
in synchronous API.analyzeSentiment(String text)
, it no longer returns type ofMono<AnalyzeSentimentResult>
butMono<DocumentSentiment>
in asynchronous API andDocumentSentiment
in synchronous API.recognizeEntitiesWithResponse(String text, String language)
changed torecognizeEntities(String text, String language)
and returnPagedFlux<CategorizedEntity>
in asynchronous API andPagedIterable<CategorizedEntity>
in synchronous API as a collection of atomic typeCategorizedEntity
.recognizePiiEntitiesWithResponse(String text, String language)
changed torecognizePiiEntities(String text, String language)
and returnPagedFlux<PiiEntity>
in asynchronous API andPagedIterable<PiiEntity>
in synchronous API as a collection of atomic typePiiEntity
.recognizeLinkedEntitiesWithResponse(String text, String language)
changed torecognizeLinkedEntities(String text, String language)
and returnPagedFlux<LinkedEntity>
in asynchronous API andPagedIterable<LinkedEntity>
in synchronous API as a collection of atomic typeLinkedEntity
.extractKeyPhrasesWithResponse(String text, String language)
changed toextractKeyPhrases(String text, String language)
and returnPagedFlux<String>
in asynchronous API andPagedIterable<String>
in synchronous API as a collection of atomic typeString
.analyzeSentimentWithResponse(String text, String language)
returnMono<Response<DocumentSentiment>>
in asynchronous API andResponse<DocumentSentiment>
in synchronous API with an atomic typeDocumentSentiment
. -
Removed
TextSentiment
class but createdDocumentSentiment
andSentenceSentiment
instead.DocumentSentiment
includes a list ofSentenceSentiment
. -
Added a new class model
SentimentScorePerLabel
for the scores of sentiment label. -
Added a new parameter
TextAnalyticsRequestOptions options
to method overloads accepting a list of text inputs for allowing the users to opt for batch operation statistics. -
Passing the API key as a string is no longer supported. To use subscription key authentication a new credential class
TextAnalyticsApiKeyCredential("<api_key>")
must be passed in for thecredential
parameter. -
detectLanguages()
is renamed todetectLanguage()
. -
The
TextAnalyticsError
model has been simplified to an object with only attributescode
,message
, andtarget
. -
RecognizePiiEntitiesResult
now contains on the object a list ofPiiEntity
instead ofNamedEntity
. -
DetectLanguageResult
no longer hasList<DetectedLanguage> detectedLanguages
. UsegetPrimaryLanguage()
to access the detected language in text. -
AnalyzeSentimentResult
no longer takesList<TextSentiment> sentenceSentiments
and removedgetSentenceSentiments()
. -
NamedEntity
has been renamed toCategorizedEntity
and its attributestype
tocategory
andsubtype
tosubcategory
. -
Renamed
SentimentClass
toSentimentLabel
. -
getLinkedEntities()
togetEntities()
and variablelinkedEntities
toentities
. -
Added suffix of
batch
to all operations' method name that takes a collection of input.
- Credential class
TextAnalyticsApiKeyCredential
provides anupdateCredential()
method which allows you to update the API key for long-lived clients.
- If you try to access a result attribute on a
DocumentError
object, aTextAnalyticsException
is raised with a custom error message that provides the document ID and error of the invalid document.
Version 1.0.0-beta.1 is a preview of our efforts in creating a client library that is developer-friendly, idiomatic to the Java ecosystem, and as consistent across different languages and platforms as possible. The principles that guide our efforts can be found in the Azure SDK Design Guidelines for Java.
- It uses the Text Analytics service
v3.0-preview.1
API. - New namespace/package name:
- The namespace/package name for Azure Text Analytics client library has changed from
com.microsoft.azure.cognitiveservices.language.textanalytics
tocom.azure.ai.textanalytics
- The namespace/package name for Azure Text Analytics client library has changed from
- Added support for:
- Subscription key and AAD authentication for both synchronous and asynchronous clients.
- Language detection.
- Entity recognition.
- Entity linking recognition.
- Personally identifiable information entities recognition.
- Key phrases extraction.
- Analyze sentiment APIs including analysis for mixed sentiment.
- Reactive streams support using Project Reactor.
This package's documentation and samples demonstrate the new API.