We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e96a55 + 28ee2fb commit 14c147bCopy full SHA for 14c147b
textractor/parsers/response_parser.py
@@ -6,6 +6,7 @@
6
7
import logging
8
import uuid
9
+from copy import deepcopy
10
from typing import Any, List, Dict, Tuple
11
from collections import defaultdict
12
from textractor.entities.identity_document import IdentityDocument
@@ -1183,9 +1184,9 @@ def parse_document_api_response(response: dict) -> Document:
1183
1184
lines, line_words = _create_line_objects(
1185
entity_id_map[LINE], id_json_map, existing_words, page
1186
)
- page.lines = lines
1187
+ page.lines = deepcopy(lines)
1188
- line_by_id = {l.id: l for l in page.lines}
1189
+ line_by_id = {l.id: l for l in lines}
1190
1191
# Creating layouts
1192
container_layouts, leaf_layouts = _create_layout_objects(
0 commit comments