Skip to content

edsnlp.pipelines.core.endlines.factory

create_component(nlp, name, model_path)

Source code in edsnlp/pipelines/core/endlines/factory.py
10
11
12
13
14
15
16
17
@deprecated_factory("endlines", "eds.endlines")
@Language.factory("eds.endlines")
def create_component(
    nlp: Language,
    name: str,
    model_path: Optional[str],
):
    return EndLines(nlp, end_lines_model=model_path)