# KeybertLinkExtractor

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/graph_vectorstores/extractors/keybert_link_extractor/KeybertLinkExtractor)

## Signature

```python
KeybertLinkExtractor(
    self,
    *,
    kind: str = 'kw',
    embedding_model: str = 'all-MiniLM-L6-v2',
    extract_keywords_kwargs: Optional[Dict[str, Any]] = None,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `kind` | `str` | No | Kind of links to produce with this extractor. (default: `'kw'`) |
| `embedding_model` | `str` | No | Name of the embedding model to use with KeyBERT. (default: `'all-MiniLM-L6-v2'`) |
| `extract_keywords_kwargs` | `Optional[Dict[str, Any]]` | No | Keyword arguments to pass to KeyBERT's ``extract_keywords`` method. (default: `None`) |

## Extends

- `LinkExtractor[KeybertInput]`

## Constructors

```python
__init__(
    self,
    *,
    kind: str = 'kw',
    embedding_model: str = 'all-MiniLM-L6-v2',
    extract_keywords_kwargs: Optional[Dict[str, Any]] = None,
)
```

| Name | Type |
|------|------|
| `kind` | `str` |
| `embedding_model` | `str` |
| `extract_keywords_kwargs` | `Optional[Dict[str, Any]]` |


## Methods

- [`extract_one()`](https://reference.langchain.com/python/langchain-community/graph_vectorstores/extractors/keybert_link_extractor/KeybertLinkExtractor/extract_one)
- [`extract_many()`](https://reference.langchain.com/python/langchain-community/graph_vectorstores/extractors/keybert_link_extractor/KeybertLinkExtractor/extract_many)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/graph_vectorstores/extractors/keybert_link_extractor.py#L14)