Contextual[source]
The eds.contextual_qualifier pipeline component qualifies spans based on contextual information.
Parameters
| PARAMETER | DESCRIPTION | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
nlp | The spaCy pipeline object. TYPE: | ||||||||||||||||||
name | The name of the component. TYPE: | ||||||||||||||||||
span_getter | The function or callable to get spans from the document. TYPE: | ||||||||||||||||||
patterns | A dictionary of patterns to match in the text. Each pattern dictionary should follow the structure of the |
| PARAMETER | DESCRIPTION |
|---|---|
terms | Terms to match. TYPE: |
regex | Regular expressions to match. TYPE: |
context_words | Number of words to consider as context. TYPE: |
context_sents | Number of sentences to consider as context. TYPE: |
attr | Attribute to match on. TYPE: |
regex_flags | Flags for regular expressions. TYPE: |
ignore_excluded | Whether to ignore excluded tokens. TYPE: |
ignore_space_tokens | Whether to ignore space tokens. TYPE: |
TYPE: Dict[str, Dict[Union[str, int], ClassPatternsContext]]