From 28d64b2106a45b91b7ca8631f6a16ac8112ef386 Mon Sep 17 00:00:00 2001 From: Arne Binder Date: Sat, 27 Jul 2024 20:18:44 +0200 Subject: [PATCH] add brat serializer config --- configs/serializer/brat.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 configs/serializer/brat.yaml diff --git a/configs/serializer/brat.yaml b/configs/serializer/brat.yaml new file mode 100644 index 0000000..6ea2a3a --- /dev/null +++ b/configs/serializer/brat.yaml @@ -0,0 +1,11 @@ +_target_: src.serializer.JsonSerializer +path: ${prediction_save_dir} +split: ${dataset_split} + +# this needs to be a mapping from annotation layer names +# to what to serialize, i.e. "gold", "prediction", or "both". +# For example: +# layers: +# labeled_spans: gold +# binary_relations: prediction +layers: ???