LinkExtractorAdapter#

Beta

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

Methods

__init__(underlying,Β transform)

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:
  • underlying (LinkExtractor[UnderlyingInputT]) –

  • transform (Callable[[InputT], UnderlyingInputT]) –

Parameters:
  • underlying (LinkExtractor[UnderlyingInputT]) –

  • transform (Callable[[InputT], UnderlyingInputT]) –

Return type:

None

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]