deepdoctection 0.43.2__tar.gz → 0.43.3__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.
Potentially problematic release.
This version of deepdoctection might be problematic. Click here for more details.
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/PKG-INFO +1 -1
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/__init__.py +1 -1
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datapoint/image.py +2 -2
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datapoint/view.py +18 -5
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/base.py +2 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/mapper/xfundstruct.py +1 -1
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/pipe/anngen.py +14 -1
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/utils/settings.py +2 -1
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection.egg-info/PKG-INFO +1 -1
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/LICENSE +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/README.md +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/analyzer/__init__.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/analyzer/config.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/analyzer/dd.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/analyzer/factory.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/configs/__init__.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/configs/conf_dd_one.yaml +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/configs/conf_tesseract.yaml +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/configs/profiles.jsonl +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/dataflow/__init__.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/dataflow/base.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/dataflow/common.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/dataflow/custom.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/dataflow/custom_serialize.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/dataflow/parallel_map.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/dataflow/serialize.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/dataflow/stats.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datapoint/__init__.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datapoint/annotation.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datapoint/box.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datapoint/convert.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/__init__.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/adapter.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/base.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/dataflow_builder.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/info.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/__init__.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/doclaynet.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/fintabnet.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/funsd.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/iiitar13k.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/layouttest.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/publaynet.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/pubtables1m.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/pubtabnet.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/rvlcdip.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/xfund.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/xsl/__init__.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/xsl/pascal_voc.xsl +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/registry.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/save.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/eval/__init__.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/eval/accmetric.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/eval/base.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/eval/cocometric.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/eval/eval.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/eval/registry.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/eval/tedsmetric.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/eval/tp_eval_callback.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/__init__.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/d2detect.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/deskew.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/doctrocr.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/fastlang.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/hfdetr.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/hflayoutlm.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/hflm.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/model.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/pdftext.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/pt/__init__.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/pt/nms.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/pt/ptutils.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tessocr.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/texocr.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/__init__.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tfutils.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpcompat.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/__init__.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/common.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/config/__init__.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/config/config.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/modeling/__init__.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/modeling/backbone.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/modeling/generalized_rcnn.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/modeling/model_box.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/modeling/model_cascade.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/modeling/model_fpn.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/modeling/model_frcnn.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/modeling/model_mrcnn.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/modeling/model_rpn.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/predict.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/preproc.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/utils/__init__.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/utils/box_ops.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/utils/np_box_ops.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tpdetect.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/mapper/__init__.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/mapper/cats.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/mapper/cocostruct.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/mapper/d2struct.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/mapper/hfstruct.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/mapper/laylmstruct.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/mapper/maputils.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/mapper/match.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/mapper/misc.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/mapper/pascalstruct.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/mapper/prodigystruct.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/mapper/pubstruct.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/mapper/tpstruct.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/pipe/__init__.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/pipe/base.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/pipe/common.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/pipe/concurrency.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/pipe/doctectionpipe.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/pipe/language.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/pipe/layout.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/pipe/lm.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/pipe/order.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/pipe/refine.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/pipe/registry.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/pipe/segment.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/pipe/sub_layout.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/pipe/text.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/pipe/transform.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/py.typed +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/train/__init__.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/train/d2_frcnn_train.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/train/hf_detr_train.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/train/hf_layoutlm_train.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/train/tp_frcnn_train.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/utils/__init__.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/utils/concurrency.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/utils/context.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/utils/develop.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/utils/env_info.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/utils/error.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/utils/file_utils.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/utils/fs.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/utils/identifier.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/utils/logger.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/utils/metacfg.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/utils/mocks.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/utils/pdf_utils.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/utils/tqdm.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/utils/transform.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/utils/types.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/utils/utils.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/utils/viz.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection.egg-info/SOURCES.txt +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection.egg-info/dependency_links.txt +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection.egg-info/requires.txt +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection.egg-info/top_level.txt +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/setup.cfg +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/setup.py +0 -0
- {deepdoctection-0.43.2 → deepdoctection-0.43.3}/tests/test_utils.py +0 -0
|
@@ -479,8 +479,8 @@ class Image:
|
|
|
479
479
|
|
|
480
480
|
def remove(
|
|
481
481
|
self,
|
|
482
|
-
annotation_ids: Optional[Union[str,
|
|
483
|
-
service_ids: Optional[Union[str,
|
|
482
|
+
annotation_ids: Optional[Union[str, Sequence[str]]] = None,
|
|
483
|
+
service_ids: Optional[Union[str, Sequence[str]]] = None,
|
|
484
484
|
) -> None:
|
|
485
485
|
"""
|
|
486
486
|
Instead of removing consider deactivating annotations.
|
|
@@ -183,7 +183,7 @@ class Word(ImageAnnotationBaseView):
|
|
|
183
183
|
attr_names = (
|
|
184
184
|
set(WordType)
|
|
185
185
|
.union(super().get_attribute_names())
|
|
186
|
-
.union({Relationships.READING_ORDER, Relationships.LAYOUT_LINK})
|
|
186
|
+
.union({Relationships.READING_ORDER, Relationships.LAYOUT_LINK, Relationships.LINK})
|
|
187
187
|
)
|
|
188
188
|
return {attr_name.value if isinstance(attr_name, ObjectTypes) else attr_name for attr_name in attr_names}
|
|
189
189
|
|
|
@@ -1390,19 +1390,32 @@ class Page(Image):
|
|
|
1390
1390
|
include_residual_text_container=include_residual_text_container,
|
|
1391
1391
|
)
|
|
1392
1392
|
|
|
1393
|
-
def
|
|
1393
|
+
def get_entities(self) -> list[Mapping[str, str]]:
|
|
1394
1394
|
"""
|
|
1395
1395
|
Returns:
|
|
1396
|
-
A list of
|
|
1396
|
+
A list of dicts with the following structure:
|
|
1397
|
+
|
|
1398
|
+
```python
|
|
1399
|
+
{
|
|
1400
|
+
"word": str, # word characters
|
|
1401
|
+
"entity": str, # token tag
|
|
1402
|
+
"annotation_id": str, # annotation id of the word
|
|
1403
|
+
"successor_annotation_id": Optional[str] # annotation_id of the successor word, if any
|
|
1404
|
+
}
|
|
1405
|
+
```
|
|
1406
|
+
|
|
1397
1407
|
"""
|
|
1398
1408
|
block_with_order = self._order("layouts")
|
|
1399
1409
|
all_words = []
|
|
1400
1410
|
for block in block_with_order:
|
|
1401
1411
|
all_words.extend(block.get_ordered_words()) # type: ignore
|
|
1402
1412
|
return [
|
|
1403
|
-
{"word": word.
|
|
1413
|
+
{"word": word.characters,
|
|
1414
|
+
"entity": word.token_tag.value,
|
|
1415
|
+
"annotation_id": word.annotation_id,
|
|
1416
|
+
"successor_annotation_id": word.successor[0].annotation_id if word.successor else None}
|
|
1404
1417
|
for word in all_words
|
|
1405
|
-
if word.
|
|
1418
|
+
if word.token_tag not in (TokenClasses.OTHER, None)
|
|
1406
1419
|
]
|
|
1407
1420
|
|
|
1408
1421
|
def __copy__(self) -> Page:
|
|
@@ -502,6 +502,7 @@ class TokenClassResult:
|
|
|
502
502
|
semantic_name: semantic name
|
|
503
503
|
bio_tag: bio tag
|
|
504
504
|
score: prediction score
|
|
505
|
+
successor_uuid: uuid of the next token in the sequence
|
|
505
506
|
"""
|
|
506
507
|
|
|
507
508
|
uuid: str
|
|
@@ -512,6 +513,7 @@ class TokenClassResult:
|
|
|
512
513
|
bio_tag: ObjectTypes = DefaultType.DEFAULT_TYPE
|
|
513
514
|
score: Optional[float] = None
|
|
514
515
|
token_id: Optional[int] = None
|
|
516
|
+
successor_uuid: Optional[str] = None
|
|
515
517
|
|
|
516
518
|
|
|
517
519
|
@dataclass
|
|
@@ -200,7 +200,7 @@ def xfund_to_image(
|
|
|
200
200
|
ann_ids.extend(entity_id_to_ann_id[linked_entity])
|
|
201
201
|
for ann_id in ann_ids:
|
|
202
202
|
if ann_id != word.annotation_id:
|
|
203
|
-
word.dump_relationship(Relationships.
|
|
203
|
+
word.dump_relationship(Relationships.LINK, ann_id)
|
|
204
204
|
|
|
205
205
|
if mapping_context.context_error:
|
|
206
206
|
return None
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
Datapoint manager
|
|
20
20
|
"""
|
|
21
21
|
from dataclasses import asdict
|
|
22
|
-
from typing import Optional, Union
|
|
22
|
+
from typing import Optional, Union, Sequence
|
|
23
23
|
|
|
24
24
|
import numpy as np
|
|
25
25
|
|
|
@@ -372,6 +372,19 @@ class DatapointManager:
|
|
|
372
372
|
return None
|
|
373
373
|
return ann.annotation_id
|
|
374
374
|
|
|
375
|
+
def remove_annotations(self, annotation_ids: Sequence[str]) -> None:
|
|
376
|
+
"""
|
|
377
|
+
Removes the annotation by the given `annotation_id`.
|
|
378
|
+
|
|
379
|
+
Args:
|
|
380
|
+
annotation_ids: The `annotation_id` to remove.
|
|
381
|
+
"""
|
|
382
|
+
self.assert_datapoint_passed()
|
|
383
|
+
self.datapoint.remove(annotation_ids)
|
|
384
|
+
for ann_id in annotation_ids:
|
|
385
|
+
if ann_id in self._cache_anns:
|
|
386
|
+
self._cache_anns.pop(ann_id)
|
|
387
|
+
|
|
375
388
|
def deactivate_annotation(self, annotation_id: str) -> None:
|
|
376
389
|
"""
|
|
377
390
|
Deactivates the annotation by the given `annotation_id`.
|
|
@@ -229,8 +229,9 @@ class Relationships(ObjectTypes):
|
|
|
229
229
|
|
|
230
230
|
CHILD = "child"
|
|
231
231
|
READING_ORDER = "reading_order"
|
|
232
|
-
|
|
232
|
+
LINK = "link"
|
|
233
233
|
LAYOUT_LINK = "layout_link"
|
|
234
|
+
SUCCESSOR = "successor"
|
|
234
235
|
|
|
235
236
|
|
|
236
237
|
@object_types_registry.register("Languages")
|
|
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-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/__init__.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/doclaynet.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/fintabnet.py
RENAMED
|
File without changes
|
|
File without changes
|
{deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/iiitar13k.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/layouttest.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/publaynet.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/pubtables1m.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/pubtabnet.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/rvlcdip.py
RENAMED
|
File without changes
|
|
File without changes
|
{deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/xsl/__init__.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/datasets/instances/xsl/pascal_voc.xsl
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
|
{deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/config/__init__.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/config/config.py
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
|
{deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/utils/__init__.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/utils/box_ops.py
RENAMED
|
File without changes
|
{deepdoctection-0.43.2 → deepdoctection-0.43.3}/deepdoctection/extern/tp/tpfrcnn/utils/np_box_ops.py
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
|
|
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-0.43.2 → deepdoctection-0.43.3}/deepdoctection.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|