-
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
Add offset and length to SentenceSentiment #14599
Conversation
...zure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/models/CategorizedEntity.java
Show resolved
Hide resolved
...zure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/models/CategorizedEntity.java
Show resolved
Hide resolved
...zure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/models/SentenceSentiment.java
Show resolved
Hide resolved
* | ||
* @return The {@link SentimentConfidenceScores}. | ||
* @return The offset of sentence. |
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.
nit: Consider updating to start position for the sentence in a document.
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.
I feel it is too redundant for having it both in the method description and the return value.
this.offset = 0; | ||
this.length = 0; |
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.
These initializations are only on SentenceSentiment and not on LinkedEntityMatch
or CategorizedEntity
?
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 do have in LinkedEntityMatch: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/models/LinkedEntityMatch.java#L44
and CategorizedEntity: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/models/CategorizedEntity.java#L56
fixes: #13418