Datasets:
Matej Klemen
commited on
Commit
•
b877ca4
1
Parent(s):
388286d
Fix the frames mistakenly being shared incorrectly because of passing a mutable list
Browse files
komet.py
CHANGED
@@ -60,7 +60,7 @@ def resolve(element) -> List:
|
|
60 |
|
61 |
# Annotated word or word group
|
62 |
elif element.tag.endswith("seg"):
|
63 |
-
mtype, new_frame_buffer = "O", frame_buffer
|
64 |
if element.attrib["subtype"] != "frame":
|
65 |
mtype = element.attrib["subtype"]
|
66 |
else:
|
|
|
60 |
|
61 |
# Annotated word or word group
|
62 |
elif element.tag.endswith("seg"):
|
63 |
+
mtype, new_frame_buffer = "O", list(frame_buffer)
|
64 |
if element.attrib["subtype"] != "frame":
|
65 |
mtype = element.attrib["subtype"]
|
66 |
else:
|