jlh-ibm commited on
Commit
ef9217f
1 Parent(s): 20b6835

Update earnings_call.py

Browse files
Files changed (1) hide show
  1. earnings_call.py +3 -3
earnings_call.py CHANGED
@@ -36,7 +36,7 @@ _URLS = {
36
  "transcripts": "./transcripts.zip",
37
  "stock_prices": "./stock_prices.zip",
38
  "transcript-sentiment": {
39
- "stocks": "./stock_prices.zip",
40
  "transcripts": "./transcripts.zip",
41
  },
42
  }
@@ -113,8 +113,8 @@ class EarningsCallDataset(datasets.GeneratorBasedBuilder):
113
  data_dir = dl_manager.download_and_extract(_URLS[self.config.name])
114
 
115
  if self.config.name == "transcript-sentiment":
116
- transcript_dir = Path(data_dir["transcripts"])
117
- stocks_dir = Path(data_dir["stocks"])
118
 
119
  return [
120
  datasets.SplitGenerator(
 
36
  "transcripts": "./transcripts.zip",
37
  "stock_prices": "./stock_prices.zip",
38
  "transcript-sentiment": {
39
+ "stock_prices": "./stock_prices.zip",
40
  "transcripts": "./transcripts.zip",
41
  },
42
  }
 
113
  data_dir = dl_manager.download_and_extract(_URLS[self.config.name])
114
 
115
  if self.config.name == "transcript-sentiment":
116
+ transcript_dir = Path(data_dir["transcripts"]) / "transcripts"
117
+ stocks_dir = Path(data_dir["stock_prices"]) / "stock_prices"
118
 
119
  return [
120
  datasets.SplitGenerator(