From f8bb4c44dd58f27992ca8e8574c36287e3b2af82 Mon Sep 17 00:00:00 2001
From: pwalkow <pwalkow@gpu-server.ws.clarin>
Date: Tue, 14 Mar 2023 17:05:43 +0100
Subject: [PATCH] repair list

---
 experiments/scripts/tag_dataset.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/experiments/scripts/tag_dataset.py b/experiments/scripts/tag_dataset.py
index f099412..911983a 100644
--- a/experiments/scripts/tag_dataset.py
+++ b/experiments/scripts/tag_dataset.py
@@ -107,7 +107,7 @@ def main(dataset_name: str):
                 test_with_tags = pd.DataFrame(
                     pd.read_json(os.path.join(input_dir, file), lines=True)
                 )
-                empty_list = [[] for _ in range(len(test_with_tags)]]
+                empty_list = [[] for _ in range(len(test_with_tags))]
                 test_with_tags[LEMMAS] = empty_list
                 test_with_tags[TAGS] = empty_list
                 test_with_tags[ORTHS] = empty_list
-- 
GitLab