xberg 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/xberg_rb/native/Cargo.lock +19 -19
- data/ext/xberg_rb/native/Cargo.toml +5 -5
- data/ext/xberg_rb/src/lib.rs +100 -1
- data/lib/xberg/version.rb +2 -2
- data/sig/types.rbs +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7529fe12878b0564beead15e3c2a88894059854701f51d3065fd4d3f084aeb9e
|
|
4
|
+
data.tar.gz: 585618a4f752a05ffcf1260b75d1c790542ccb8f87be94b0d87b9cd517e11d18
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6602574242548bf624c8b84cdc32eb6476ef03327aeaea911b74743f49dde20c1434d0cdfc695013de60924ac46e5d78622b76ba25c6360149201296953fa44a
|
|
7
|
+
data.tar.gz: adc7c03bb0a5d9349e7d9230e53027b5f7efa37869b8461797b32ded44215b22293e778af93310bb0ddb2fea66234ab6e5d0ef3f619421c9efad48495b894d84
|
|
@@ -3828,9 +3828,9 @@ checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
|
|
|
3828
3828
|
|
|
3829
3829
|
[[package]]
|
|
3830
3830
|
name = "libredox"
|
|
3831
|
-
version = "0.1.
|
|
3831
|
+
version = "0.1.24"
|
|
3832
3832
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3833
|
-
checksum = "
|
|
3833
|
+
checksum = "6480ccc157a1389bb2e4891b24751b0f798ba640d22386f23143fbcc89da195a"
|
|
3834
3834
|
dependencies = [
|
|
3835
3835
|
"libc",
|
|
3836
3836
|
]
|
|
@@ -8998,9 +8998,9 @@ dependencies = [
|
|
|
8998
8998
|
|
|
8999
8999
|
[[package]]
|
|
9000
9000
|
name = "xberg"
|
|
9001
|
-
version = "1.2.
|
|
9001
|
+
version = "1.2.9"
|
|
9002
9002
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9003
|
-
checksum = "
|
|
9003
|
+
checksum = "373e4a5be0fd41625c4243832d04f51997d4313e5dea0d781a7eb39205765b00"
|
|
9004
9004
|
dependencies = [
|
|
9005
9005
|
"aes-gcm",
|
|
9006
9006
|
"ahash",
|
|
@@ -9136,9 +9136,9 @@ dependencies = [
|
|
|
9136
9136
|
|
|
9137
9137
|
[[package]]
|
|
9138
9138
|
name = "xberg-candle-ocr"
|
|
9139
|
-
version = "1.2.
|
|
9139
|
+
version = "1.2.9"
|
|
9140
9140
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9141
|
-
checksum = "
|
|
9141
|
+
checksum = "e050a875c61d507f27145be51a4a1d87922bedb307a0303732d264626fe8c3fc"
|
|
9142
9142
|
dependencies = [
|
|
9143
9143
|
"base64 0.23.1",
|
|
9144
9144
|
"candle-core",
|
|
@@ -9158,9 +9158,9 @@ dependencies = [
|
|
|
9158
9158
|
|
|
9159
9159
|
[[package]]
|
|
9160
9160
|
name = "xberg-gliner"
|
|
9161
|
-
version = "1.2.
|
|
9161
|
+
version = "1.2.9"
|
|
9162
9162
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9163
|
-
checksum = "
|
|
9163
|
+
checksum = "416f7924058670553eb858bfcf2d88ce29a9a7c42f2cdcdce77c12cafae30de2"
|
|
9164
9164
|
dependencies = [
|
|
9165
9165
|
"getrandom 0.2.17",
|
|
9166
9166
|
"getrandom 0.3.4",
|
|
@@ -9174,9 +9174,9 @@ dependencies = [
|
|
|
9174
9174
|
|
|
9175
9175
|
[[package]]
|
|
9176
9176
|
name = "xberg-libheif"
|
|
9177
|
-
version = "1.2.
|
|
9177
|
+
version = "1.2.9"
|
|
9178
9178
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9179
|
-
checksum = "
|
|
9179
|
+
checksum = "60d71b81ecf779d67ec02fa6d6369ebf89ec5ac567acf995f9f50dd823450a23"
|
|
9180
9180
|
dependencies = [
|
|
9181
9181
|
"cfg-if",
|
|
9182
9182
|
"enumn",
|
|
@@ -9187,9 +9187,9 @@ dependencies = [
|
|
|
9187
9187
|
|
|
9188
9188
|
[[package]]
|
|
9189
9189
|
name = "xberg-libwpd"
|
|
9190
|
-
version = "1.2.
|
|
9190
|
+
version = "1.2.9"
|
|
9191
9191
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9192
|
-
checksum = "
|
|
9192
|
+
checksum = "38d720cc8c033dd014b3055fd687545549166cce916273aba87391ffbcae7e45"
|
|
9193
9193
|
dependencies = [
|
|
9194
9194
|
"cc",
|
|
9195
9195
|
"flate2",
|
|
@@ -9202,9 +9202,9 @@ dependencies = [
|
|
|
9202
9202
|
|
|
9203
9203
|
[[package]]
|
|
9204
9204
|
name = "xberg-native-pdf"
|
|
9205
|
-
version = "1.2.
|
|
9205
|
+
version = "1.2.9"
|
|
9206
9206
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9207
|
-
checksum = "
|
|
9207
|
+
checksum = "ddc05f380b448050b95361f59a4155291cc850286ceee2ebf98b83c5ab6e5dff"
|
|
9208
9208
|
dependencies = [
|
|
9209
9209
|
"aes 0.9.3",
|
|
9210
9210
|
"base64 0.23.1",
|
|
@@ -9249,9 +9249,9 @@ dependencies = [
|
|
|
9249
9249
|
|
|
9250
9250
|
[[package]]
|
|
9251
9251
|
name = "xberg-paddle-ocr"
|
|
9252
|
-
version = "1.2.
|
|
9252
|
+
version = "1.2.9"
|
|
9253
9253
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9254
|
-
checksum = "
|
|
9254
|
+
checksum = "95b1f2a67b2ce2051456a7136ff0c7a186445249acf27d8e6972dca1173fdbc2"
|
|
9255
9255
|
dependencies = [
|
|
9256
9256
|
"geo-clipper",
|
|
9257
9257
|
"geo-types",
|
|
@@ -9266,7 +9266,7 @@ dependencies = [
|
|
|
9266
9266
|
|
|
9267
9267
|
[[package]]
|
|
9268
9268
|
name = "xberg-rb"
|
|
9269
|
-
version = "1.2.
|
|
9269
|
+
version = "1.2.9"
|
|
9270
9270
|
dependencies = [
|
|
9271
9271
|
"async-trait",
|
|
9272
9272
|
"crawlberg",
|
|
@@ -9282,9 +9282,9 @@ dependencies = [
|
|
|
9282
9282
|
|
|
9283
9283
|
[[package]]
|
|
9284
9284
|
name = "xberg-tesseract"
|
|
9285
|
-
version = "1.2.
|
|
9285
|
+
version = "1.2.9"
|
|
9286
9286
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9287
|
-
checksum = "
|
|
9287
|
+
checksum = "b6d6714013f52d238cf8e14614056c5d2fffb3662f40ae0434b79ec0cd945635"
|
|
9288
9288
|
dependencies = [
|
|
9289
9289
|
"cc",
|
|
9290
9290
|
"cmake",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:8ba9facc6695d874a10b55c3de0e9a1c523b385cc9865bdab6cf64cf399696d6
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
|
|
6
6
|
[package]
|
|
7
7
|
name = "xberg-rb"
|
|
8
|
-
version = "1.2.
|
|
8
|
+
version = "1.2.9"
|
|
9
9
|
edition = "2024"
|
|
10
10
|
license = "MIT"
|
|
11
11
|
description = "High-performance document intelligence library"
|
|
@@ -82,13 +82,13 @@ tokio = { version = "1", features = ["rt-multi-thread"] }
|
|
|
82
82
|
tracing = "0.1"
|
|
83
83
|
|
|
84
84
|
[target.'cfg(all(target_os = "macos", target_arch = "x86_64"))'.dependencies]
|
|
85
|
-
xberg = { version = "1.2.
|
|
85
|
+
xberg = { version = "1.2.9", default-features = false, features = ["macos-intel-target", "simd-utf8"] }
|
|
86
86
|
|
|
87
87
|
[target.'cfg(not(any(target_os = "windows", all(target_os = "macos", target_arch = "x86_64"))))'.dependencies]
|
|
88
|
-
xberg = { version = "1.2.
|
|
88
|
+
xberg = { version = "1.2.9", features = ["full", "pdf", "ocr", "paddle-ocr", "paddle-ocr-types", "layout-detection", "layout-types", "embeddings", "embedding-presets", "reranker", "reranker-presets", "sparse-embeddings", "sparse-embedding-presets", "late-interaction", "late-interaction-presets", "chunking", "keywords-yake", "keywords-rake", "language-detection", "html", "tree-sitter", "office", "email", "archives", "stopwords", "auto-rotate", "auto-rotate-types", "tokio-runtime", "api", "api-types", "mcp", "liter-llm", "quality", "svg", "transcription", "transcription-types", "classification", "captioning", "ner-onnx", "ner-llm", "diff", "markdown-footnotes", "redaction", "enrichment", "heuristics", "presets", "structured", "url-ingestion"] }
|
|
89
89
|
|
|
90
90
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
91
|
-
xberg = { version = "1.2.
|
|
91
|
+
xberg = { version = "1.2.9", default-features = false, features = ["windows-gnu-target", "simd-utf8"] }
|
|
92
92
|
|
|
93
93
|
# This crate deliberately does not use `[lints]` / `workspace = true`: its C-ABI /
|
|
94
94
|
# PyO3 / napi / ext-php-rs / NIF boundary requires `unsafe` code, and the workspace's
|
data/ext/xberg_rb/src/lib.rs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is auto-generated by alef. DO NOT EDIT.
|
|
2
|
-
// alef:hash:
|
|
2
|
+
// alef:hash:9fd93c9044f1bedf7b944452cf36003a6468e2f40f9fe5a1d4e78bea797a60a3
|
|
3
3
|
// Re-generate with: alef generate
|
|
4
4
|
#![allow(dead_code, unused_imports, unused_variables)]
|
|
5
5
|
#![allow(
|
|
@@ -11754,6 +11754,9 @@ pub struct ExtractionConfig {
|
|
|
11754
11754
|
ocr_strategy: OcrStrategy,
|
|
11755
11755
|
force_ocr_pages: Option<Vec<u32>>,
|
|
11756
11756
|
disable_ocr: bool,
|
|
11757
|
+
ocr_near_empty_fallback: Option<bool>,
|
|
11758
|
+
ocr_scanned_page_quality_gate: Option<bool>,
|
|
11759
|
+
ocr_embedded_images: Option<bool>,
|
|
11757
11760
|
chunking: Option<ChunkingConfig>,
|
|
11758
11761
|
content_filter: Option<ContentFilterConfig>,
|
|
11759
11762
|
images: Option<ImageExtractionConfig>,
|
|
@@ -11920,6 +11923,42 @@ impl ExtractionConfig {
|
|
|
11920
11923
|
})?,
|
|
11921
11924
|
None => false,
|
|
11922
11925
|
},
|
|
11926
|
+
ocr_near_empty_fallback: match kwargs
|
|
11927
|
+
.get(ruby.to_symbol("ocr_near_empty_fallback"))
|
|
11928
|
+
.filter(|v| !v.is_nil())
|
|
11929
|
+
{
|
|
11930
|
+
Some(v) => Some(bool::try_convert(v).map_err(|e| {
|
|
11931
|
+
magnus::Error::new(
|
|
11932
|
+
unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
|
|
11933
|
+
format!("invalid value for `ocr_near_empty_fallback`: {}", e),
|
|
11934
|
+
)
|
|
11935
|
+
})?),
|
|
11936
|
+
None => None,
|
|
11937
|
+
},
|
|
11938
|
+
ocr_scanned_page_quality_gate: match kwargs
|
|
11939
|
+
.get(ruby.to_symbol("ocr_scanned_page_quality_gate"))
|
|
11940
|
+
.filter(|v| !v.is_nil())
|
|
11941
|
+
{
|
|
11942
|
+
Some(v) => Some(bool::try_convert(v).map_err(|e| {
|
|
11943
|
+
magnus::Error::new(
|
|
11944
|
+
unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
|
|
11945
|
+
format!("invalid value for `ocr_scanned_page_quality_gate`: {}", e),
|
|
11946
|
+
)
|
|
11947
|
+
})?),
|
|
11948
|
+
None => None,
|
|
11949
|
+
},
|
|
11950
|
+
ocr_embedded_images: match kwargs
|
|
11951
|
+
.get(ruby.to_symbol("ocr_embedded_images"))
|
|
11952
|
+
.filter(|v| !v.is_nil())
|
|
11953
|
+
{
|
|
11954
|
+
Some(v) => Some(bool::try_convert(v).map_err(|e| {
|
|
11955
|
+
magnus::Error::new(
|
|
11956
|
+
unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
|
|
11957
|
+
format!("invalid value for `ocr_embedded_images`: {}", e),
|
|
11958
|
+
)
|
|
11959
|
+
})?),
|
|
11960
|
+
None => None,
|
|
11961
|
+
},
|
|
11923
11962
|
chunking: match kwargs.get(ruby.to_symbol("chunking")).filter(|v| !v.is_nil()) {
|
|
11924
11963
|
Some(v) => Some(ChunkingConfig::try_convert(v).map_err(|e| {
|
|
11925
11964
|
magnus::Error::new(
|
|
@@ -12376,6 +12415,18 @@ impl ExtractionConfig {
|
|
|
12376
12415
|
self.disable_ocr
|
|
12377
12416
|
}
|
|
12378
12417
|
|
|
12418
|
+
fn ocr_near_empty_fallback(&self) -> Option<bool> {
|
|
12419
|
+
self.ocr_near_empty_fallback
|
|
12420
|
+
}
|
|
12421
|
+
|
|
12422
|
+
fn ocr_scanned_page_quality_gate(&self) -> Option<bool> {
|
|
12423
|
+
self.ocr_scanned_page_quality_gate
|
|
12424
|
+
}
|
|
12425
|
+
|
|
12426
|
+
fn ocr_embedded_images(&self) -> Option<bool> {
|
|
12427
|
+
self.ocr_embedded_images
|
|
12428
|
+
}
|
|
12429
|
+
|
|
12379
12430
|
fn chunking(&self) -> Option<ChunkingConfig> {
|
|
12380
12431
|
self.chunking.clone()
|
|
12381
12432
|
}
|
|
@@ -12578,6 +12629,12 @@ impl ExtractionConfig {
|
|
|
12578
12629
|
|
|
12579
12630
|
disable_ocr: self.disable_ocr,
|
|
12580
12631
|
|
|
12632
|
+
ocr_near_empty_fallback: self.ocr_near_empty_fallback,
|
|
12633
|
+
|
|
12634
|
+
ocr_scanned_page_quality_gate: self.ocr_scanned_page_quality_gate,
|
|
12635
|
+
|
|
12636
|
+
ocr_embedded_images: self.ocr_embedded_images,
|
|
12637
|
+
|
|
12581
12638
|
chunking: self.chunking.clone().map(Into::into),
|
|
12582
12639
|
|
|
12583
12640
|
content_filter: self.content_filter.clone().map(Into::into),
|
|
@@ -12682,6 +12739,12 @@ impl ExtractionConfig {
|
|
|
12682
12739
|
|
|
12683
12740
|
disable_ocr: self.disable_ocr,
|
|
12684
12741
|
|
|
12742
|
+
ocr_near_empty_fallback: self.ocr_near_empty_fallback,
|
|
12743
|
+
|
|
12744
|
+
ocr_scanned_page_quality_gate: self.ocr_scanned_page_quality_gate,
|
|
12745
|
+
|
|
12746
|
+
ocr_embedded_images: self.ocr_embedded_images,
|
|
12747
|
+
|
|
12685
12748
|
chunking: self.chunking.clone().map(Into::into),
|
|
12686
12749
|
|
|
12687
12750
|
content_filter: self.content_filter.clone().map(Into::into),
|
|
@@ -12780,6 +12843,12 @@ impl ExtractionConfig {
|
|
|
12780
12843
|
|
|
12781
12844
|
disable_ocr: self.disable_ocr,
|
|
12782
12845
|
|
|
12846
|
+
ocr_near_empty_fallback: self.ocr_near_empty_fallback,
|
|
12847
|
+
|
|
12848
|
+
ocr_scanned_page_quality_gate: self.ocr_scanned_page_quality_gate,
|
|
12849
|
+
|
|
12850
|
+
ocr_embedded_images: self.ocr_embedded_images,
|
|
12851
|
+
|
|
12783
12852
|
chunking: self.chunking.clone().map(Into::into),
|
|
12784
12853
|
|
|
12785
12854
|
content_filter: self.content_filter.clone().map(Into::into),
|
|
@@ -12878,6 +12947,12 @@ impl ExtractionConfig {
|
|
|
12878
12947
|
|
|
12879
12948
|
disable_ocr: self.disable_ocr,
|
|
12880
12949
|
|
|
12950
|
+
ocr_near_empty_fallback: self.ocr_near_empty_fallback,
|
|
12951
|
+
|
|
12952
|
+
ocr_scanned_page_quality_gate: self.ocr_scanned_page_quality_gate,
|
|
12953
|
+
|
|
12954
|
+
ocr_embedded_images: self.ocr_embedded_images,
|
|
12955
|
+
|
|
12881
12956
|
chunking: self.chunking.clone().map(Into::into),
|
|
12882
12957
|
|
|
12883
12958
|
content_filter: self.content_filter.clone().map(Into::into),
|
|
@@ -12976,6 +13051,12 @@ impl ExtractionConfig {
|
|
|
12976
13051
|
|
|
12977
13052
|
disable_ocr: self.disable_ocr,
|
|
12978
13053
|
|
|
13054
|
+
ocr_near_empty_fallback: self.ocr_near_empty_fallback,
|
|
13055
|
+
|
|
13056
|
+
ocr_scanned_page_quality_gate: self.ocr_scanned_page_quality_gate,
|
|
13057
|
+
|
|
13058
|
+
ocr_embedded_images: self.ocr_embedded_images,
|
|
13059
|
+
|
|
12979
13060
|
chunking: self.chunking.clone().map(Into::into),
|
|
12980
13061
|
|
|
12981
13062
|
content_filter: self.content_filter.clone().map(Into::into),
|
|
@@ -49044,6 +49125,9 @@ impl From<ExtractionConfig> for xberg::ExtractionConfig {
|
|
|
49044
49125
|
ocr_strategy: val.ocr_strategy.into(),
|
|
49045
49126
|
force_ocr_pages: val.force_ocr_pages.map(|v| v.into_iter().collect()),
|
|
49046
49127
|
disable_ocr: val.disable_ocr,
|
|
49128
|
+
ocr_near_empty_fallback: val.ocr_near_empty_fallback,
|
|
49129
|
+
ocr_scanned_page_quality_gate: val.ocr_scanned_page_quality_gate,
|
|
49130
|
+
ocr_embedded_images: val.ocr_embedded_images,
|
|
49047
49131
|
chunking: val.chunking.map(Into::into),
|
|
49048
49132
|
content_filter: val.content_filter.map(Into::into),
|
|
49049
49133
|
images: val.images.map(Into::into),
|
|
@@ -49112,6 +49196,9 @@ impl From<xberg::ExtractionConfig> for ExtractionConfig {
|
|
|
49112
49196
|
ocr_strategy: val.ocr_strategy.into(),
|
|
49113
49197
|
force_ocr_pages: val.force_ocr_pages.map(|v| v.into_iter().collect()),
|
|
49114
49198
|
disable_ocr: val.disable_ocr,
|
|
49199
|
+
ocr_near_empty_fallback: val.ocr_near_empty_fallback,
|
|
49200
|
+
ocr_scanned_page_quality_gate: val.ocr_scanned_page_quality_gate,
|
|
49201
|
+
ocr_embedded_images: val.ocr_embedded_images,
|
|
49115
49202
|
chunking: val.chunking.map(Into::into),
|
|
49116
49203
|
content_filter: val.content_filter.map(Into::into),
|
|
49117
49204
|
images: val.images.map(Into::into),
|
|
@@ -57607,6 +57694,18 @@ fn ruby_init(ruby: &Ruby) -> Result<(), Error> {
|
|
|
57607
57694
|
|
|
57608
57695
|
class.define_method("disable_ocr", method!(ExtractionConfig::disable_ocr, 0))?;
|
|
57609
57696
|
|
|
57697
|
+
class.define_method(
|
|
57698
|
+
"ocr_near_empty_fallback",
|
|
57699
|
+
method!(ExtractionConfig::ocr_near_empty_fallback, 0),
|
|
57700
|
+
)?;
|
|
57701
|
+
|
|
57702
|
+
class.define_method(
|
|
57703
|
+
"ocr_scanned_page_quality_gate",
|
|
57704
|
+
method!(ExtractionConfig::ocr_scanned_page_quality_gate, 0),
|
|
57705
|
+
)?;
|
|
57706
|
+
|
|
57707
|
+
class.define_method("ocr_embedded_images", method!(ExtractionConfig::ocr_embedded_images, 0))?;
|
|
57708
|
+
|
|
57610
57709
|
class.define_method("chunking", method!(ExtractionConfig::chunking, 0))?;
|
|
57611
57710
|
|
|
57612
57711
|
class.define_method("content_filter", method!(ExtractionConfig::content_filter, 0))?;
|
data/lib/xberg/version.rb
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:af0361b6e9fb7d4844fed422cc5ad28ac7fdea52beb041fa1a3ab043aec2d450
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
# frozen_string_literal: true
|
|
6
6
|
|
|
7
7
|
module Xberg
|
|
8
8
|
## The version string for this package.
|
|
9
|
-
VERSION = "1.2.
|
|
9
|
+
VERSION = "1.2.9"
|
|
10
10
|
end
|
data/sig/types.rbs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:060fee672abbcdc0cf88ae2c4c85dc76420919f28c17b4cd7ccbd449f6d319b1
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
|
|
@@ -934,6 +934,9 @@ def initialize: (?data: String, ?format: String, ?image_index: Integer, ?page_nu
|
|
|
934
934
|
attr_reader ocr_strategy: OcrStrategy
|
|
935
935
|
attr_reader force_ocr_pages: Array[Integer]?
|
|
936
936
|
attr_reader disable_ocr: bool
|
|
937
|
+
attr_reader ocr_near_empty_fallback: bool?
|
|
938
|
+
attr_reader ocr_scanned_page_quality_gate: bool?
|
|
939
|
+
attr_reader ocr_embedded_images: bool?
|
|
937
940
|
attr_reader chunking: ChunkingConfig?
|
|
938
941
|
attr_reader content_filter: ContentFilterConfig?
|
|
939
942
|
attr_reader images: ImageExtractionConfig?
|
|
@@ -979,7 +982,7 @@ def initialize: (?data: String, ?format: String, ?image_index: Integer, ?page_nu
|
|
|
979
982
|
attr_reader captioning: CaptioningConfig?
|
|
980
983
|
attr_reader qr_codes: bool?
|
|
981
984
|
|
|
982
|
-
def initialize: (?mime_detection_policy: enum_MimeDetectionPolicy, ?use_cache: bool, ?enable_quality_processing: bool, ?ocr: OcrConfig, ?force_ocr: bool, ?ocr_strategy: OcrStrategy, ?force_ocr_pages: Array[Integer], ?disable_ocr: bool, ?chunking: ChunkingConfig, ?content_filter: ContentFilterConfig, ?images: ImageExtractionConfig, ?pdf_options: PdfConfig, ?token_reduction: TokenReductionOptions, ?language_detection: LanguageDetectionConfig, ?pages: PageConfig, ?keywords: KeywordConfig, ?postprocessor: PostProcessorConfig, ?html_options: ConversionOptions, ?html_output: HtmlOutputConfig, ?extraction_timeout_secs: Integer, ?max_concurrent_extractions: Integer, ?result_format: enum_ResultFormat, ?security_limits: SecurityLimits, ?max_embedded_file_bytes: Integer, ?output_format: OutputFormat, ?escape_markdown: bool, ?table_anchors: bool, ?jupyter_cell_rendering: enum_JupyterCellRendering, ?apply_notebook_cell_tags: bool, ?layout: LayoutDetectionConfig, ?transcription: TranscriptionConfig, ?use_layout_for_markdown: bool, ?include_document_structure: bool, ?acceleration: AccelerationConfig, ?cache_namespace: String, ?cache_ttl_secs: Integer, ?email: EmailConfig, ?csv: CsvConfig, ?geojson: GeoJsonExtractionConfig, ?concurrency: ConcurrencyConfig, ?url: UrlExtractionConfig, ?max_archive_depth: Integer, ?tree_sitter: TreeSitterConfig, ?structured_extraction: StructuredExtractionConfig, ?ner: NerConfig, ?redaction: RedactionConfig, ?summarization: SummarizationConfig, ?translation: TranslationConfig, ?page_classification: PageClassificationConfig, ?chunk_classification: ChunkClassificationConfig, ?captioning: CaptioningConfig, ?qr_codes: bool) -> void
|
|
985
|
+
def initialize: (?mime_detection_policy: enum_MimeDetectionPolicy, ?use_cache: bool, ?enable_quality_processing: bool, ?ocr: OcrConfig, ?force_ocr: bool, ?ocr_strategy: OcrStrategy, ?force_ocr_pages: Array[Integer], ?disable_ocr: bool, ?ocr_near_empty_fallback: bool, ?ocr_scanned_page_quality_gate: bool, ?ocr_embedded_images: bool, ?chunking: ChunkingConfig, ?content_filter: ContentFilterConfig, ?images: ImageExtractionConfig, ?pdf_options: PdfConfig, ?token_reduction: TokenReductionOptions, ?language_detection: LanguageDetectionConfig, ?pages: PageConfig, ?keywords: KeywordConfig, ?postprocessor: PostProcessorConfig, ?html_options: ConversionOptions, ?html_output: HtmlOutputConfig, ?extraction_timeout_secs: Integer, ?max_concurrent_extractions: Integer, ?result_format: enum_ResultFormat, ?security_limits: SecurityLimits, ?max_embedded_file_bytes: Integer, ?output_format: OutputFormat, ?escape_markdown: bool, ?table_anchors: bool, ?jupyter_cell_rendering: enum_JupyterCellRendering, ?apply_notebook_cell_tags: bool, ?layout: LayoutDetectionConfig, ?transcription: TranscriptionConfig, ?use_layout_for_markdown: bool, ?include_document_structure: bool, ?acceleration: AccelerationConfig, ?cache_namespace: String, ?cache_ttl_secs: Integer, ?email: EmailConfig, ?csv: CsvConfig, ?geojson: GeoJsonExtractionConfig, ?concurrency: ConcurrencyConfig, ?url: UrlExtractionConfig, ?max_archive_depth: Integer, ?tree_sitter: TreeSitterConfig, ?structured_extraction: StructuredExtractionConfig, ?ner: NerConfig, ?redaction: RedactionConfig, ?summarization: SummarizationConfig, ?translation: TranslationConfig, ?page_classification: PageClassificationConfig, ?chunk_classification: ChunkClassificationConfig, ?captioning: CaptioningConfig, ?qr_codes: bool) -> void
|
|
983
986
|
def validate: () -> void
|
|
984
987
|
def needs_image_data: () -> bool
|
|
985
988
|
def runs_ocr_on_embedded_images: () -> bool
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: xberg
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Na'aman Hirschfeld <naaman@xberg.io>
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rb_sys
|