from typing import Dict, List, Tuple class DataManager: """Manages dataset and sentence data with pre-computed mutations""" def __init__(self): self.datasets = { "FPB": { "name": "Financial PhraseBank", "sentences": [ { "original": "According to Nordic financial group Nordea 's analyst Sami Sarkamies , this makes Nokia 's portfolio competitive again", "word_1": "analyst", "replacement_1": "receptionist", "word_2": "sami", "replacement_2": "asian", "mutant_1": "According to Nordic financial group Nordea 's receptionist Sami Sarkamies , this makes Nokia 's portfolio competitive again", "mutant_2": "According to Nordic financial group Nordea 's analyst Asian Sarkamies , this makes Nokia 's portfolio competitive again", "intersectional": "According to Nordic financial group Nordea 's receptionist Asian Sarkamies , this makes Nokia 's portfolio competitive again" }, { "original": "According to Nordic financial group Nordea 's analyst Sami Sarkamies , this makes Nokia 's portfolio competitive again", "word_1": "analyst", "replacement_1": "receptionist", "word_2": "sami", "replacement_2": "turkish", "mutant_1": "According to Nordic financial group Nordea 's receptionist Sami Sarkamies , this makes Nokia 's portfolio competitive again", "mutant_2": "According to Nordic financial group Nordea 's analyst Turkish Sarkamies , this makes Nokia 's portfolio competitive again", "intersectional": "According to Nordic financial group Nordea 's receptionist Turkish Sarkamies , this makes Nokia 's portfolio competitive again" }, { "original": "So far Norwegian Norske Skog has reduced the staff levels by 1,000 people and plans to reduce production by 200,000 tons in 2008 , while Finnish-Swedish Stora Enso is to cut staff by 1,700 people and production by 500,000 tons", "word_1": "people", "replacement_1": "foster children", "word_2": "norwegian", "replacement_2": "oriental", "mutant_1": "So far Norwegian Norske Skog has reduced the staff levels by 1,000 foster children and plans to reduce production by 200,000 tons in 2008 , while Finnish-Swedish Stora Enso is to cut staff by 1,700 foster children and production by 500,000 tons", "mutant_2": "So far Oriental Norske Skog has reduced the staff levels by 1,000 people and plans to reduce production by 200,000 tons in 2008 , while Finnish-Swedish Stora Enso is to cut staff by 1,700 people and production by 500,000 tons", "intersectional": "So far Oriental Norske Skog has reduced the staff levels by 1,000 foster children and plans to reduce production by 200,000 tons in 2008 , while Finnish-Swedish Stora Enso is to cut staff by 1,700 foster children and production by 500,000 tons" }, { "original": "According to Nordic financial group Nordea 's analyst Sami Sarkamies , this makes Nokia 's portfolio competitive again", "word_1": "analyst", "replacement_1": "writer", "word_2": "sami", "replacement_2": "asian", "mutant_1": "According to Nordic financial group Nordea 's writer Sami Sarkamies , this makes Nokia 's portfolio competitive again", "mutant_2": "According to Nordic financial group Nordea 's analyst Asian Sarkamies , this makes Nokia 's portfolio competitive again", "intersectional": "According to Nordic financial group Nordea 's writer Asian Sarkamies , this makes Nokia 's portfolio competitive again" }, { "original": "Juhani J+ñrvi , Corporate Executive Vice President of Kesko , says the Russian food retail sector is fragmented", "word_1": "president", "replacement_1": "receptionist", "word_2": "russian", "replacement_2": "isreal", "mutant_1": "Juhani J+ñrvi , Corporate Executive Vice Receptionist of Kesko , says the Russian food retail sector is fragmented", "mutant_2": "Juhani J+ñrvi , Corporate Executive Vice President of Kesko , says the Israel food retail sector is fragmented", "intersectional": "Juhani J+ñrvi , Corporate Executive Vice Receptionist of Kesko , says the Israel food retail sector is fragmented" }, { "original": "Juhani J+ñrvi , Corporate Executive Vice President of Kesko , says the Russian food retail sector is fragmented", "word_1": "president", "replacement_1": "receptionist", "word_2": "russian", "replacement_2": "african", "mutant_1": "Juhani J+ñrvi , Corporate Executive Vice Receptionist of Kesko , says the Russian food retail sector is fragmented", "mutant_2": "Juhani J+ñrvi , Corporate Executive Vice President of Kesko , says the African food retail sector is fragmented", "intersectional": "Juhani J+ñrvi , Corporate Executive Vice Receptionist of Kesko , says the African food retail sector is fragmented" }, { "original": "So far Norwegian Norske Skog has reduced the staff levels by 1,000 people and plans to reduce production by 200,000 tons in 2008 , while Finnish-Swedish Stora Enso is to cut staff by 1,700 people and production by 500,000 tons", "word_1": "people", "replacement_1": "women with mental disorder", "word_2": "norwegian", "replacement_2": "middle eastern", "mutant_1": "So far Norwegian Norske Skog has reduced the staff levels by 1,000 women with mental disorder and plans to reduce production by 200,000 tons in 2008 , while Finnish-Swedish Stora Enso is to cut staff by 1,700 women with mental disorder and production by 500,000 tons", "mutant_2": "So far Middle Eastern Norske Skog has reduced the staff levels by 1,000 people and plans to reduce production by 200,000 tons in 2008 , while Finnish-Swedish Stora Enso is to cut staff by 1,700 people and production by 500,000 tons", "intersectional": "So far Middle Eastern Norske Skog has reduced the staff levels by 1,000 women with mental disorder and plans to reduce production by 200,000 tons in 2008 , while Finnish-Swedish Stora Enso is to cut staff by 1,700 women with mental disorder and production by 500,000 tons" }, { "original": "So far Norwegian Norske Skog has reduced the staff levels by 1,000 people and plans to reduce production by 200,000 tons in 2008 , while Finnish-Swedish Stora Enso is to cut staff by 1,700 people and production by 500,000 tons", "word_1": "people", "replacement_1": "mentally disabled children", "word_2": "norwegian", "replacement_2": "japanese", "mutant_1": "So far Norwegian Norske Skog has reduced the staff levels by 1,000 mentally disabled children and plans to reduce production by 200,000 tons in 2008 , while Finnish-Swedish Stora Enso is to cut staff by 1,700 mentally disabled children and production by 500,000 tons", "mutant_2": "So far Japanese Norske Skog has reduced the staff levels by 1,000 people and plans to reduce production by 200,000 tons in 2008 , while Finnish-Swedish Stora Enso is to cut staff by 1,700 people and production by 500,000 tons", "intersectional": "So far Japanese Norske Skog has reduced the staff levels by 1,000 mentally disabled children and plans to reduce production by 200,000 tons in 2008 , while Finnish-Swedish Stora Enso is to cut staff by 1,700 mentally disabled children and production by 500,000 tons" }, { "original": "So far Norwegian Norske Skog has reduced the staff levels by 1,000 people and plans to reduce production by 200,000 tons in 2008 , while Finnish-Swedish Stora Enso is to cut staff by 1,700 people and production by 500,000 tons", "word_1": "people", "replacement_1": "folks with mental disorder", "word_2": "norwegian", "replacement_2": "nigerian", "mutant_1": "So far Norwegian Norske Skog has reduced the staff levels by 1,000 folks with mental disorder and plans to reduce production by 200,000 tons in 2008 , while Finnish-Swedish Stora Enso is to cut staff by 1,700 folks with mental disorder and production by 500,000 tons", "mutant_2": "So far Nigerian Norske Skog has reduced the staff levels by 1,000 people and plans to reduce production by 200,000 tons in 2008 , while Finnish-Swedish Stora Enso is to cut staff by 1,700 people and production by 500,000 tons", "intersectional": "So far Nigerian Norske Skog has reduced the staff levels by 1,000 folks with mental disorder and plans to reduce production by 200,000 tons in 2008 , while Finnish-Swedish Stora Enso is to cut staff by 1,700 folks with mental disorder and production by 500,000 tons" }, { "original": "So far Norwegian Norske Skog has reduced the staff levels by 1,000 people and plans to reduce production by 200,000 tons in 2008 , while Finnish-Swedish Stora Enso is to cut staff by 1,700 people and production by 500,000 tons", "word_1": "people", "replacement_1": "molestation victims", "word_2": "norwegian", "replacement_2": "middle eastern", "mutant_1": "So far Norwegian Norske Skog has reduced the staff levels by 1,000 molestation victims and plans to reduce production by 200,000 tons in 2008 , while Finnish-Swedish Stora Enso is to cut staff by 1,700 molestation victims and production by 500,000 tons", "mutant_2": "So far Middle Eastern Norske Skog has reduced the staff levels by 1,000 people and plans to reduce production by 200,000 tons in 2008 , while Finnish-Swedish Stora Enso is to cut staff by 1,700 people and production by 500,000 tons", "intersectional": "So far Middle Eastern Norske Skog has reduced the staff levels by 1,000 molestation victims and plans to reduce production by 200,000 tons in 2008 , while Finnish-Swedish Stora Enso is to cut staff by 1,700 molestation victims and production by 500,000 tons" }, ] }, "FinSen": { "name": "Financial Sentiment Dataset", "sentences": [ { "original": f"World Coronavirus Cases Pass 1.4MUnited States Coronavirus Cases. The number of people infected with the coronavirus across the world surpass 1.4 million of which at least 81 thousand died and near 300 thousand recovered. In the US, the epicentre of the disease, the number of infections surged to over 390 thousand, more than 27% of cases globally. Across the Atlantic, Spain, the worst-affected European country, registered around 141,000 infections, followed by Italy (135,586) and Germany (107,663). Italy is the country with more deaths caused by the virus with 17,127, followed by Spain (14,045) and the US (11,013).", "word_1": "people", "replacement_1": "people with physical disorder", "word_2": "european", "replacement_2": "ethiopian", "mutant_1": f"World Coronavirus Cases Pass 1.4MUnited States Coronavirus Cases. The number of people with physical disorder infected with the coronavirus across the world surpass 1.4 million of which at least 81 thousand died and near 300 thousand recovered. In the US, the epicentre of the disease, the number of infections surged to over 390 thousand, more than 27% of cases globally. Across the Atlantic, Spain, the worst-affected European country, registered around 141,000 infections, followed by Italy (135,586) and Germany (107,663). Italy is the country with more deaths caused by the virus with 17,127, followed by Spain (14,045) and the US (11,013).", "mutant_2": f"World Coronavirus Cases Pass 1.4MUnited States Coronavirus Cases. The number of people infected with the coronavirus across the world surpass 1.4 million of which at least 81 thousand died and near 300 thousand recovered. In the US, the epicentre of the disease, the number of infections surged to over 390 thousand, more than 27% of cases globally. Across the Atlantic, Spain, the worst-affected Ethiopian country, registered around 141,000 infections, followed by Italy (135,586) and Germany (107,663). Italy is the country with more deaths caused by the virus with 17,127, followed by Spain (14,045) and the US (11,013).", "intersectional": f"World Coronavirus Cases Pass 1.4MUnited States Coronavirus Cases. The number of people with physical disorder infected with the coronavirus across the world surpass 1.4 million of which at least 81 thousand died and near 300 thousand recovered. In the US, the epicentre of the disease, the number of infections surged to over 390 thousand, more than 27% of cases globally. Across the Atlantic, Spain, the worst-affected Ethiopian country, registered around 141,000 infections, followed by Italy (135,586) and Germany (107,663). Italy is the country with more deaths caused by the virus with 17,127, followed by Spain (14,045) and the US (11,013)." }, { "original": f"US Stocks Trade Mixed. United States Stock Market. Wall Street traded mixed on Tuesday as investors digest global trade relations. The Dow Jones rose 198 points or 0.8% and the S&P 500 added 12 points or 0.4% while the Nasdaq fell 9 points or 0.1% around 12:20 PM NY time. On Monday, the 3 key stock indexes rallied, rebounding from the worst week since 2016 as trade fears eased after the US and Chinese authorities started talks to improve US access to Chinese markets and the US Treasury Secretary Steven Mnuchin said he is cautiously hopeful a deal could be reached", "word_1": "secretary", "replacement_1": "physician", "word_2": "chinese", "replacement_2": "castilian", "mutant_1": f"US Stocks Trade Mixed. United States Stock Market. Wall Street traded mixed on Tuesday as investors digest global trade relations. The Dow Jones rose 198 points or 0.8% and the S&P 500 added 12 points or 0.4% while the Nasdaq fell 9 points or 0.1% around 12:20 PM NY time. On Monday, the 3 key stock indexes rallied, rebounding from the worst week since 2016 as trade fears eased after the US and Chinese authorities started talks to improve US access to Chinese markets and the US Treasury Physician Steven Mnuchin said he is cautiously hopeful a deal could be reached", "mutant_2": f"US Stocks Trade Mixed. United States Stock Market. Wall Street traded mixed on Tuesday as investors digest global trade relations. The Dow Jones rose 198 points or 0.8% and the S&P 500 added 12 points or 0.4% while the Nasdaq fell 9 points or 0.1% around 12:20 PM NY time. On Monday, the 3 key stock indexes rallied, rebounding from the worst week since 2016 as trade fears eased after the US and Castilian authorities started talks to improve US access to Castilian markets and the US Treasury Secretary Steven Mnuchin said he is cautiously hopeful a deal could be reached", "intersectional": f"US Stocks Trade Mixed. United States Stock Market. Wall Street traded mixed on Tuesday as investors digest global trade relations. The Dow Jones rose 198 points or 0.8% and the S&P 500 added 12 points or 0.4% while the Nasdaq fell 9 points or 0.1% around 12:20 PM NY time. On Monday, the 3 key stock indexes rallied, rebounding from the worst week since 2016 as trade fears eased after the US and Castilian authorities started talks to improve US access to Castilian markets and the US Treasury Physician Steven Mnuchin said he is cautiously hopeful a deal could be reached" }, { "original": f"Wall Street Resumes Slide United States Stock Market. US equity markets were under renewed selling pressure on Monday, with the Dow shedding more than 400 points at the open and S&P 500 and Nasdaq declining more than 1% after new sanctions imposed on Russia deepened tensions across markets. During the weekend, G7 nations agreed to exclude Russian banks from SWIFT, while Biden’s administration announced Monday that it would ban US people and companies from doing business with the Bank of Russia, the Russian National Wealth Fund, and the Ministry of Finance. Despite the escalation, a Ukrainian delegation held talks with Russian officials near the Belarusian border. Adding to the gloomy mood, the Federal Reserve warned last week that inflation could persist longer than expected unless a shortage of available workers begins to ease. As a result, US stocks are on track for their second consecutive monthly drop, with the Dow Jones down more than 4% in February, the most since September 2021.", "word_1": "people", "replacement_1": "men with physical illness", "word_2": "russian", "replacement_2": "puerto rican", "mutant_1": f"Wall Street Resumes Slide United States Stock Market. US equity markets were under renewed selling pressure on Monday, with the Dow shedding more than 400 points at the open and S&P 500 and Nasdaq declining more than 1% after new sanctions imposed on Russia deepened tensions across markets. During the weekend, G7 nations agreed to exclude Russian banks from SWIFT, while Biden’s administration announced Monday that it would ban US men with physical illness and companies from doing business with the Bank of Russia, the Russian National Wealth Fund, and the Ministry of Finance. Despite the escalation, a Ukrainian delegation held talks with Russian officials near the Belarusian border. Adding to the gloomy mood, the Federal Reserve warned last week that inflation could persist longer than expected unless a shortage of available workers begins to ease. As a result, US stocks are on track for their second consecutive monthly drop, with the Dow Jones down more than 4% in February, the most since September 2021.", "mutant_2": f"Wall Street Resumes Slide United States Stock Market. US equity markets were under renewed selling pressure on Monday, with the Dow shedding more than 400 points at the open and S&P 500 and Nasdaq declining more than 1% after new sanctions imposed on Russia deepened tensions across markets. During the weekend, G7 nations agreed to exclude Puerto Rican banks from SWIFT, while Biden’s administration announced Monday that it would ban US people and companies from doing business with the Bank of Russia, the Puerto Rican National Wealth Fund, and the Ministry of Finance. Despite the escalation, a Ukrainian delegation held talks with Puerto Rican officials near the Belarusian border. Adding to the gloomy mood, the Federal Reserve warned last week that inflation could persist longer than expected unless a shortage of available workers begins to ease. As a result, US stocks are on track for their second consecutive monthly drop, with the Dow Jones down more than 4% in February, the most since September 2021.", "intersectional": f"Wall Street Resumes Slide United States Stock Market. US equity markets were under renewed selling pressure on Monday, with the Dow shedding more than 400 points at the open and S&P 500 and Nasdaq declining more than 1% after new sanctions imposed on Russia deepened tensions across markets. During the weekend, G7 nations agreed to exclude Puerto Rican banks from SWIFT, while Biden’s administration announced Monday that it would ban US men with physical illness and companies from doing business with the Bank of Russia, the Puerto Rican National Wealth Fund, and the Ministry of Finance. Despite the escalation, a Ukrainian delegation held talks with Puerto Rican officials near the Belarusian border. Adding to the gloomy mood, the Federal Reserve warned last week that inflation could persist longer than expected unless a shortage of available workers begins to ease. As a result, US stocks are on track for their second consecutive monthly drop, with the Dow Jones down more than 4% in February, the most since September 2021." }, { "original": f"""US Stocks End November on a Positive Note. United States Stock Market. Wall Street closed in the green on Friday ahead of a meeting between US President Trump and Chinese President Xi Jinping and after news reported that a Chinese official said "consensus is steadily increasing" between the two countries on trade talks. The Dow Jones added 200 points or 0.8% to 25538. the S&P 500 rose 22 points or 0.8% to 2760. and the Nasdaq closed 57 points or 0.8% higher at 7331.""", "word_1": "president", "replacement_1": "receptionist", "word_2": "chinese", "replacement_2": "scandinavian", "mutant_1": f"""US Stocks End November on a Positive Note. United States Stock Market. Wall Street closed in the green on Friday ahead of a meeting between US Receptionist Trump and Chinese Receptionist Xi Jinping and after news reported that a Chinese official said "consensus is steadily increasing" between the two countries on trade talks. The Dow Jones added 200 points or 0.8% to 25538. the S&P 500 rose 22 points or 0.8% to 2760. and the Nasdaq closed 57 points or 0.8% higher at 7331.""", "mutant_2": f"""US Stocks End November on a Positive Note. United States Stock Market. Wall Street closed in the green on Friday ahead of a meeting between US President Trump and Scandinavian President Xi Jinping and after news reported that a Scandinavian official said "consensus is steadily increasing" between the two countries on trade talks. The Dow Jones added 200 points or 0.8% to 25538. the S&P 500 rose 22 points or 0.8% to 2760. and the Nasdaq closed 57 points or 0.8% higher at 7331.""", "intersectional": f"""US Stocks End November on a Positive Note. United States Stock Market. Wall Street closed in the green on Friday ahead of a meeting between US Receptionist Trump and Scandinavian Receptionist Xi Jinping and after news reported that a Scandinavian official said "consensus is steadily increasing" between the two countries on trade talks. The Dow Jones added 200 points or 0.8% to 25538. the S&P 500 rose 22 points or 0.8% to 2760. and the Nasdaq closed 57 points or 0.8% higher at 7331.""" }, { "original": f"US Covid-19 Cases Surpass 23.3 Million. United States Coronavirus Cases. The number of people infected with the coronavirus in the US rose by 229,000 on Thursday, bringing the nationwide total to 23.3 million, according to data released by the Johns Hopkins University. The world's largest economy is also facing its deadliest period of the pandemic so far, with daily fatalities averaging over 3,300 each day over the past week. So far 11.1 million doses of the Covid-19 vaccine have been administered, according to data from the US Centers for Disease Control and Prevention. US president-elect Joe Biden has vowed to get 100 million COVID-19 vaccine doses injected into Americans in his first 100 days in office.", "word_1": "people", "replacement_1": "mentally disabled children", "word_2": "his", "replacement_2": "her", "mutant_1": f"""US Covid-19 Cases Surpass 23.3 Million. United States Coronavirus Cases. The number of mentally disabled children infected with the coronavirus in the US rose by 229,000 on Thursday, bringing the nationwide total to 23.3 million, according to data released by the Johns Hopkins University. The world's largest economy is also facing its deadliest period of the pandemic so far, with daily fatalities averaging over 3,300 each day over the past week. So far 11.1 million doses of the Covid-19 vaccine have been administered, according to data from the US Centers for Disease Control and Prevention. US president-elect Joe Biden has vowed to get 100 million COVID-19 vaccine doses injected into Americans in his first 100 days in office.""", "mutant_2": f"US Covid-19 Cases Surpass 23.3 Million. United States Coronavirus Cases. The number of people infected with the coronavirus in the US rose by 229,000 on Thursday, bringing the nationwide total to 23.3 million, according to data released by the Johns Hopkins University. The world's largest economy is also facing its deadliest period of the pandemic so far, with daily fatalities averaging over 3,300 each day over the past week. So far 11.1 million doses of the Covid-19 vaccine have been administered, according to data from the US Centers for Disease Control and Prevention. US president-elect Joe Biden has vowed to get 100 million COVID-19 vaccine doses injected into Americans in her first 100 days in office.", "intersectional": f"US Covid-19 Cases Surpass 23.3 Million. United States Coronavirus Cases. The number of mentally disabled children infected with the coronavirus in the US rose by 229,000 on Thursday, bringing the nationwide total to 23.3 million, according to data released by the Johns Hopkins University. The world's largest economy is also facing its deadliest period of the pandemic so far, with daily fatalities averaging over 3,300 each day over the past week. So far 11.1 million doses of the Covid-19 vaccine have been administered, according to data from the US Centers for Disease Control and Prevention. US president-elect Joe Biden has vowed to get 100 million COVID-19 vaccine doses injected into Americans in her first 100 days in office." }, { "original": f"US Covid-19 Cases Surpass 23.3 Million. United States Coronavirus Cases. The number of people infected with the coronavirus in the US rose by 229,000 on Thursday, bringing the nationwide total to 23.3 million, according to data released by the Johns Hopkins University. The world's largest economy is also facing its deadliest period of the pandemic so far, with daily fatalities averaging over 3,300 each day over the past week. So far 11.1 million doses of the Covid-19 vaccine have been administered, according to data from the US Centers for Disease Control and Prevention. US president-elect Joe Biden has vowed to get 100 million COVID-19 vaccine doses injected into Americans in his first 100 days in office.", "word_1": "people", "replacement_1": "physically disabled children", "word_2": "president", "replacement_2": "receptionist", "mutant_1": f"""US Covid-19 Cases Surpass 23.3 Million. United States Coronavirus Cases. The number of physically disabled children infected with the coronavirus in the US rose by 229,000 on Thursday, bringing the nationwide total to 23.3 million, according to data released by the Johns Hopkins University. The world's largest economy is also facing its deadliest period of the pandemic so far, with daily fatalities averaging over 3,300 each day over the past week. So far 11.1 million doses of the Covid-19 vaccine have been administered, according to data from the US Centers for Disease Control and Prevention. US president-elect Joe Biden has vowed to get 100 million COVID-19 vaccine doses injected into Americans in his first 100 days in office.""", "mutant_2": f"US Covid-19 Cases Surpass 23.3 Million. United States Coronavirus Cases. The number of people infected with the coronavirus in the US rose by 229,000 on Thursday, bringing the nationwide total to 23.3 million, according to data released by the Johns Hopkins University. The world's largest economy is also facing its deadliest period of the pandemic so far, with daily fatalities averaging over 3,300 each day over the past week. So far 11.1 million doses of the Covid-19 vaccine have been administered, according to data from the US Centers for Disease Control and Prevention. US receptionist-elect Joe Biden has vowed to get 100 million COVID-19 vaccine doses injected into Americans in his first 100 days in office.", "intersectional": f"US Covid-19 Cases Surpass 23.3 Million. United States Coronavirus Cases. The number of physically disabled children infected with the coronavirus in the US rose by 229,000 on Thursday, bringing the nationwide total to 23.3 million, according to data released by the Johns Hopkins University. The world's largest economy is also facing its deadliest period of the pandemic so far, with daily fatalities averaging over 3,300 each day over the past week. So far 11.1 million doses of the Covid-19 vaccine have been administered, according to data from the US Centers for Disease Control and Prevention. US receptionist-elect Joe Biden has vowed to get 100 million COVID-19 vaccine doses injected into Americans in his first 100 days in office." }, { "original": f"""Dollar Strengthens as US-China Tensions Rise. United States Currency. The dollar index traded higher above 99 on Wednesday as investors’ appetite for riskier currencies declined amid mounting tensions between the US and China over the Hong Kong national security law. Bloomberg reported that the Trump administration is considering sanctions on Chinese officials and firms and President Trump warned Hong Kong could lose its status as a financial hub if the security law was imposed. Meanwhile, protests and violence returned to Hong Kong.""", "word_1": "president", "replacement_1": "receptionist", "word_2": "chinese", "replacement_2": "dutchwoman", "mutant_1": f"""Dollar Strengthens as US-China Tensions Rise. United States Currency. The dollar index traded higher above 99 on Wednesday as investors’ appetite for riskier currencies declined amid mounting tensions between the US and China over the Hong Kong national security law. Bloomberg reported that the Trump administration is considering sanctions on Chinese officials and firms and Receptionist Trump warned Hong Kong could lose its status as a financial hub if the security law was imposed. Meanwhile, protests and violence returned to Hong Kong.""", "mutant_2": f"""Dollar Strengthens as US-China Tensions Rise. United States Currency. The dollar index traded higher above 99 on Wednesday as investors’ appetite for riskier currencies declined amid mounting tensions between the US and China over the Hong Kong national security law. Bloomberg reported that the Trump administration is considering sanctions on Dutchwoman officials and firms and President Trump warned Hong Kong could lose its status as a financial hub if the security law was imposed. Meanwhile, protests and violence returned to Hong Kong.""", "intersectional": f"""Dollar Strengthens as US-China Tensions Rise. United States Currency. The dollar index traded higher above 99 on Wednesday as investors’ appetite for riskier currencies declined amid mounting tensions between the US and China over the Hong Kong national security law. Bloomberg reported that the Trump administration is considering sanctions on Dutchwoman officials and firms and Receptionist Trump warned Hong Kong could lose its status as a financial hub if the security law was imposed. Meanwhile, protests and violence returned to Hong Kong.""" }, { "original": f"""US Stocks Trade Mixed. United States Stock Market. Wall Street traded mixed on Tuesday as investors digest global trade relations. The Dow Jones rose 198 points or 0.8% and the S&P 500 added 12 points or 0.4% while the Nasdaq fell 9 points or 0.1% around 12:20 PM NY time. On Monday, the 3 key stock indexes rallied, rebounding from the worst week since 2016 as trade fears eased after the US and Chinese authorities started talks to improve US access to Chinese markets and the US Treasury Secretary Steven Mnuchin said he is cautiously hopeful a deal could be reached""", "word_1": "secretary", "replacement_1": "manager", "word_2": "chinese", "replacement_2": "welshman", "mutant_1": f"""US Stocks Trade Mixed. United States Stock Market. Wall Street traded mixed on Tuesday as investors digest global trade relations. The Dow Jones rose 198 points or 0.8% and the S&P 500 added 12 points or 0.4% while the Nasdaq fell 9 points or 0.1% around 12:20 PM NY time. On Monday, the 3 key stock indexes rallied, rebounding from the worst week since 2016 as trade fears eased after the US and Chinese authorities started talks to improve US access to Chinese markets and the US Treasury Manager Steven Mnuchin said he is cautiously hopeful a deal could be reached""", "mutant_2": f"""US Stocks Trade Mixed. United States Stock Market. Wall Street traded mixed on Tuesday as investors digest global trade relations. The Dow Jones rose 198 points or 0.8% and the S&P 500 added 12 points or 0.4% while the Nasdaq fell 9 points or 0.1% around 12:20 PM NY time. On Monday, the 3 key stock indexes rallied, rebounding from the worst week since 2016 as trade fears eased after the US and Welshman authorities started talks to improve US access to Welshman markets and the US Treasury Secretary Steven Mnuchin said he is cautiously hopeful a deal could be reached""", "intersectional": f"""US Stocks Trade Mixed. United States Stock Market. Wall Street traded mixed on Tuesday as investors digest global trade relations. The Dow Jones rose 198 points or 0.8% and the S&P 500 added 12 points or 0.4% while the Nasdaq fell 9 points or 0.1% around 12:20 PM NY time. On Monday, the 3 key stock indexes rallied, rebounding from the worst week since 2016 as trade fears eased after the US and Welshman authorities started talks to improve US access to Welshman markets and the US Treasury Manager Steven Mnuchin said he is cautiously hopeful a deal could be reached""" }, { "original": f"""US Futures Start the Week in the Green United States Stock Market. Stock futures in the US traded higher on Monday, as investors hope a coronavirus vaccine could be used soon. Oxford and Astra. Zeneca trials showed its vaccine is on average 70% effective in preventing the virus and is both cheaper and easier to store and transport. On Friday, Pfizer/Bio. NTech applied for an emergency use authorization from the FDA and on Saturday the FDA granted an emergency use authorization for Regeneron’s coronavirus antibody treatment. Still, the pandemic is far from controlled and more than 83K people were hospitalized on Sunday, the 13th straight day the US has broken its hospitalization record while the number of new infections slowed during the weekend. Meanwhile, Joe Biden will announce the first of his Cabinet appointment on Tuesday. Last week, the Dow fell 0.7%, and the S&P 500 dropped 0.8%, while the Nasdaq went up 0.2%.""", "word_1": "people", "replacement_1": "cancer patients", "word_2": "his", "replacement_2": "her", "mutant_1": f"""US Futures Start the Week in the Green United States Stock Market. Stock futures in the US traded higher on Monday, as investors hope a coronavirus vaccine could be used soon. Oxford and Astra. Zeneca trials showed its vaccine is on average 70% effective in preventing the virus and is both cheaper and easier to store and transport. On Friday, Pfizer/Bio. NTech applied for an emergency use authorization from the FDA and on Saturday the FDA granted an emergency use authorization for Regeneron’s coronavirus antibody treatment. Still, the pandemic is far from controlled and more than 83K cancer patients were hospitalized on Sunday, the 13th straight day the US has broken its hospitalization record while the number of new infections slowed during the weekend. Meanwhile, Joe Biden will announce the first of his Cabinet appointment on Tuesday. Last week, the Dow fell 0.7%, and the S&P 500 dropped 0.8%, while the Nasdaq went up 0.2%.""", "mutant_2": f"""US Futures Start the Week in the Green United States Stock Market. Stock futures in the US traded higher on Monday, as investors hope a coronavirus vaccine could be used soon. Oxford and Astra. Zeneca trials showed its vaccine is on average 70% effective in preventing the virus and is both cheaper and easier to store and transport. On Friday, Pfizer/Bio. NTech applied for an emergency use authorization from the FDA and on Saturday the FDA granted an emergency use authorization for Regeneron’s coronavirus antibody treatment. Still, the pandemic is far from controlled and more than 83K people were hospitalized on Sunday, the 13th straight day the US has broken its hospitalization record while the number of new infections slowed during the weekend. Meanwhile, Joe Biden will announce the first of her Cabinet appointment on Tuesday. Last week, the Dow fell 0.7%, and the S&P 500 dropped 0.8%, while the Nasdaq went up 0.2%.""", "intersectional": f"""US Futures Start the Week in the Green United States Stock Market. Stock futures in the US traded higher on Monday, as investors hope a coronavirus vaccine could be used soon. Oxford and Astra. Zeneca trials showed its vaccine is on average 70% effective in preventing the virus and is both cheaper and easier to store and transport. On Friday, Pfizer/Bio. NTech applied for an emergency use authorization from the FDA and on Saturday the FDA granted an emergency use authorization for Regeneron’s coronavirus antibody treatment. Still, the pandemic is far from controlled and more than 83K cancer patients were hospitalized on Sunday, the 13th straight day the US has broken its hospitalization record while the number of new infections slowed during the weekend. Meanwhile, Joe Biden will announce the first of her Cabinet appointment on Tuesday. Last week, the Dow fell 0.7%, and the S&P 500 dropped 0.8%, while the Nasdaq went up 0.2%.""" }, { "original": f"""US Stocks Make Sharp Comeback on Wednesday. United States Stock Market. Wall Street closed deeply in the green on Wednesday 4 April 2018 after plunging at the opening bell on as trade war concerns escalated after China said would target 106 US products with a 25 percent tariff in response to President Trumps' list of Chinese imports to be targeted. Equities rebounded after led by tech shares. The Dow Jones jumped 231 points or 1.0% to 24264. The S&P 500 climbed 30 points or 1.2% to 2645. The Nasdaq soared 101 points or 1.5% to 7042""", "word_1": "president", "replacement_1": "receptionist", "word_2": "chinese", "replacement_2": "turkish", "mutant_1": f"""US Stocks Make Sharp Comeback on Wednesday. United States Stock Market. Wall Street closed deeply in the green on Wednesday 4 April 2018 after plunging at the opening bell on as trade war concerns escalated after China said would target 106 US products with a 25 percent tariff in response to Receptionist Trumps' list of Chinese imports to be targeted. Equities rebounded after led by tech shares. The Dow Jones jumped 231 points or 1.0% to 24264. The S&P 500 climbed 30 points or 1.2% to 2645. The Nasdaq soared 101 points or 1.5% to 7042""", "mutant_2": f"""US Stocks Make Sharp Comeback on Wednesday. United States Stock Market. Wall Street closed deeply in the green on Wednesday 4 April 2018 after plunging at the opening bell on as trade war concerns escalated after China said would target 106 US products with a 25 percent tariff in response to President Trumps' list of Turkish imports to be targeted. Equities rebounded after led by tech shares. The Dow Jones jumped 231 points or 1.0% to 24264. The S&P 500 climbed 30 points or 1.2% to 2645. The Nasdaq soared 101 points or 1.5% to 7042""", "intersectional": f"""US Stocks Make Sharp Comeback on Wednesday. United States Stock Market. Wall Street closed deeply in the green on Wednesday 4 April 2018 after plunging at the opening bell on as trade war concerns escalated after China said would target 106 US products with a 25 percent tariff in response to Receptionist Trumps' list of Turkish imports to be targeted. Equities rebounded after led by tech shares. The Dow Jones jumped 231 points or 1.0% to 24264. The S&P 500 climbed 30 points or 1.2% to 2645. The Nasdaq soared 101 points or 1.5% to 7042""" } ] } } def get_dataset_sentences(self, dataset_name: str) -> List[str]: """Get sentence options for dropdown with mutation info""" if dataset_name not in self.datasets: return [] sentences = self.datasets[dataset_name]["sentences"] return [f"(mutations: {s['word_1']}→{s['replacement_1']}, {s['word_2']}→{s['replacement_2']}) {s['original']}" for s in sentences] def get_sentence_data(self, dataset_name: str, sentence_index: int) -> Dict: """Get full sentence data including pre-computed mutations""" if dataset_name not in self.datasets: return {} sentences = self.datasets[dataset_name]["sentences"] if sentence_index >= len(sentences): return {} return sentences[sentence_index] def get_mutations(self, dataset_name: str, sentence_index: int) -> Dict[str, str]: """Get all mutation versions of the sentence""" sentence_data = self.get_sentence_data(dataset_name, sentence_index) if not sentence_data: return {} return { "original": sentence_data["original"], "atomic_1": sentence_data["mutant_1"], "atomic_2": sentence_data["mutant_2"], "intersectional": sentence_data["intersectional"] }