Concept
Bases: object
Represents a concept in the system.
Attributes:
Name | Type | Description |
---|---|---|
id |
str
|
The unique identifier of the concept. |
name |
str
|
The name of the concept. |
category |
Optional[Enum]
|
The category of the concept (optional). |
start |
Optional[int]
|
The start position of the concept (optional). |
end |
Optional[int]
|
The end position of the concept (optional). |
dosage |
Optional[Dosage]
|
The dosage of the concept (optional). |
linked_concepts |
Optional[List[Concept]]
|
The linked concepts of the concept (optional). |
negex |
Optional[bool]
|
The negex value of the concept (optional). |
meta_anns |
Optional[List[MetaAnnotations]]
|
The meta annotations of the concept (optional). |
debug_dict |
Optional[Dict]
|
The debug dictionary of the concept (optional). |
Source code in miade/concept.py
from_entity(entity)
classmethod
¶
Converts an entity dictionary into a Concept object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
entity |
Dict
|
The entity dictionary containing the necessary information. |
required |
Returns:
Type | Description |
---|---|
Concept
|
The Concept object created from the entity dictionary. |