From a039655f8ea07f9d9f68ba353f5cc8210a5c5568 Mon Sep 17 00:00:00 2001 From: Martin Hammarstedt Date: Mon, 13 May 2024 11:43:17 +0200 Subject: [PATCH] Fix config validation for `korp.context` and `korp.within` again --- sparv/modules/korp/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sparv/modules/korp/config.py b/sparv/modules/korp/config.py index 81a2af6e..919b5b9c 100644 --- a/sparv/modules/korp/config.py +++ b/sparv/modules/korp/config.py @@ -76,13 +76,13 @@ Config( "korp.context", description="Contexts to use in Korp, from smaller to bigger. Leave blank to detect automatically.", - datatype=List[dict], + datatype=List[Union[dict, str]] ), Config( "korp.within", description="Search boundaries to use in Korp, from smaller to bigger. " "Leave blank to detect automatically.", - datatype=List[dict], + datatype=List[Union[dict, str]] ), Config("korp.custom_annotations", description="Custom Korp-annotations.", datatype=List[dict]), Config("korp.morphology", description="Morphologies"),