External Information[source]
The eds.external_information_qualifier pipeline component qualifies spans in a document based on external information and a defined distance to these contextual/external elements as in Distant Supervision (http://deepdive.stanford.edu/distant_supervision).
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: | ||||||||||||||
external_information | A dictionary where keys are the names of the attributes to set on spans, and values are ExternalInformation objects defining the context and comparison settings. |
| PARAMETER | DESCRIPTION |
|---|---|
doc_attr | The elements under this attribute should be a list of dicts with keys Example: TYPE: |
span_attribute | TYPE: |
threshold | TYPE: |
reduce | one of ["all", "one_only", "closest"] TYPE: |
comparison_type | TYPE: |
One |
|
TYPE: Dict[str, ExternalInformation]