kindred.Entity¶
-
class
kindred.
Entity
(entityType, text, position, sourceEntityID=None, externalID=None, metadata=None)[source]¶ Biomedical entity with information of location in text
Variables: - entityType – Type of the entity
- text – Text of the entity
- position – Position within the text passage at which point entity appears. Entity may be non-contigious
- sourceEntityID – Entity ID used in source document
- externalID – ID associated with external ontology (e.g. Hugo Gene ID)
- metadata – Additional metadata about the the entity
Methods
-
__init__
(entityType, text, position, sourceEntityID=None, externalID=None, metadata=None)[source]¶ Constructor for Entity class
Parameters: - entityType (str) – Type of the entity
- text (str) – Text of the entity
- position (list of tuples of two integers) – Position within the text passage at which point entity appears. Entity may be non-contigious
- sourceEntityID (str) – Entity ID used in source document
- externalID (str) – ID associated with external ontology (e.g. Hugo Gene ID)
- metadata (dict) – Additional metadata about the the entity
-
clone
()[source]¶ Clones the entity
Returns: Clone of the entity Return type: kindred.Entity