-
Notifications
You must be signed in to change notification settings - Fork 1.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
[Text Analytics] Better names for assertions #14070
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,9 +91,6 @@ export interface AnalyzeSentimentSuccessResult extends TextAnalyticsSuccessResul | |
export interface AssessmentSentiment extends SentenceAssessment { | ||
} | ||
|
||
// @public | ||
export type Association = "subject" | "other"; | ||
|
||
export { AzureKeyCredential } | ||
|
||
// @public | ||
|
@@ -114,12 +111,6 @@ export interface BeginAnalyzeHealthcareEntitiesOptions extends TextAnalyticsOper | |
export interface CategorizedEntity extends Entity { | ||
} | ||
|
||
// @public | ||
export type Certainty = "Positive" | "Positive Possible" | "Neutral Possible" | "Negative Possible" | "Negative"; | ||
|
||
// @public | ||
export type Conditionality = "Hypothetical" | "Conditional"; | ||
|
||
// @public | ||
export interface DetectedLanguage { | ||
confidenceScore: number; | ||
|
@@ -217,20 +208,29 @@ export interface ExtractKeyPhrasesSuccessResult extends TextAnalyticsSuccessResu | |
keyPhrases: string[]; | ||
} | ||
|
||
// @public (undocumented) | ||
export interface HealthcareAssertion { | ||
association?: Association; | ||
certainty?: Certainty; | ||
conditionality?: Conditionality; | ||
} | ||
|
||
// @public | ||
export interface HealthcareEntity extends Entity { | ||
assertion?: HealthcareAssertion; | ||
assertion?: HealthcareEntityAssertion; | ||
dataSources: EntityDataSource[]; | ||
normalizedText?: string; | ||
} | ||
|
||
// @public (undocumented) | ||
export interface HealthcareEntityAssertion { | ||
association?: HealthcareEntityAssociation; | ||
certainty?: HealthcareEntityCertainty; | ||
conditionality?: HealthcareEntityConditionality; | ||
} | ||
|
||
// @public | ||
export type HealthcareEntityAssociation = "subject" | "other"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does JS/TS need to capitalize the first letter, such as "Subject", "Other"? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am just following the swagger, does this needs to be fixed in the swagger? |
||
|
||
// @public | ||
export type HealthcareEntityCertainty = "Positive" | "PositivePossible" | "NeutralPossible" | "NegativePossible" | "Negative"; | ||
|
||
// @public | ||
export type HealthcareEntityConditionality = "Hypothetical" | "Conditional"; | ||
|
||
// @public | ||
export interface HealthcareEntityRelation { | ||
relationType: HealthcareEntityRelationType; | ||
|
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.
EntityAssociation
should be good enough, since it is under theHealthcareEntityAssertion
. That logic also applies toEntityCertainty
andEntityConditionality
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 already use the
Healthcare
prefix for many types, e.g.:HealthcareEntityRelation,
HealthcareEntityRelationRole,
HealthcareEntityRelationRoleType
So I think we should be consistent and use the prefix
Healthcare
.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.
cc @maririos @suhas92 @iscai-msft @abhahn
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 don't necessarily agree. The relations, roles, and types, are in fact specific to Healthcare.
The association, certainty, and conditionally could apply to a general entity. I understand it is not the case now, but it will be good to ask the service team if this concept could ever be applied to other entities/endpoints
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.
Ok I asked Ashly and he said there could be plans to add assertions for other type of entities in one or two semesters. Based on this, I will remove the Healthcare prefix.
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.
Thanks for the follow up Deya!