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 989176e commit bc280af
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 @@ -184,7 +184,8 @@ def serialize_annotation_layers(

class BratSerializer(DocumentSerializer):
"""BratSerializer serialize documents into the Brat format. It requires a "layers" parameter to
specify the annotation layers to serialize.
specify the annotation layers to serialize. For now, it supports layers containing LabeledSpan,
LabeledMultiSpan, and BinaryRelation annotations.
If a gold_label_prefix is provided, the gold annotations are serialized with the given prefix.
Otherwise, only the predicted annotations are serialized. A document_processor can be provided
Expand Down

0 comments on commit bc280af

Please sign in to comment.