remove unneeded imports
Browse files- bu_radio.py +2 -15
bu_radio.py
CHANGED
@@ -2,28 +2,15 @@
|
|
2 |
|
3 |
import os
|
4 |
from pathlib import Path
|
5 |
-
import hashlib
|
6 |
-
import pickle
|
7 |
|
8 |
import datasets
|
9 |
-
import pandas as pd
|
10 |
import numpy as np
|
11 |
-
from tqdm.contrib.concurrent import process_map
|
12 |
-
from tqdm.auto import tqdm
|
13 |
-
from multiprocessing import cpu_count
|
14 |
-
# from phones.convert import Converter
|
15 |
-
import torchaudio
|
16 |
-
import torchaudio.transforms as AT
|
17 |
-
from functools import lru_cache
|
18 |
|
19 |
logger = datasets.logging.get_logger(__name__)
|
20 |
|
21 |
-
_PHONESET = "arpabet"
|
22 |
-
|
23 |
-
_MAX_WORKERS = os.environ.get("BURN_MAX_WORKERS", cpu_count())
|
24 |
_PATH = os.environ.get("BURN_PATH", None)
|
25 |
|
26 |
-
_VERSION = "0.0.
|
27 |
|
28 |
_CITATION = """\
|
29 |
@article{ostendorf1995boston,
|
@@ -191,4 +178,4 @@ class BURN(datasets.GeneratorBasedBuilder):
|
|
191 |
if example is not None:
|
192 |
example["speaker"] = speakers[i]
|
193 |
yield j, example
|
194 |
-
j += 1
|
|
|
2 |
|
3 |
import os
|
4 |
from pathlib import Path
|
|
|
|
|
5 |
|
6 |
import datasets
|
|
|
7 |
import numpy as np
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
logger = datasets.logging.get_logger(__name__)
|
10 |
|
|
|
|
|
|
|
11 |
_PATH = os.environ.get("BURN_PATH", None)
|
12 |
|
13 |
+
_VERSION = "0.0.2"
|
14 |
|
15 |
_CITATION = """\
|
16 |
@article{ostendorf1995boston,
|
|
|
178 |
if example is not None:
|
179 |
example["speaker"] = speakers[i]
|
180 |
yield j, example
|
181 |
+
j += 1
|