Skip to content
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

Merged
merged 15 commits into from
Jan 16, 2021

Conversation

suhas92
Copy link
Member

@suhas92 suhas92 commented Jan 14, 2021

Description

This PR exposes StringIndexType for all endpoints.

For AnalyzeOperation, the StringIndexType will be passed from the parameters in the Tasks collection

@@ -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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update this.

/// <summary>
/// StringIndexType
/// </summary>
public StringIndexType? StringIndexType { get; set; }
Copy link
Member

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

Copy link
Member

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

Copy link
Member

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?

Copy link
Member

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?

Copy link
Member

@maririos maririos left a 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?

@suhas92
Copy link
Member Author

suhas92 commented Jan 15, 2021

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?

#18018

@maririos maririos merged commit a99c3e0 into Azure:master Jan 16, 2021
minnieliu pushed a commit to minnieliu/azure-sdk-for-net that referenced this pull request Jan 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants