How to use the danlp.download.DATASETS.items function in danlp

To help you get started, we’ve selected a few danlp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alexandrainst / danlp / tests / test_download.py View on Github external
def test_all_downloadable_files_has_checksums(self):
        for model, data in MODELS.items():
            self.assertIn('size', data, msg="Model {}".format(model))
            self.assertIn('md5_checksum', data)
            self.assertIn('file_extension', data)

        for dataset, data in DATASETS.items():
            self.assertIn('size', data, msg="Dataset {}".format(dataset))
            self.assertIn('md5_checksum', data)
            self.assertIn('file_extension', data)