Skip to content

Commit

Permalink
fix document_to_example()
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneBinder committed Nov 7, 2023
1 parent bd0ef77 commit 55d3791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataset_builders/pie/brat/brat.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def document_to_example(
for target_layer, attribute_ids in attribute_ids_per_target.items():
attribute_annotations = all_attribute_annotations[target_layer]
assert len(attribute_ids) == len(attribute_annotations)
for i, attribute_annotation in enumerate(document.span_attributes):
for i, attribute_annotation in enumerate(attribute_annotations):
target_id = annotation_dicts[target_layer][attribute_annotation.annotation]["id"]
attribute_dict = {
"id": attribute_ids_per_target[target_layer][i],
Expand Down

0 comments on commit 55d3791

Please sign in to comment.