Skip to content

Commit

Permalink
correct language settings
Browse files Browse the repository at this point in the history
  • Loading branch information
BeritJanssen committed Oct 11, 2023
1 parent ab6184e commit 538d8eb
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion backend/corpora/dutchnewspapers/dutchnewspapers_public.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class DutchNewspapersPublic(XMLCorpus):

@property
def es_settings(self):
return es_settings(self.language, stopword_analyzer=True, stemming_analyzer=True)
return es_settings(self.languages[0], stopword_analyzer=True, stemming_analyzer=True)

tag_toplevel = 'text'
tag_entry = 'p'
Expand Down
2 changes: 1 addition & 1 deletion backend/corpora/ecco/ecco.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Ecco(XMLCorpus):

@property
def es_settings(self):
return es_settings(self.language, stopword_analyzer=True, stemming_analyzer=True)
return es_settings(self.languages[0], stopword_analyzer=True, stemming_analyzer=True)

data_directory = settings.ECCO_DATA
es_index = getattr(settings, 'ECCO_ES_INDEX', 'ecco')
Expand Down
2 changes: 1 addition & 1 deletion backend/corpora/guardianobserver/guardianobserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class GuardianObserver(XMLCorpus):

@property
def es_settings(self):
return es_settings(self.language, stopword_analyzer=True, stemming_analyzer=True)
return es_settings(self.languages[0], stopword_analyzer=True, stemming_analyzer=True)

tag_toplevel = 'Record'

Expand Down
2 changes: 1 addition & 1 deletion backend/corpora/periodicals/periodicals.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Periodicals(XMLCorpus):

@property
def es_settings(self):
return es_settings(self.language, stopword_analyzer=True, stemming_analyzer=True)
return es_settings(self.languages[0], stopword_analyzer=True, stemming_analyzer=True)

tag_toplevel = 'articles'
tag_entry = 'artInfo'
Expand Down
2 changes: 1 addition & 1 deletion backend/corpora/rechtspraak/rechtspraak.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Rechtspraak(XMLCorpus):

@property
def es_settings(self):
return es_settings(self.language, stopword_analyzer=True, stemming_analyzer=True)
return es_settings(self.languages[0], stopword_analyzer=True, stemming_analyzer=True)

tag_toplevel = 'open-rechtspraak'

Expand Down
2 changes: 1 addition & 1 deletion backend/corpora/times/times.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Times(XMLCorpus):

@property
def es_settings(self):
return es_settings(self.language, stopword_analyzer=True, stemming_analyzer=True)
return es_settings(self.languages[0], stopword_analyzer=True, stemming_analyzer=True)

tag_toplevel = 'issue'
tag_entry = 'article'
Expand Down
2 changes: 1 addition & 1 deletion backend/corpora/troonredes/troonredes.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Troonredes(XMLCorpus):

@property
def es_settings(self):
return es_settings(self.language, stopword_analyzer=True, stemming_analyzer=True)
return es_settings(self.languages[0], stopword_analyzer=True, stemming_analyzer=True)

tag_toplevel = 'doc'
tag_entry = 'entry'
Expand Down

0 comments on commit 538d8eb

Please sign in to comment.