Skip to content

edsnlp.pipes.ner.disorders.base

DisorderMatcher [source]

Bases: ContextualMatcher

Base class used to implement various disorders or behaviors extraction pipes

Parameters

PARAMETER DESCRIPTION
nlp

spaCy Language object.

TYPE: PipelineProtocol

name

The name of the pipe

TYPE: str

patterns

The configuration dictionary

TYPE: FullConfig

include_assigned

Whether to include (eventual) assign matches to the final entity

TYPE: bool DEFAULT: True

ignore_excluded

Whether to skip excluded tokens during matching.

TYPE: bool DEFAULT: True

ignore_space_tokens

Whether to skip space tokens during matching.

TYPE: bool DEFAULT: True

detailed_status_mapping

Mapping from integer status (0, 1 or 2) to human-readable string

TYPE: Dict[int, Union[str, None]] DEFAULT: {1: None}

alignment_mode

Overwrite alignment mode.

TYPE: str DEFAULT: 'expand'

regex_flags

RegExp flags to use when matching, filtering and assigning (See the re docs)

TYPE: Union[RegexFlag, int] DEFAULT: S

__call__ [source]

Tags entities.

Parameters

PARAMETER DESCRIPTION
doc

spaCy Doc object

TYPE: Doc

RETURNS DESCRIPTION
doc

annotated spaCy Doc object

TYPE: Doc