15 lines
366 B
Markdown
15 lines
366 B
Markdown
```rust title="Rust"
|
|
use kreuzberg::{ExtractionConfig, TokenReductionConfig};
|
|
|
|
fn main() {
|
|
let config = ExtractionConfig {
|
|
token_reduction: Some(TokenReductionConfig {
|
|
mode: "moderate".to_string(),
|
|
preserve_important_words: true,
|
|
}),
|
|
..Default::default()
|
|
};
|
|
println!("{:?}", config.token_reduction);
|
|
}
|
|
```
|