medkit.text.ner.iamsystem_matcher
=================================

.. py:module:: medkit.text.ner.iamsystem_matcher


Classes
-------

.. autoapisummary::

   medkit.text.ner.iamsystem_matcher.MedkitKeyword
   medkit.text.ner.iamsystem_matcher.IAMSystemMatcher


Module Contents
---------------

.. py:class:: 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)















   ..
       !! processed by numpydoc !!

   .. py:attribute:: label
      :type:  str


   .. py:attribute:: kb_id
      :type:  str


   .. py:attribute:: kb_name
      :type:  str | None


   .. py:attribute:: ent_label
      :type:  str | None


.. py:class:: IAMSystemMatcher(matcher: iamsystem, label_provider: LabelProvider | None = None, attrs_to_copy: list[str] | None = None, name: str | None = None, uid: str | None = None)

   Bases: :py:obj:`medkit.core.text.NEROperation`


   
   Entity annotator and linker based on iamsystem library.
















   ..
       !! processed by numpydoc !!

   .. py:attribute:: matcher


   .. py:attribute:: label_provider


   .. py:attribute:: attrs_to_copy
      :value: None



   .. py:method:: run(segments: list[medkit.core.text.Segment]) -> list[medkit.core.text.Entity]


   .. py:method:: _create_entity_from_iamsystem_ann(ann: iamsystem, segment: medkit.core.text.Segment)


