示例#1
0
 def test_disckcache_iterator(self):
     data = COMMONVOICE(self.path, url="tatar")
     data = dataset_utils.diskcache_iterator(data)
     # Save
     data[0]
     # Load
     data[0]
示例#2
0
 def test_commonvoice_diskcache(self):
     data = COMMONVOICE(self.path, url="tatar")
     data = diskcache_iterator(data)
     # Save
     data[0]
     # Load
     data[0]
示例#3
0
 def test_bg_iterator(self):
     data = COMMONVOICE(self.path,
                        version="cv-corpus-4-2019-12-10",
                        language="tatar")
     data = dataset_utils.bg_iterator(data, 5)
     for _ in data:
         pass
示例#4
0
 def test_commonvoice_diskcache(self):
     path = os.path.join(self.path, "commonvoice")
     data = COMMONVOICE(path, "train.tsv", "tatar")
     data = DiskCache(data)
     # Save
     data[0]
     # Load
     data[0]
示例#5
0
 def test_disckcache_iterator(self):
     data = COMMONVOICE(self.path,
                        version="cv-corpus-4-2019-12-10",
                        language="tatar")
     data = dataset_utils.diskcache_iterator(data)
     # Save
     data[0]
     # Load
     data[0]
示例#6
0
 def test_commonvoice_bg(self):
     data = COMMONVOICE(self.path, url="tatar")
     data = bg_iterator(data, 5)
     for _ in data:
         pass
示例#7
0
 def test_commonvoice(self):
     data = COMMONVOICE(self.path, url="tatar")
     data[0]
示例#8
0
 def test_bg_iterator(self):
     data = COMMONVOICE(self.path, url="tatar")
     data = dataset_utils.bg_iterator(data, 5)
     for _ in data:
         pass
示例#9
0
 def test_commonvoice(self):
     path = os.path.join(self.path, "commonvoice")
     data = COMMONVOICE(path, "train.tsv", "tatar")
     data[0]
示例#10
0
 def test_commonvoice_bg(self):
     path = os.path.join(self.path, "commonvoice")
     data = COMMONVOICE(path, "train.tsv", "tatar")
     data = bg_iterator(data, 5)
     for d in data:
         pass