medacy.pipelines.base.base_pipeline module

class medacy.pipelines.base.base_pipeline.BasePipeline(pipeline_name, spacy_pipeline=None, description=None, creators='', organization='')[source]

Bases: abc.ABC

An abstract wrapper for a Medical NER Pipeline

_abc_impl = <_abc_data object>
add_component(component, *argv, **kwargs)[source]

Adds a given component to pipeline :param component: a subclass of BaseComponent

get_components()[source]

Retrieves a listing of all components currently in the pipeline. :return: a list of components inside the pipeline.

get_feature_extractor()[source]

Returns an instant of FeatureExtractor with all configs set. :return: An instant of FeatureExtractor

get_language_pipeline()[source]

Retrieves the associated spaCy Language pipeline that the medaCy pipeline wraps. :return: spacy_pipeline

get_learner()[source]

Retrieves an instance of a sci-kit learn compatible learning algorithm. :return: model

get_pipeline_information()[source]

Retrieves information about the current pipeline in a structured dictionary :return: a json dictionary containing information

get_tokenizer()[source]

Returns an instance of a tokenizer :return: