LinkExtractor#

Beta

This feature is in beta. It is actively being worked on, so the API may change.

Interface for extracting links (incoming, outgoing, bidirectional).

Methods

__init__(*args, **kwargs)

extract_many(inputs)

Add edges from each input to the corresponding documents.

extract_one(input)

Add edges from each input to the corresponding documents.

Parameters:
  • self (Any) –

  • args (Any) –

  • kwargs (Any) –

Return type:

Any

Add edges from each input to the corresponding documents.

Parameters:

inputs (Iterable[InputT]) – The input content to extract edges from.

Returns:

Iterable over the set of links extracted from the input.

Return type:

Iterable[Set[Link]]

Add edges from each input to the corresponding documents.

Parameters:

input (InputT) – The input content to extract edges from.

Returns:

Set of links extracted from the input.

Return type:

Set[Link]