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 TYPE: |
name | The name of the pipe TYPE: |
patterns | The configuration dictionary TYPE: |
include_assigned | Whether to include (eventual) assign matches to the final entity TYPE: |
ignore_excluded | Whether to skip excluded tokens during matching. TYPE: |
ignore_space_tokens | Whether to skip space tokens during matching. TYPE: |
detailed_status_mapping | Mapping from integer status (0, 1 or 2) to human-readable string TYPE: |
alignment_mode | Overwrite alignment mode. TYPE: |
regex_flags | RegExp flags to use when matching, filtering and assigning (See the re docs) TYPE: |
__call__ [source]
Tags entities.
Parameters
| PARAMETER | DESCRIPTION |
|---|---|
doc | spaCy Doc object TYPE: |
| RETURNS | DESCRIPTION |
|---|---|
doc | annotated spaCy Doc object TYPE: |