KeybertLinkExtractor#

Beta

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

Extract keywords using KeyBERT.

KeyBERT is a minimal and easy-to-use keyword extraction technique that leverages BERT embeddings to create keywords and keyphrases that are most similar to a document.

The KeybertLinkExtractor uses KeyBERT to create links between documents that have keywords in common.

Example:

extractor = KeybertLinkExtractor()
results = extractor.extract_one("lorem ipsum...")
Parameters:
  • kind (str)

  • embedding_model (str)

  • extract_keywords_kwargs (Dict[str, Any] | None)