This commit is contained in:
18
docs/snippets/go/config/postprocessor_config.md
Normal file
18
docs/snippets/go/config/postprocessor_config.md
Normal file
@@ -0,0 +1,18 @@
|
||||
```go title="Go"
|
||||
package main
|
||||
|
||||
import "github.com/kreuzberg-dev/kreuzberg/packages/go/v5"
|
||||
|
||||
func main() {
|
||||
enabled := true
|
||||
cfg := &kreuzberg.ExtractionConfig{
|
||||
Postprocessor: &kreuzberg.PostProcessorConfig{
|
||||
Enabled: &enabled,
|
||||
EnabledProcessors: []string{"deduplication", "whitespace_normalization"},
|
||||
DisabledProcessors: []string{"mojibake_fix"},
|
||||
},
|
||||
}
|
||||
|
||||
_ = cfg
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user