mathiascreutz commited on
Commit ·
e5233d0
1
Parent(s): b3319e6
Adding training sets
Browse files187 unmodified lines1881891901911921931944 unmodified lines199200201202203204205187 unmodified linesself, lang, quality, filepath, split # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`):print(lang, quality, filepath, split)""" Yields examples as (key, example) tuples. """# This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.# The `key` is here for legacy reason (tfds) and is not important in itself.4 unmodified lines# files, and only the desired language has been downloadedfor id_, row in enumerate(f):data = json.loads(row)if data["quality"] < self.quality:# The rest of this file contains too low quality databreakyield id_, {187 unmodified lines1881891901911921934 unmodified lines198199200201202203204187 unmodified linesself, lang, quality, filepath, split # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`):""" Yields examples as (key, example) tuples. """# This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.# The `key` is here for legacy reason (tfds) and is not important in itself.4 unmodified lines# files, and only the desired language has been downloadedfor id_, row in enumerate(f):data = json.loads(row)if data["quality"] < quality:# The rest of this file contains too low quality databreakyield id_, {
opusparcus.py+1-2