(self, exclude: Optional[Set[str]] = None)
return lang_map
Args:
            exclude

        Returns:
            Dict[str, str]
Args:
            exclude
Args : exclude
def load(self, exclude: Optional[Set[str]] = None) -> Dict[str, str]:
        """
        Args:
            exclude

        Returns:
            Dict[str, str]
        """
        rows = tio.read_csv(
            self.data_dir.joinpath(self.filename),
            delimiter="\t",
            fieldnames=[
                "Id",
                "Part2B",
                "Part2T",
                "Part1",
                "Scope",
                "Language_Type",
                "Ref_Name",
                "Comment",
            ],
            quoting=1,
        )
        lang_map = {
            row["Id"]: row["Part1"]
            for row in rows
            if row.get("Part1") and (exclude is None or row["Part1"] not in exclude)
        }
        LOGGER.info(
            "loaded IsoLangResource data:\n%s ...",
            sorted(lang_map.items())[:5],
        )
        return lang_map
def load ( self , exclude : Optional [ Set [ str ] ] = None ) -> Dict [ str , str ] : rows = tio . read_csv ( self . data_dir . joinpath ( self . filename ) , delimiter = "\t" , fieldnames = [ "Id" , "Part2B" , "Part2T" , "Part1" , "Scope" , "Language_Type" , "Ref_Name" , "Comment" , ] , quoting = 1 , ) lang_map = { row [ "Id" ] : row [ "Part1" ] for row in rows if row . get ( "Part1" ) and ( exclude is None or row [ "Part1" ] not in exclude ) } LOGGER . info ( "loaded IsoLangResource data:\n%s ..." , sorted ( lang_map . items ( ) ) [ : 5 ] , ) return lang_map