medcat.components.addons.relation_extraction ============================================ .. py:module:: medcat.components.addons.relation_extraction Submodules ---------- .. toctree:: :maxdepth: 1 /autoapi/medcat/components/addons/relation_extraction/base_component/index /autoapi/medcat/components/addons/relation_extraction/bert/index /autoapi/medcat/components/addons/relation_extraction/config/index /autoapi/medcat/components/addons/relation_extraction/llama/index /autoapi/medcat/components/addons/relation_extraction/ml_utils/index /autoapi/medcat/components/addons/relation_extraction/models/index /autoapi/medcat/components/addons/relation_extraction/modernbert/index /autoapi/medcat/components/addons/relation_extraction/pad_seq/index /autoapi/medcat/components/addons/relation_extraction/rel_cat/index /autoapi/medcat/components/addons/relation_extraction/rel_dataset/index /autoapi/medcat/components/addons/relation_extraction/tokenizer/index Attributes ---------- .. autoapisummary:: medcat.components.addons.relation_extraction._EXTRA_NAME Functions --------- .. autoapisummary:: medcat.components.addons.relation_extraction.ensure_optional_extras_installed Package Contents ---------------- .. py:function:: ensure_optional_extras_installed(package_name, extra_name) Ensure that an optional dependency set is installed. :param package_name: The base package name. :type package_name: str :param extra_name: The name of the extra dependency. :type extra_name: str :raises MissingDependenciesError: If the extra dependency isn't provided. .. py:data:: _EXTRA_NAME :value: 'rel-cat'