medkit.text.ner.iamsystem_matcher#

Classes#

MedkitKeyword

A recommended iamsystem's IEntity implementation.

IAMSystemMatcher

Entity annotator and linker based on iamsystem library.

Module Contents#

class medkit.text.ner.iamsystem_matcher.MedkitKeyword#

A recommended iamsystem’s IEntity implementation.

This class is implemented to allow user to define one of both values of kb_id or kb_name with its iamsystem keyword. The entity label may be also provided if the user wants to define a category for the searched keyword (e.g., “drug” label for “Vicodin” keyword)

label: str#
kb_id: str#
kb_name: str | None#
ent_label: str | None#
class medkit.text.ner.iamsystem_matcher.IAMSystemMatcher(matcher: iamsystem, label_provider: LabelProvider | None = None, attrs_to_copy: list[str] | None = None, name: str | None = None, uid: str | None = None)#

Bases: medkit.core.text.NEROperation

Entity annotator and linker based on iamsystem library.

init_args#
matcher#
label_provider#
attrs_to_copy#
run(segments: list[medkit.core.text.Segment]) list[medkit.core.text.Entity]#
_create_entity_from_iamsystem_ann(ann: iamsystem, segment: medkit.core.text.Segment)#