in voxpopuli/segmentation/__init__.py [0:0]
def get_all_years_for_lang(path_root: Union[str, Path], lang: str) -> List[str]:
path_lang = Path(path_root) / lang
return [
x.stem
for x in path_lang.glob("*")
if (len(x.stem) == 4 and x.is_dir() and all(p.isdigit() for p in x.stem))
]