Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneBinder committed Feb 9, 2024
1 parent bc280af commit 5e7c788
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/serializer/brat.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ def serialize_annotation_layers(
annotations=layer.predictions,
label_prefix=prediction_label_prefix,
first_idx=len(serialized_annotations),
# predicted annotations can reference both gold and predicted annotations
# Predicted annotations can reference both gold and predicted annotations.
# Note that predictions take precedence over gold annotations.
annotation2id={**gold_annotation2id, **prediction_annotation2id},
)
prediction_annotation2id.update(new_pred_ann2id)
Expand Down

0 comments on commit 5e7c788

Please sign in to comment.