This commit is contained in:
10
docs/snippets/r/advanced/quality_processing_config.md
Normal file
10
docs/snippets/r/advanced/quality_processing_config.md
Normal file
@@ -0,0 +1,10 @@
|
||||
```r title="R"
|
||||
library(kreuzberg)
|
||||
|
||||
config <- list(enable_quality_processing = TRUE)
|
||||
|
||||
json <- extract_file_sync("document.pdf", "application/pdf", config)
|
||||
result <- jsonlite::fromJSON(json, simplifyVector = FALSE)
|
||||
|
||||
cat(sprintf("Quality score: %.2f\n", result$quality_score))
|
||||
```
|
||||
Reference in New Issue
Block a user