This commit is contained in:
13
docs/snippets/ruby/advanced/keyword_extraction_config.md
Normal file
13
docs/snippets/ruby/advanced/keyword_extraction_config.md
Normal file
@@ -0,0 +1,13 @@
|
||||
```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'
|
||||
)
|
||||
)
|
||||
```
|
||||
Reference in New Issue
Block a user