This commit is contained in:
23
docs/snippets/go/advanced/keyword_extraction_config.md
Normal file
23
docs/snippets/go/advanced/keyword_extraction_config.md
Normal file
@@ -0,0 +1,23 @@
|
||||
```go title="Go"
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/kreuzberg-dev/kreuzberg/packages/go/v5"
|
||||
)
|
||||
|
||||
func main() {
|
||||
maxKeywords := int32(10)
|
||||
minScore := 0.3
|
||||
language := "en"
|
||||
|
||||
config := &kreuzberg.ExtractionConfig{
|
||||
Keywords: &kreuzberg.KeywordConfig{
|
||||
Algorithm: kreuzberg.KeywordAlgorithm_YAKE,
|
||||
MaxKeywords: &maxKeywords,
|
||||
MinScore: &minScore,
|
||||
Language: &language,
|
||||
},
|
||||
}
|
||||
_ = config
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user