This commit is contained in:
13
docs/snippets/python/advanced/keyword_extraction_config.md
Normal file
13
docs/snippets/python/advanced/keyword_extraction_config.md
Normal file
@@ -0,0 +1,13 @@
|
||||
```python title="Python"
|
||||
from kreuzberg import ExtractionConfig, KeywordConfig, KeywordAlgorithm
|
||||
|
||||
config: ExtractionConfig = ExtractionConfig(
|
||||
keywords=KeywordConfig(
|
||||
algorithm=KeywordAlgorithm.YAKE,
|
||||
max_keywords=10,
|
||||
min_score=0.3,
|
||||
ngram_range=[1, 3],
|
||||
language="en",
|
||||
)
|
||||
)
|
||||
```
|
||||
Reference in New Issue
Block a user