Skip to content

Commit

Permalink
Merge pull request #1274 from UUDigitalHumanitieslab/feature/sweden-w…
Browse files Browse the repository at this point in the history
…ord-models

Feature/sweden word models
  • Loading branch information
BeritJanssen authored Oct 4, 2023
2 parents b6caf95 + 195f317 commit 6bdf170
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/corpora/parliament/sweden-old.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
1 change: 1 addition & 0 deletions backend/corpora/parliament/sweden.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6bdf170

Please sign in to comment.