deepdoctection 1.2.11__tar.gz → 1.2.13__tar.gz
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.
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/PKG-INFO +1 -1
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/pyproject.toml +1 -1
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/__init__.py +1 -1
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/pipe/doctectionpipe.py +2 -11
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection.egg-info/PKG-INFO +1 -1
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/README.md +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/setup.cfg +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/analyzer/__init__.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/analyzer/config.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/analyzer/dd.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/analyzer/factory.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/configs/__init__.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/configs/conf_dd_one.yaml +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/configs/conf_tesseract.yaml +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/configs/profiles.jsonl +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/eval/__init__.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/eval/accmetric.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/eval/base.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/eval/cocometric.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/eval/eval.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/eval/registry.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/eval/tedsmetric.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/extern/__init__.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/extern/base.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/extern/d2detect.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/extern/deskew.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/extern/doctrocr.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/extern/hfdetr.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/extern/hflayoutlm.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/extern/hflm.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/extern/model.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/extern/pdftext.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/extern/tessocr.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/extern/texocr.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/pipe/__init__.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/pipe/anngen.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/pipe/base.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/pipe/common.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/pipe/concurrency.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/pipe/language.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/pipe/layout.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/pipe/lm.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/pipe/order.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/pipe/refine.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/pipe/registry.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/pipe/segment.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/pipe/sub_layout.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/pipe/text.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/pipe/transform.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/py.typed +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/train/__init__.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/train/d2_frcnn_train.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/train/hf_detr_train.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/train/hf_layoutlm_train.py +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection.egg-info/SOURCES.txt +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection.egg-info/dependency_links.txt +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection.egg-info/requires.txt +0 -0
- {deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection.egg-info/top_level.txt +0 -0
|
@@ -12,7 +12,7 @@ from dd_core.utils.env_info import collect_env_info
|
|
|
12
12
|
from dd_core.utils.file_utils import _LazyModule
|
|
13
13
|
from dd_core.utils.logger import LoggingRecord, logger
|
|
14
14
|
|
|
15
|
-
__version__ = "1.2.
|
|
15
|
+
__version__ = "1.2.13"
|
|
16
16
|
_IMPORT_STRUCTURE = {
|
|
17
17
|
"analyzer": ["config_sanity_checks", "get_dd_analyzer", "ServiceFactory", "update_cfg_from_defaults"],
|
|
18
18
|
"eval": [
|
|
@@ -24,12 +24,12 @@ from pathlib import Path
|
|
|
24
24
|
from typing import List, Mapping, Optional, Sequence, Tuple, Union
|
|
25
25
|
|
|
26
26
|
from dd_core.dataflow import CustomDataFromIterable, DataFlow, DataFromList, MapData, SerializerFiles, SerializerPdfDoc
|
|
27
|
+
from dd_core.dataflow.custom_serialize import make_pdf_page_mapper
|
|
27
28
|
from dd_core.datapoint.image import Image
|
|
28
29
|
from dd_core.datapoint.view import IMAGE_DEFAULTS
|
|
29
30
|
from dd_core.mapper.maputils import curry
|
|
30
31
|
from dd_core.mapper.misc import to_image
|
|
31
32
|
from dd_core.utils.fs import maybe_path_or_pdf
|
|
32
|
-
from dd_core.utils.identifier import get_uuid_from_str
|
|
33
33
|
from dd_core.utils.logger import LoggingRecord, logger
|
|
34
34
|
from dd_core.utils.pdf_utils import PDFStreamer
|
|
35
35
|
from dd_core.utils.types import PathLikeOrStr
|
|
@@ -336,16 +336,7 @@ class DoctectionPipe(Pipeline):
|
|
|
336
336
|
prefix, suffix = os.path.splitext(file_name)
|
|
337
337
|
df: DataFlow
|
|
338
338
|
df = CustomDataFromIterable(PDFStreamer(path_or_bytes=b_bytes), max_datapoints=max_datapoints)
|
|
339
|
-
df = MapData(
|
|
340
|
-
df,
|
|
341
|
-
lambda dp: {
|
|
342
|
-
"path": path,
|
|
343
|
-
"file_name": prefix + f"_{dp[1]}" + suffix,
|
|
344
|
-
"pdf_bytes": dp[0],
|
|
345
|
-
"page_number": dp[1],
|
|
346
|
-
"document_id": document_id or get_uuid_from_str(prefix),
|
|
347
|
-
},
|
|
348
|
-
)
|
|
339
|
+
df = MapData(df, make_pdf_page_mapper(path, prefix, suffix, document_id))
|
|
349
340
|
else:
|
|
350
341
|
df = DataFromList(lst=[{"path": path, "file_name": file_name, "image_bytes": b_bytes}])
|
|
351
342
|
return df
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/configs/conf_tesseract.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection/train/hf_layoutlm_train.py
RENAMED
|
File without changes
|
|
File without changes
|
{deepdoctection-1.2.11 → deepdoctection-1.2.13}/src/deepdoctection.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|