Files
fil/docs/snippets/ruby/advanced/keyword_extraction_config.md

14 lines
272 B
Markdown
Raw Permalink Normal View History

2026-06-01 23:40:55 +02:00
```ruby title="Ruby"
require 'kreuzberg'
config = Kreuzberg::ExtractionConfig.new(
keywords: Kreuzberg::KeywordConfig.new(
algorithm: Kreuzberg::KeywordAlgorithm::YAKE,
max_keywords: 10,
min_score: 0.3,
ngram_range: [1, 3],
language: 'en'
)
)
```