Skip to content

Commit 9c89be6

Browse files
committed
HPLT seg_langs hotfix for Croatian
1 parent c609da3 commit 9c89be6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pipeline/data/hplt.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ def _run_download(self):
191191
read_lines(shuffled_shard_urls, on_enter_location=self.stats.count_shards_visited)
192192
)
193193
# Fix for Bosnian which has "hbs" in the seg_langs
194-
if self.hplt_locale == "bos_Latn":
194+
# TODO remove this in v4
195+
if self.hplt_locale in ("bos_Latn", "hrv_Latn"):
195196
self.hplt_locale = "hbs_Latn"
196197
logger.warn(f"Changed HPLT locale to {self.hplt_locale} for bos_Latn")
197198

0 commit comments

Comments
 (0)