-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TA PagedFlux, PagedIterable, PagedResponse class #8391
Conversation
…into TextAnalyticsPagedFlux
…into TextAnalyticsPagedFlux
…into TextAnalyticsPagedFlux
...lytics/azure-ai-textanalytics/src/samples/java/com/azure/ai/textanalytics/ReadmeSamples.java
Show resolved
Hide resolved
...e-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/AnalyzeSentimentAsyncClient.java
Outdated
Show resolved
Hide resolved
...e-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/AnalyzeSentimentAsyncClient.java
Outdated
Show resolved
Hide resolved
...e-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/AnalyzeSentimentAsyncClient.java
Show resolved
Hide resolved
...e-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/AnalyzeSentimentAsyncClient.java
Outdated
Show resolved
Hide resolved
…into TextAnalyticsPagedFlux
...zure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/models/LinkedEntityMatch.java
Outdated
Show resolved
Hide resolved
@maririos This PR will include all changes for P3. I don't think there is a time for merging other PRs. |
...re-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/models/DetectLanguageInput.java
Show resolved
Hide resolved
import java.util.List; | ||
|
||
/** | ||
* Sample demonstrates how to recognize the entities of a batch input text. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider changing to documents or batch of documents,
Same across this and other documents
linkedEntityMatch.getOffset(), linkedEntityMatch.getLength(), linkedEntityMatch.getScore()); | ||
} | ||
} | ||
linkedEntityMatch.getGraphemeOffset(), linkedEntityMatch.getGraphemeLength(), linkedEntityMatch.getScore())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider not showing the grapheme properties in the Readme or samples
.../java/com/azure/ai/textanalytics/implementation/models/SentimentConfidenceScorePerLabel.java
Show resolved
Hide resolved
import com.fasterxml.jackson.annotation.JsonCreator; | ||
|
||
/** | ||
* Defines values for {@link TextSentimentLabel}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should drop the 'Labelhere too, so just
TextSentiment`
I can't comment on that line, but please update the version of the package in here: https://github.com/Azure/azure-sdk-for-java/pull/8391/files#diff-120a7e45ac3baf2e0719201e59beb2e4R28 |
This PR includes:
DocumentResultCollection
class and createTextAnalyticsPagedResponse
class to includemodelVersion
andTextAnalyticsBatchStatistics
.TextAnalyticsPagedFlux
class that takesTextAnalyticsPagedResponse
. AndTextAnalyticsPagedIterable
fot the synchronous APIs.TextAnalyticsPagedFlux
for Async andTextAnalyticsPagedIterable
for Sync APIs.defaultCountryHint
. "As an example, in .NET we use the default of the client and then give the option to the user to override the behavior and use None as default." If a user pass in "none" case-insencetive, we treat it as an empty string.offset
andlength
tographemeLength
andgraphemeOffset
in SentenceSentiment,CategorizedEntity, PiiEntity, LinkedEntityMatch.
TextAnalyticsRequestOptions
EntityCategory
as .NET has now.fixes #8353
fixes #8224