The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 12 new columns ({'topic_05_weight', 'topic_04_weight', 'topic_01_weight', 'topic_03_weight', 'topic_06_weight', 'doc_id', 'headline_bundle_sample', 'token_count', 'headline_count', 'topic_07_weight', 'topic_02_weight', 'topic_00_weight'}) and 2 missing columns ({'time', 'headline'}).
This happened while the csv dataset builder was generating data using
hf://datasets/dayun0071/NLP/Analyze the news headlines dataset to learn latent topics and label headlines accordingly/labelled_stock_day_headlines.csv (at revision bc522c3cefc4e1b1d5407f5d4245a7ec770f2131), ['hf://datasets/dayun0071/NLP@bc522c3cefc4e1b1d5407f5d4245a7ec770f2131/Analyze the news headlines dataset to learn latent topics and label headlines accordingly/labelled_individual_headlines_selected20.csv', 'hf://datasets/dayun0071/NLP@bc522c3cefc4e1b1d5407f5d4245a7ec770f2131/Analyze the news headlines dataset to learn latent topics and label headlines accordingly/labelled_stock_day_headlines.csv', 'hf://datasets/dayun0071/NLP@bc522c3cefc4e1b1d5407f5d4245a7ec770f2131/Analyze the news headlines dataset to learn latent topics and label headlines accordingly/topic_model_leaderboard.csv', 'hf://datasets/dayun0071/NLP@bc522c3cefc4e1b1d5407f5d4245a7ec770f2131/Analyze the news headlines dataset to learn latent topics and label headlines accordingly/topic_summary.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1848, in _prepare_split_single
writer.write_table(table)
~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 765, in write_table
self._write_table(pa_table, writer_batch_size=writer_batch_size)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 773, in _write_table
pa_table = table_cast(pa_table, self._schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
date: string
ticker: string
sector: string
headline_count: int64
token_count: int64
model_text: string
headline_bundle_sample: string
doc_id: int64
topic_id: int64
topic_label: string
topic_confidence: double
topic_00_weight: double
topic_01_weight: double
topic_02_weight: double
topic_03_weight: double
topic_04_weight: double
topic_05_weight: double
topic_06_weight: double
topic_07_weight: double
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 2645
to
{'time': Value('string'), 'date': Value('string'), 'ticker': Value('string'), 'sector': Value('string'), 'headline': Value('string'), 'model_text': Value('string'), 'topic_id': Value('int64'), 'topic_label': Value('string'), 'topic_confidence': Value('float64')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1850, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
...<4 lines>...
)
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 12 new columns ({'topic_05_weight', 'topic_04_weight', 'topic_01_weight', 'topic_03_weight', 'topic_06_weight', 'doc_id', 'headline_bundle_sample', 'token_count', 'headline_count', 'topic_07_weight', 'topic_02_weight', 'topic_00_weight'}) and 2 missing columns ({'time', 'headline'}).
This happened while the csv dataset builder was generating data using
hf://datasets/dayun0071/NLP/Analyze the news headlines dataset to learn latent topics and label headlines accordingly/labelled_stock_day_headlines.csv (at revision bc522c3cefc4e1b1d5407f5d4245a7ec770f2131), ['hf://datasets/dayun0071/NLP@bc522c3cefc4e1b1d5407f5d4245a7ec770f2131/Analyze the news headlines dataset to learn latent topics and label headlines accordingly/labelled_individual_headlines_selected20.csv', 'hf://datasets/dayun0071/NLP@bc522c3cefc4e1b1d5407f5d4245a7ec770f2131/Analyze the news headlines dataset to learn latent topics and label headlines accordingly/labelled_stock_day_headlines.csv', 'hf://datasets/dayun0071/NLP@bc522c3cefc4e1b1d5407f5d4245a7ec770f2131/Analyze the news headlines dataset to learn latent topics and label headlines accordingly/topic_model_leaderboard.csv', 'hf://datasets/dayun0071/NLP@bc522c3cefc4e1b1d5407f5d4245a7ec770f2131/Analyze the news headlines dataset to learn latent topics and label headlines accordingly/topic_summary.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
time string | date string | ticker string | sector string | headline string | model_text string | topic_id int64 | topic_label string | topic_confidence float64 |
|---|---|---|---|---|---|---|---|---|
2019-07-09 06:01:05 | 2019-07-09 | AAPL | Technology | RCS - IMImobile PLC - Vauxhall launch Apple Business Chat with IMImobile | rcs imimobile vauxhall launch chat imimobile | 6 | Cloud, software and partnerships | 0.972496 |
2019-07-09 11:40:36 | 2019-07-09 | MSFT | Technology | To Participate in the Microsoft Inspire 2019 Partner Conference | participate inspire partner conference | 7 | Capital markets and structured products | 0.999973 |
2019-07-09 15:55:29 | 2019-07-09 | BA | Industrials | Second Quarter Deliveries | quarter delivery | 5 | Earnings, dividends and governance | 0.518342 |
2019-07-09 16:52:45 | 2019-07-09 | CVX | Energy | QATAR PETROLEUM - $8 BLN PROJECT | qatar petroleum project | 2 | Energy, oil and refining | 1 |
2019-07-09 16:53:13 | 2019-07-09 | CVX | Energy | QATAR PETROLEUM - USGC II WILL INCLUDE A 2,000 KTA ETHYLENE CRACKER AND TWO 1,000 KTA HIGH-DENSITY POLYETHYLENE UNITS. | qatar petroleum usgc include kta ethylene cracker kta highdensity polyethylene unit | 2 | Energy, oil and refining | 1 |
2019-07-09 16:53:40 | 2019-07-09 | CVX | Energy | QATAR PETROLEUM - PRELIMINARY COST OF USGC II IS APPROXIMATELY $8 BLN. | qatar petroleum preliminary cost usgc approximately | 2 | Energy, oil and refining | 0.584739 |
2019-07-09 16:56:43 | 2019-07-09 | CVX | Energy | QATAR PETROLEUM - CHEVRON PHILLIPS CHEMICAL WOULD PROVIDE PROJECT MANAGEMENT AND OVERSIGHT AND BE RESPONSIBLE FOR OPERATION AND MANAGEMENT OF FACILITY | qatar petroleum phillips chemical provide project management oversight responsible operation management facility | 2 | Energy, oil and refining | 0.624055 |
2019-07-09 17:06:37 | 2019-07-09 | CVX | Energy | BRIEF-Chevron Phillips Chemical, Qatar Petroleum To Jointly Develop U.S. Gulf Coast Petrochemical Project | briefchevron phillips chemical qatar petroleum jointly develop gulf coast petrochemical project | 2 | Energy, oil and refining | 1 |
2019-07-09 19:20:58 | 2019-07-09 | BA | Industrials | Boeing deliveries fall 37pct in first half | delivery fall half | 5 | Earnings, dividends and governance | 0.612469 |
2019-07-09 19:22:08 | 2019-07-09 | BA | Industrials | US: Boeing deliveries fall 37pct in first half | delivery fall half | 5 | Earnings, dividends and governance | 0.612469 |
2019-07-09 19:22:22 | 2019-07-09 | CVX | Energy | Chevron Phillips, Qatar Petroleum sign $8 bln petrochemical deal | phillips qatar petroleum sign petrochemical deal | 2 | Energy, oil and refining | 0.999999 |
2019-07-09 21:53:10 | 2019-07-09 | CVX | Energy | White House discussing renewing license for Chevron to operate in Venezuela | white house discussing renewing license operate venezuela | 2 | Energy, oil and refining | 0.49226 |
2019-07-09 22:27:24 | 2019-07-09 | CVX | Energy | UPDATE 1-White House discussing renewing license for Chevron to operate in Venezuela | white house discussing renewing license operate venezuela | 2 | Energy, oil and refining | 0.49226 |
2019-07-09 23:29:57 | 2019-07-09 | CVX | Energy | U.S. OIL PRODUCER CHEVRON <CVX.N> EVACUATING STAFF, INITIATING PRODUCTION CURBS AT FIVE GULF OF MEXICO PRODUCTION PLATFORMS | oil producer evacuating staff initiating production curb gulf mexico production platform | 2 | Energy, oil and refining | 1 |
2019-07-09 23:29:58 | 2019-07-09 | CVX | Energy | CHEVRON ALSO REMOVING SOME NON-ESSENTIAL WORKERS AT A SIXTH PLATFORM, JACK/ST. MALO, AS A PRECAUTION -COMPANY | removing nonessential worker sixth platform jackst malo precaution | 2 | Energy, oil and refining | 0.537088 |
2019-07-09 23:39:27 | 2019-07-09 | CVX | Energy | Chevron joins producers' rush to evacuate Gulf of Mexico oil platforms | join producer rush evacuate gulf mexico oil platform | 2 | Energy, oil and refining | 0.846052 |
2019-07-09 23:56:59 | 2019-07-09 | CVX | Energy | UPDATE 1-Shell, Chevron U.S. Gulf Coast refineries monitoring weather | shell gulf coast refinery monitoring weather | 2 | Energy, oil and refining | 0.851986 |
2019-07-10 01:59:29 | 2019-07-10 | CVX | Energy | UPDATE 4-Oil majors evacuate U.S. Gulf platform staff before storm | oil major evacuate gulf platform staff storm | 2 | Energy, oil and refining | 0.999999 |
2019-07-10 05:39:38 | 2019-07-10 | CVX | Energy | Indonesia's Pertamina sees 109,000 bpd crude purchase from oil contractors in H2 | indonesia pertamina bpd crude purchase oil contractor | 2 | Energy, oil and refining | 1 |
2019-07-10 10:01:53 | 2019-07-10 | JPM | Financials | REG - JPMorgan Euro IT PLC JPMorgan Euro IT Inc - Holding(s) in Company | euro euro | 7 | Capital markets and structured products | 1 |
2019-07-10 12:35:19 | 2019-07-10 | HD | Consumer Discretionary | GrowGeneration Appoints Former Home Depot CEO Bob Nardelli as Senior Strategic Advisor | growgeneration appoints ceo bob nardelli senior strategic advisor | 7 | Capital markets and structured products | 0.906893 |
2019-07-10 13:05:37 | 2019-07-10 | CVX | Energy | U.S. oil producers shut-in offshore output as storm forms in Gulf of Mexico | oil producer shutin offshore output storm gulf mexico | 2 | Energy, oil and refining | 1 |
2019-07-10 13:30:08 | 2019-07-10 | JPM | Financials | REG - JPMorgan Eur Small - Holding(s) in Company | eur small | 1 | Analyst ratings and price targets | 0.742622 |
2019-07-10 13:59:17 | 2019-07-10 | AAPL | Technology | REFILE-Microsoft opens first European store in London's West End | refilemicrosoft open european store london west end | 7 | Capital markets and structured products | 0.626715 |
2019-07-10 14:05:00 | 2019-07-10 | AMZN | Consumer Discretionary | Leyou Technologies Holdings Ltd - VOLUNTARY ANNOUNCEMENT CO-DEVELOPMENT OF GAME WITH AMAZON(with URL) | leyou technology voluntary codevelopment game amazonwith | 6 | Cloud, software and partnerships | 0.511611 |
2019-07-10 14:07:44 | 2019-07-10 | HD | Consumer Discretionary | Appoints Former Home Depot CEO Bob Nardelli as Senior Strategic Advisor | appoints ceo bob nardelli senior strategic advisor | 7 | Capital markets and structured products | 0.906893 |
2019-07-10 14:10:00 | 2019-07-10 | CVX | Energy | Chevron-Philips JV, Qatar Unite for $8B Petrochemical Plant | chevronphilips qatar unite petrochemical plant | 2 | Energy, oil and refining | 0.99989 |
2019-07-10 14:17:08 | 2019-07-10 | AMZN | Consumer Discretionary | Before you click buy, some Amazon 'Prime Day' tips | click buy prime tip | 0 | Retail, consumer technology and app-store news | 0.731928 |
2019-07-10 14:18:40 | 2019-07-10 | BA | Industrials | BOEING, QATAR AIRWAYS FINALIZE ORDER FOR FIVE 777 FREIGHTERS | qatar airway finalize freighter | 4 | Aerospace operations and safety | 1 |
2019-07-10 14:19:07 | 2019-07-10 | BA | Industrials | The Boeing Company - Boeing, Qatar Airways Finalize Order for Five 777 Freighters | qatar airway finalize freighter | 4 | Aerospace operations and safety | 1 |
2019-07-10 14:25:01 | 2019-07-10 | BA | Industrials | Europe should brace for U.S. tariffs on several fronts - German official | europe brace tariff german official | 4 | Aerospace operations and safety | 0.999746 |
2019-07-10 14:26:04 | 2019-07-10 | AMZN | Consumer Discretionary | BUZZ-U.S. STOCKS ON THE MOVE-Apple, Levi Strauss, airline stocks, Mylan, Nio, McDermott | buzzus moveapple levi strauss airline mylan nio mcdermott | 1 | Analyst ratings and price targets | 0.596567 |
2019-07-10 14:30:15 | 2019-07-10 | BA | Industrials | Reuters Insider - S&P 500 rises amid earnings worries | rise earnings worry | 1 | Analyst ratings and price targets | 0.97255 |
2019-07-10 14:43:36 | 2019-07-10 | AMZN | Consumer Discretionary | Smart Cam Adds Voice Commands for Amazon Alexa and Google Assistant | smart cam add voice command alexa google assistant | 0 | Retail, consumer technology and app-store news | 0.999999 |
2019-07-10 14:50:55 | 2019-07-10 | AMZN | Consumer Discretionary | Amazon Prime Day: Up to 50% off on Alexa devices, new versions of Jabra Elite 85h, Active 65t to go on sale | prime alexa device version jabra elite active sale | 0 | Retail, consumer technology and app-store news | 0.716414 |
2019-07-10 14:51:44 | 2019-07-10 | AMZN | Consumer Discretionary | Amazon, Google Collaborate to Boost Streaming Initiatives | google collaborate boost streaming initiative | 6 | Cloud, software and partnerships | 0.73268 |
2019-07-10 15:00:00 | 2019-07-10 | AMZN | Consumer Discretionary | Amazon's New IMDb Series to Expand Original Content Portfolio | imdb series expand original content portfolio | 6 | Cloud, software and partnerships | 1 |
2019-07-10 15:00:55 | 2019-07-10 | AMZN | Consumer Discretionary | Amazon's Jeff Bezos praises Netflix's Stranger Things Season 3 | jeff bezos praise netflixs stranger thing season | 0 | Retail, consumer technology and app-store news | 1 |
2019-07-10 15:15:43 | 2019-07-10 | CVX | Energy | BUZZ-Oil stocks rise as U.S. inventory drawdown, Gulf of Mexico storm push crude prices up | buzzoil rise inventory drawdown gulf mexico storm push crude price | 2 | Energy, oil and refining | 0.859254 |
2019-07-10 15:27:55 | 2019-07-10 | AAPL | Technology | Reuters Insider - U.S. Morning Call: Wall Street points to subdued open ahead of Powell testimony | morning wall street point subdued open ahead powell testimony | 1 | Analyst ratings and price targets | 0.673069 |
2019-07-10 15:33:59 | 2019-07-10 | CVX | Energy | Reuters Insider - UK Day Ahead: European markets bounce on Powell remarks; RICS survey out Thursday | ahead european market bounce powell remark rics survey | 1 | Analyst ratings and price targets | 0.599023 |
2019-07-10 15:37:58 | 2019-07-10 | BA | Industrials | Boeing Reports Second-Quarter Deliveries | report secondquarter delivery | 5 | Earnings, dividends and governance | 0.700158 |
2019-07-10 15:56:42 | 2019-07-10 | AMZN | Consumer Discretionary | UPDATE 3-Need quick medical advice in Britain? Ask Alexa | need quick medical advice britain ask alexa | 0 | Retail, consumer technology and app-store news | 0.609993 |
2019-07-10 15:57:13 | 2019-07-10 | BA | Industrials | BRIEF-Boeing, Qatar Airways Finalize Order For Five 777 Freighters | briefboeing qatar airway finalize freighter | 4 | Aerospace operations and safety | 1 |
2019-07-10 16:30:03 | 2019-07-10 | AMZN | Consumer Discretionary | Pearson Releases First Higher Education Courseware Skill for Amazon Alexa | pearson release higher education courseware skill alexa | 6 | Cloud, software and partnerships | 0.594199 |
2019-07-10 16:30:40 | 2019-07-10 | CAT | Industrials | BUZZ-Deere: UBS cuts to 'neutral', cites near-term weakness | buzzdeere ubs cut neutral cite nearterm weakness | 1 | Analyst ratings and price targets | 1 |
2019-07-10 16:47:18 | 2019-07-10 | BA | Industrials | German minister to meet with Lighthizer on aircraft subsidies issue Thursday | german minister meet lighthizer aircraft subsidy issue | 4 | Aerospace operations and safety | 0.999941 |
2019-07-10 17:03:01 | 2019-07-10 | AMZN | Consumer Discretionary | Amazon and Microsoft compete for Pentagon's "war cloud" contract | compete pentagon war cloud contract | 4 | Aerospace operations and safety | 0.526012 |
2019-07-10 17:32:02 | 2019-07-10 | AMZN | Consumer Discretionary | Moody's announces completion of a periodic review of ratings of Koninklijke Ahold Delhaize N.V. | moody completion periodic review rating koninklijke ahold delhaize | 1 | Analyst ratings and price targets | 1 |
2019-07-10 17:39:25 | 2019-07-10 | AAPL | Technology | BUZZ-U.S. STOCKS ON THE MOVE-Big Banks, PepsiCo, Tesla, Amneal Pharma, Homebuliders | buzzus movebig bank pepsico tesla amneal pharma homebuliders | 1 | Analyst ratings and price targets | 0.839476 |
2019-07-10 18:45:06 | 2019-07-10 | AMZN | Consumer Discretionary | Amazon expands Transparency in India, other nations to curb counterfeiting | expands transparency india nation curb counterfeiting | 0 | Retail, consumer technology and app-store news | 0.977143 |
2019-07-10 18:45:07 | 2019-07-10 | AAPL | Technology | Apple introduces updated, cheaper MacBook Air, MacBook Pro for students | introduces cheaper macbook air macbook pro student | 0 | Retail, consumer technology and app-store news | 0.682022 |
2019-07-10 18:45:08 | 2019-07-10 | AMZN | Consumer Discretionary | Amazon's Alexa will offer medical advice to UK users | alexa offer medical advice user | 6 | Cloud, software and partnerships | 0.375275 |
2019-07-10 18:58:12 | 2019-07-10 | BA | Industrials | Reuters Insider - Trading at Noon: Powell comments push stocks to record highs | trading noon powell comment push record high | 1 | Analyst ratings and price targets | 0.524164 |
2019-07-10 19:10:18 | 2019-07-10 | BA | Industrials | Airbus on course to overtake Boeing as biggest planemaker European firm has edge after US rival reports slump in deliveries after two fatal crashes | airbus course overtake biggest planemaker european firm edge rival report slump delivery fatal crash | 4 | Aerospace operations and safety | 0.881771 |
2019-07-10 19:11:21 | 2019-07-10 | AAPL | Technology | iOS 13: iPhone and iPad users warned against installing new Apple software even though it is available to download 'Theyarebuggy, theyarecrash-prone, and theydolose data' | iphone ipad user warned installing software download theyarebuggy theyarecrashprone theydolose data | 0 | Retail, consumer technology and app-store news | 0.529583 |
2019-07-10 19:32:17 | 2019-07-10 | BA | Industrials | BUZZ-Boeing, Spirit Aero: UBS cuts PTs citing 737 MAX delay | buzzboeing spirit aero ubs cut citing max delay | 4 | Aerospace operations and safety | 0.679521 |
2019-07-10 19:41:44 | 2019-07-10 | AMZN | Consumer Discretionary | U.S. to probe French plan for tax on tech companies -Bloomberg Tax | probe french plan tax tech bloomberg tax | 0 | Retail, consumer technology and app-store news | 1 |
2019-07-10 19:55:24 | 2019-07-10 | AMZN | Consumer Discretionary | TRUMP ADMINISTRATION TO LAUNCH INVESTIGATION INTO FRANCE'S PLANNED TAX ON TECHNOLOGY COMPANIES THAT COULD RESULT IN NEW TARIFFS -SOURCE | trump administration launch investigation france planned tax technology result tariff source | 4 | Aerospace operations and safety | 0.66572 |
2019-07-10 20:17:06 | 2019-07-10 | AMZN | Consumer Discretionary | Man dies in Amazon construction site accident in Oak Creek | man construction site accident oak creek | 0 | Retail, consumer technology and app-store news | 0.364454 |
2019-07-10 20:23:20 | 2019-07-10 | BA | Industrials | RYANAIR CEO SAYS BOEING HAS TOLD AIRLINE IT EXPECTS 737 MAX TO BE FLYING BY END SEPT | ryanair ceo told airline expects max flying end | 4 | Aerospace operations and safety | 1 |
2019-07-10 20:23:43 | 2019-07-10 | BA | Industrials | RYANAIR CEO SAYS 2020 SUMMER GROWTH PLANS COULD BE CURTAILED IF BOEING 737 MAX NOT FLYING BY NOV | ryanair ceo summer growth plan curtailed max flying | 4 | Aerospace operations and safety | 0.999461 |
2019-07-10 20:24:04 | 2019-07-10 | BA | Industrials | RYANAIR CEO SAYS NEEDS TO TAKE DELIVERY OF 50 737 MAX AT RATE OF 6-8 PER MONTH TO MEET 2020 GROWTH PLAN | ryanair ceo need delivery max rate month meet growth plan | 4 | Aerospace operations and safety | 0.863923 |
2019-07-10 20:25:51 | 2019-07-10 | BA | Industrials | RYANAIR CEO SAYS IT IS PUTTING “MUCH MORE PRESSURE” ON BOEING AFTER IAG <ICAG.L> SIGNS LETTER OF INTENT TO BUY 200 737 MAX | ryanair ceo putting pressure iag icagl sign letter intent buy max | 4 | Aerospace operations and safety | 0.948526 |
2019-07-10 20:44:17 | 2019-07-10 | BA | Industrials | Ryanair says Boeing eyes MAX flights by Oct, cites 2020 growth risk | ryanair eye max flight cite growth risk | 4 | Aerospace operations and safety | 0.843744 |
2019-07-10 20:59:02 | 2019-07-10 | AMZN | Consumer Discretionary | Reuters Insider - Streaming wars: Amazon will bow out - Gerber | streaming war bow gerber | 0 | Retail, consumer technology and app-store news | 1 |
2019-07-10 21:00:04 | 2019-07-10 | BA | Industrials | The end is not yet in sight for Boeing's 737 MAX crisis Take-off delayed | end sight max crisis takeoff delayed | 4 | Aerospace operations and safety | 1 |
2019-07-10 21:01:09 | 2019-07-10 | BA | Industrials | Virgin Orbit conducts drop-test of rocket from Boeing 747 | virgin orbit conduct droptest rocket | 4 | Aerospace operations and safety | 1 |
2019-07-10 21:33:24 | 2019-07-10 | AMZN | Consumer Discretionary | Amazon eyes 4 million square foot work space in Bengaluru | eye million square foot work space bengaluru | 0 | Retail, consumer technology and app-store news | 0.890758 |
2019-07-10 21:33:30 | 2019-07-10 | AMZN | Consumer Discretionary | Good news! Google allows Prime Video on Chromecast, Amazon brings YouTube on Fire TV devices | good google allows prime video chromecast brings youtube device | 0 | Retail, consumer technology and app-store news | 1 |
2019-07-10 21:34:01 | 2019-07-10 | AMZN | Consumer Discretionary | Jabra launches Amazon exclusive versions of Jabra Elite 85h and Jabra Elite Active 65t | jabra launch version jabra elite jabra elite active | 6 | Cloud, software and partnerships | 0.931352 |
2019-07-10 21:34:02 | 2019-07-10 | AAPL | Technology | Apple may launch waterproof AirPods in 2019 | launch waterproof airpods | 0 | Retail, consumer technology and app-store news | 1 |
2019-07-10 21:34:57 | 2019-07-10 | AAPL | Technology | U.S. TRADE REPRESENTATIVE LAUNCHES INVESTIGATION INTO FRANCE’S PLANNED TAX ON TECH GIANTS -STATEMENT | trade representative launch investigation france planned tax tech giant | 0 | Retail, consumer technology and app-store news | 0.896373 |
2019-07-10 21:37:18 | 2019-07-10 | AAPL | Technology | USTR LIGHTHIZER SAYS U.S. IS VERY CONCERNED THE TAX EXPECTED TO PASS THE FRENCH SENATE WOULD "UNFAIRLY TARGETS AMERICAN COMPANIES" -STATEMENT | ustr lighthizer concerned tax expected pas french senate unfairly target american | 4 | Aerospace operations and safety | 0.574824 |
2019-07-10 21:51:19 | 2019-07-10 | MSFT | Technology | Microsoft Partners Providence, Boosts Healthcare Presence | partner providence boost healthcare presence | 3 | COVID vaccines and health care | 0.576872 |
2019-07-10 22:00:05 | 2019-07-10 | AAPL | Technology | U.S. RESEARCH ROUNDUP-AGCO, Gulfport Energy, Southwestern Energy | research roundupagco gulfport energy southwestern energy | 1 | Analyst ratings and price targets | 0.999991 |
2019-07-10 22:02:41 | 2019-07-10 | AMZN | Consumer Discretionary | Media Release: Vision Super calls on Amazon to enter dialogue on human rights | medium release vision super enter dialogue human right | 6 | Cloud, software and partnerships | 0.461872 |
2019-07-10 22:30:20 | 2019-07-10 | CAT | Industrials | Caterpillar (CAT) Stock Sinks As Market Gains: What You Should Know | sink market gain know | 1 | Analyst ratings and price targets | 1 |
2019-07-10 23:12:40 | 2019-07-10 | MSFT | Technology | Microsoft to open first European store in central London Gaming lounge and AR specs feature in store, which firm says proves commitment to UK | open european store central london gaming lounge spec feature store firm prof commitment | 7 | Capital markets and structured products | 0.486771 |
2019-07-10 23:12:47 | 2019-07-10 | AMZN | Consumer Discretionary | Taylor Swift Prime Day concert: When is it, who are the guest stars, and how to watch it on Amazon Event starts at 9pm ET and 2amBST | taylor swift prime concert guest star watch event start ambst | 0 | Retail, consumer technology and app-store news | 0.793682 |
2019-07-10 23:17:10 | 2019-07-10 | AMZN | Consumer Discretionary | UK health service to use Amazon Alexa to give medical advice | health service use alexa medical advice | 3 | COVID vaccines and health care | 0.523744 |
2019-07-10 23:41:16 | 2019-07-10 | BA | Industrials | UPDATE 3-Ryanair sees risk to 2020 growth if 737 MAX grounded beyond November | ryanair risk growth max grounded | 4 | Aerospace operations and safety | 0.919545 |
2019-07-10 23:45:18 | 2019-07-10 | MSFT | Technology | Buy Microsoft Before Q4 2019 Earnings with MSFT Stock at New High? | buy earnings high | 1 | Analyst ratings and price targets | 0.983887 |
2019-07-10 23:47:20 | 2019-07-10 | BA | Industrials | UPDATE 2-Europe should brace for U.S. tariffs on several fronts -German official | europe brace tariff german official | 4 | Aerospace operations and safety | 0.999746 |
2019-07-10 23:51:51 | 2019-07-10 | BA | Industrials | UPDATE 2-German minister to discuss aircraft subsidies with USTR Lighthizer | german minister discus aircraft subsidy ustr lighthizer | 4 | Aerospace operations and safety | 0.99999 |
2019-07-11 00:25:01 | 2019-07-11 | AAPL | Technology | UPDATE 3-U.S. to probe French plan to tax tech companies | probe french plan tax tech | 0 | Retail, consumer technology and app-store news | 1 |
2019-07-11 00:43:59 | 2019-07-11 | BA | Industrials | United States : Boeing Co. wins defense contract modification | win defense contract modification | 4 | Aerospace operations and safety | 1 |
2019-07-11 00:44:30 | 2019-07-11 | NVDA | Semiconductors | Russian Federation : "Tesla" is not updated, but will learn to quickly "think" | russian federation tesla learn quickly think | 4 | Aerospace operations and safety | 0.586067 |
2019-07-11 00:44:44 | 2019-07-11 | MSFT | Technology | Software Licenses Under The Microsoft Mpsa 401 Volume Licensing Program. | software license mpsa volume licensing program | 6 | Cloud, software and partnerships | 0.999967 |
2019-07-11 00:46:19 | 2019-07-11 | AAPL | Technology | Cabbage Cabbage, Carrot, Beetroot, Cucumbers, Tomatoes, Squash, Onions, Garlic, Apple | cabbage cabbage carrot beetroot cucumber tomato squash onion garlic | 0 | Retail, consumer technology and app-store news | 0 |
2019-07-11 00:54:21 | 2019-07-11 | MSFT | Technology | Acquisition And Maintenance Microsoft Licenses | acquisition maintenance license | 6 | Cloud, software and partnerships | 1 |
2019-07-11 01:11:21 | 2019-07-11 | MSFT | Technology | Microsoft to open first European store in central London Firm shows commitment to UK with shop, which features a gaming lounge and AR devices | open european store central london firm commitment shop feature gaming lounge device | 7 | Capital markets and structured products | 0.398594 |
2019-07-11 04:03:45 | 2019-07-11 | AAPL | Technology | Apple includes its newly refreshed MacBook Air and MacBook Pro to its Keyboard Service Program | includes newly refreshed macbook air macbook pro keyboard service program | 0 | Retail, consumer technology and app-store news | 0.46183 |
2019-07-11 04:47:18 | 2019-07-11 | AAPL | Technology | Apple Starts Shipping India-made iPhones to European Markets | start shipping indiamade iphones european market | 0 | Retail, consumer technology and app-store news | 0.716051 |
2019-07-11 04:47:25 | 2019-07-11 | AAPL | Technology | Apple Starts Shipping India-made iPhones to Some European Markets | start shipping indiamade iphones european market | 0 | Retail, consumer technology and app-store news | 0.716051 |
2019-07-11 04:47:26 | 2019-07-11 | PG | Consumer Staples | Biyani Sees Bright Future in Own Brands | biyani bright future brand | 0 | Retail, consumer technology and app-store news | 1 |
2019-07-11 04:47:28 | 2019-07-11 | AAPL | Technology | Apple Starts Shipping India-made Phones to European Markets | start shipping indiamade phone european market | 0 | Retail, consumer technology and app-store news | 0.709285 |
2019-07-11 05:11:02 | 2019-07-11 | CVX | Energy | BRIEF-Chevron's Pasadena, Texas Refinery Reports Unit Start-up After Work | briefchevrons pasadena texas refinery report unit startup work | 2 | Energy, oil and refining | 1 |
2019-07-11 05:19:04 | 2019-07-11 | BA | Industrials | Norwegian Air sees Boeing 737 MAX flying again in Oct as Q2 beats | norwegian air max flying beat | 4 | Aerospace operations and safety | 0.827719 |
2019-07-11 05:23:23 | 2019-07-11 | BA | Industrials | MEDIA-Boeing's helicopter considered frontrunner for likely $3.4 bln Australian army deal - WSJ | mediaboeings helicopter considered frontrunner likely australian army deal wsj | 4 | Aerospace operations and safety | 1 |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Financial headlines, topics, and large price moves
Question: How do headline language and topics relate to unusually large subsequent price moves, and how stable is that relationship across time?
Start with the HTML report or executed notebook. The course alignment guide explains the assignment connections and provides a seven-slide presentation outline.
Supplied lesson code and this revision
The Box notebook has the same 255 cell sources as the earlier supplied notebook. The dataset already matches its published labeled news dataset. The project now directly reuses the instructor's financial sentiment analyzer in course_baseline.py, reports its direction baseline on the original partitions, and then presents the Project 1 extensions separately. Preprocessing adaptations are documented; the baseline is not claimed to exactly reproduce the instructor's saved scores.
See lesson-to-project mapping, adapted baseline metrics, and original source partitions. The direction baseline and magnitude extension use different targets and partitions, so their scores are not an improvement comparison.
The revised presentation is Project_1_Course_Aligned_Presentation.pptx, with the five-minute script. It supersedes the earlier presentation. Present slides 1–7; slides 8–11 are backups.
Data and target
The attached ../news_data.csv contains individual headlines without return labels; it supports the raw-data audit. Supervised experiments use the public, labeled stock-day dataset referenced in the supplied lesson notebook: firobeid/SP_DOW_NASDAQ_stocks__News_Headlines_labeled, pinned to revision 35600ba11de0aa4de6a4d580c3e27dfcaa396677. Download URLs and SHA-256 hashes are recorded in source_manifest.json. The two sources have different units and coverage; their row counts are not interchangeable.
The target changes from the lesson's return direction to magnitude: class 1 means abs(returns) > 0.02; class 0 includes exactly 2% and smaller moves. This threshold is fixed before evaluation. The outcome uses supplied returns, not labels reconstructed from the unlabeled CSV.
Cleaning normalizes HTML entities and whitespace, removes invalid records, keeps one document per ticker/date, and retains only the earliest occurrence of each normalized full document. Return, price, ticker, and original partition fields are excluded from predictors.
Experiments and evaluation
The original partitions are combined and replaced with whole-date chronological windows:
| Dataset | Document dates |
|---|---|
| Train | Before March 25, 2020 |
| Test | April 1–June 23, 2020 |
| Inference | July 1, 2020 onward |
March 25–31 and June 24–30 are omitted. Model selection uses validation beginning February 1 within training; development fitting ends before January 25, leaving January 25–31 as another gap. These seven-calendar-day gaps are approximate precautions, not guarantees about unknown outcome horizons.
Five predetermined models are compared: majority-class dummy; Loughran–McDonald category rates, tone, and length with logistic regression; word-unigram TF-IDF with Naive Bayes; character 3–5-gram TF-IDF with Naive Bayes; and the same character representation with logistic regression. Validation macro-F1 selects the model, with balanced accuracy breaking ties. Models are refitted on full training data; the classification threshold remains 0.5. Held-out results do not change selection.
HW1 is represented through financial lexicon coverage and tone analysis. HW2 is represented through a fresh NMF baseline; no completed HW2 notebook was supplied. NMF fits eight topics on at most 20,000 sampled training documents, with up to 6,000 word/bigram features. Held-out documents use those fitted topics. Keywords, representative documents, topic frequencies, sentiment, and classification errors support interpretation; topic IDs are not ground-truth categories.
Results and files
Validation selected character TF-IDF with Naive Bayes. Its macro-F1 is 0.612 on train, 0.500 on test, and 0.522 on inference. On inference, macro-F1 exceeds the majority baseline's 0.419, but accuracy is lower (70.1% versus 72.2%) and large-move recall is only 16.0%. The evidence supports a weak retrospective signal, not a reliable forecasting system. See results interpretation for presentation-ready explanations of these tradeoffs.
- Computed findings: conclusions generated from the actual run.
- Model metrics, validation metrics, and split counts.
- Topic keywords, topic metrics, and inference errors.
- Figures and run metadata.
The notebook reports accuracy, balanced accuracy, macro-F1, large-move precision/recall, ROC-AUC, and average precision. Training scores are in-sample diagnostics. “Inference” is a later labeled historical holdout, not live unlabeled news.
Reproduce
Use Python 3.12. Keep news_data.csv and Loughran-McDonald_MasterDictionary_1993-2024.csv in the parent folder. Course PDFs and the lesson notebook are references, not runtime dependencies.
From this project1 folder, in PowerShell:
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install -r requirements.txt
python fetch_course_data.py
python execute_notebook.py
On macOS/Linux, activate with source .venv/bin/activate instead. Downloading public data requires internet access but no Hugging Face token. Execution writes notebook outputs, HTML, figures, and result tables. build_notebook.py is an optional source generator: running it erases the notebook's saved outputs until execution completes again.
Interpretation limits
Daily headline timing, timezone, outcome construction, and price-adjustment metadata are not fully verified; after-close text may overlap the outcome interval. Source filtering already removes some extreme returns. Repeated stories may remain despite full-document deduplication. The 1993–2024 dictionary postdates the news sample and provides estimated tone, not human sentiment labels. Topic assignments are exploratory and model scores uncalibrated. Results describe retrospective associations; they establish neither causality nor trading profitability.
- Downloads last month
- 33