From bc280af9ddca6d9b0431ddbef3f0feb35e4f5aff Mon Sep 17 00:00:00 2001 From: Arne Binder Date: Fri, 9 Feb 2024 17:17:56 +0100 Subject: [PATCH] add docs --- src/serializer/brat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/serializer/brat.py b/src/serializer/brat.py index fe5ab8f..335a950 100644 --- a/src/serializer/brat.py +++ b/src/serializer/brat.py @@ -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