HealthcareRelationRole 類別
代表關聯中角色的模型。
例如,在「主旨取用了 100 mg of ibuprofen」中,「100 mg」 是一個實體,在擷取的關聯 「OffOfMedication」 中完成角色 「一元」。
- 繼承
-
azure.ai.textanalytics._dict_mixin.DictMixinHealthcareRelationRole
建構函式
HealthcareRelationRole(**kwargs: Any)
方法
get | |
has_key | |
items | |
keys | |
update | |
values |
get
get(key: str, default: Any | None = None) -> Any
參數
名稱 | Description |
---|---|
key
必要
|
|
default
|
預設值: None
|
has_key
has_key(k: str) -> bool
參數
名稱 | Description |
---|---|
k
必要
|
|
items
items() -> Iterable[Tuple[str, Any]]
keys
keys() -> Iterable[str]
update
update(*args: Any, **kwargs: Any) -> None
values
values() -> Iterable[Any]
屬性
entity
存在於關聯性的實體。 例如,在「主旨擷取 100 mg of ibuprofen」中,此屬性會保存 「100 mg」 的實例實體。
entity: HealthcareEntity
name
關聯性中實體的角色。 亦即,在「主旨取用了 100 mg of ibuprofen」的關聯性中,實體 「100 mg」 具有角色 「一元」 。
name: str
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應