From 195f3173b60fc06d41fdb3def1d9539793166054 Mon Sep 17 00:00:00 2001 From: BeritJanssen Date: Thu, 28 Sep 2023 15:59:04 +0200 Subject: [PATCH] add word_model_path to Swedish parliament corpus definitions --- backend/corpora/parliament/sweden-old.py | 2 +- backend/corpora/parliament/sweden.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/corpora/parliament/sweden-old.py b/backend/corpora/parliament/sweden-old.py index 4f3a327e7..554190306 100644 --- a/backend/corpora/parliament/sweden-old.py +++ b/backend/corpora/parliament/sweden-old.py @@ -37,7 +37,7 @@ class ParliamentSwedenOld(Parliament, CSVCorpusDefinition): max_date = datetime(year=1919, month=12, day=31) data_directory = settings.PP_SWEDEN_OLD_DATA es_index = getattr(settings, 'PP_SWEDEN_OLD_INDEX', 'parliament-sweden-old') - + word_model_path = getattr(settings, 'PP_SWEDEN_WM', None) document_context = constants.document_context( context_fields=['chamber', 'date_earliest', 'date_latest'] diff --git a/backend/corpora/parliament/sweden.py b/backend/corpora/parliament/sweden.py index 8a8cd3e45..19d58f2f0 100644 --- a/backend/corpora/parliament/sweden.py +++ b/backend/corpora/parliament/sweden.py @@ -46,6 +46,7 @@ class ParliamentSweden(Parliament, CSVCorpusDefinition): min_date = datetime(year=1920, month=1, day=1) data_directory = settings.PP_SWEDEN_DATA es_index = getattr(settings, 'PP_SWEDEN_INDEX', 'parliament-sweden') + word_model_path = getattr(settings, 'PP_SWEDEN_WM', None) def sources(self, start, end): for csv_file in glob('{}/**/*.csv'.format(self.data_directory), recursive=True):