Make a span qualifier candidate getter function.
Parameters
| PARAMETER | DESCRIPTION |
on_ents | Whether to look into doc.ents for spans to classify. If a list of strings is provided, only the span of the given labels will be considered. If None and on_spans_groups is False, labels mentioned in label_constraints will be used. TYPE: Optional[Union[bool, Sequence[str]]] DEFAULT: None |
on_spans_groups | Whether to look into doc.spans for spans to classify: - If True, all span groups will be considered
- If False, no span group will be considered
- If a list of str is provided, only these span groups will be kept
- If a mapping is provided, the keys are the span group names and the values are either a list of allowed labels in the group or True to keep them all
TYPE: Union[bool, Sequence[str], Mapping[str, Union[bool, Sequence[str]]]] DEFAULT: False |