Datasets:
Update earnings_call.py
Browse files- earnings_call.py +3 -3
earnings_call.py
CHANGED
@@ -31,7 +31,7 @@ _HOMEPAGE = "https://dataverse.nl/dataset.xhtml?persistentId=doi:10.34894/TJE0D0
|
|
31 |
|
32 |
_LICENSE = " CC0 1.0"
|
33 |
|
34 |
-
|
35 |
_URLS = {
|
36 |
"transcripts": "./transcripts.zip",
|
37 |
"stock_prices": "./stock_prices.zip",
|
@@ -137,7 +137,7 @@ class EarningsCallDataset(datasets.GeneratorBasedBuilder):
|
|
137 |
),
|
138 |
]
|
139 |
elif self.config.name == "transcripts":
|
140 |
-
data_dir = Path(data_dir)
|
141 |
return [
|
142 |
datasets.SplitGenerator(
|
143 |
name="train",
|
@@ -157,7 +157,7 @@ class EarningsCallDataset(datasets.GeneratorBasedBuilder):
|
|
157 |
),
|
158 |
]
|
159 |
elif self.config.name == "stock_prices":
|
160 |
-
data_dir = Path(data_dir)
|
161 |
return [
|
162 |
datasets.SplitGenerator(
|
163 |
name="train",
|
|
|
31 |
|
32 |
_LICENSE = " CC0 1.0"
|
33 |
|
34 |
+
|
35 |
_URLS = {
|
36 |
"transcripts": "./transcripts.zip",
|
37 |
"stock_prices": "./stock_prices.zip",
|
|
|
137 |
),
|
138 |
]
|
139 |
elif self.config.name == "transcripts":
|
140 |
+
data_dir = Path(data_dir) / "transcripts"
|
141 |
return [
|
142 |
datasets.SplitGenerator(
|
143 |
name="train",
|
|
|
157 |
),
|
158 |
]
|
159 |
elif self.config.name == "stock_prices":
|
160 |
+
data_dir = Path(data_dir) / "stock_prices"
|
161 |
return [
|
162 |
datasets.SplitGenerator(
|
163 |
name="train",
|