-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Text Analytics] Expose StringIndextype for all endpoints #17968
Conversation
@@ -40,5 +42,10 @@ internal TextAnalyticsRequestOptions(bool includeStatistics, string modelVersion | |||
/// <a href="https://docs.microsoft.com/azure/cognitive-services/text-analytics/how-tos/text-analytics-how-to-sentiment-analysis#model-versioning"/>. | |||
/// </summary> | |||
public string ModelVersion { get; set; } | |||
|
|||
/// <summary> | |||
/// StringIndexType |
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.
Update this.
sdk/textanalytics/Azure.AI.TextAnalytics/tests/AnalyzeSentimentTests.cs
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsRequestOptions.cs
Outdated
Show resolved
Hide resolved
/// <summary> | ||
/// StringIndexType | ||
/// </summary> | ||
public StringIndexType? StringIndexType { get; set; } |
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.
So we need to keep a default value for the library, so user doesn't have to think about it.
I think it will be clearer for the user if they can see the default value of this parameter here.
Because it will always have a value, make it non-nullable
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 definitely need to work on the name (it could be in another PR) as currently it is hard to understand what it means
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.
could u open an issue for addressing the name?
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.
Could u put the link here so we can have the reference?
sdk/textanalytics/Azure.AI.TextAnalytics/tests/AnalyzeSentimentTests.cs
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/tests/AnalyzeSentimentTests.cs
Outdated
Show resolved
Hide resolved
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.
Just realized, because of this addition, we are going to have to surface the property Length
again in every type where it applies. Could you create an issue for it so later we can add it?
sdk/textanalytics/Azure.AI.TextAnalytics/tests/TextAnalyticsClientLiveTests.cs
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/tests/TextAnalyticsClientLiveTests.cs
Outdated
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/tests/TextAnalyticsClientLiveTests.cs
Show resolved
Hide resolved
sdk/textanalytics/Azure.AI.TextAnalytics/src/PiiTaskParameters.cs
Outdated
Show resolved
Hide resolved
...ty/Azure.MixedReality.Authentication/api/Azure.MixedReality.Authentication.netstandard2.0.cs
Outdated
Show resolved
Hide resolved
This reverts commit f70bd20.
|
Expose stringindextype to all endpoints
Description
This PR exposes StringIndexType for all endpoints.
For AnalyzeOperation, the StringIndexType will be passed from the parameters in the Tasks collection