From 6f9a71d4d7b8d5d6218d50797cf6bd152022ef69 Mon Sep 17 00:00:00 2001 From: Jessica Garson Date: Fri, 6 Sep 2024 12:03:45 -0400 Subject: [PATCH] adding notebook (#325) * adding notebook * adding example output --- .../k_query_output.txt | 10 + .../query_output.txt | 4 + .../translate_and_vector_database.ipynb | 995 ++++++++++++++++++ 3 files changed, 1009 insertions(+) create mode 100644 supporting-blog-content/unlocking-multilingual-insights/outputs-from-search-labs-post/k_query_output.txt create mode 100644 supporting-blog-content/unlocking-multilingual-insights/outputs-from-search-labs-post/query_output.txt create mode 100644 supporting-blog-content/unlocking-multilingual-insights/translate_and_vector_database.ipynb diff --git a/supporting-blog-content/unlocking-multilingual-insights/outputs-from-search-labs-post/k_query_output.txt b/supporting-blog-content/unlocking-multilingual-insights/outputs-from-search-labs-post/k_query_output.txt new file mode 100644 index 00000000..a200fe6e --- /dev/null +++ b/supporting-blog-content/unlocking-multilingual-insights/outputs-from-search-labs-post/k_query_output.txt @@ -0,0 +1,10 @@ +[Document(page_content='Day 6 (Thursday): Cloudy in the Pyrenees, with partly cloudy conditions in other areas clearing up later. Precipitation is not ruled out in northern Huesca. Minimum temperatures will mostly remain unchanged; maximum temperatures will rise in Zaragoza and northeast Teruel, with no significant changes elsewhere. West winds light to moderate, shifting to moderate southeast winds.\nIf President Pedro Sánchez does not recognize interim president Juan Guaidó after the 8-day ultimatum given to Nicolás Maduro to call for elections, it could jeopardize Spanish investments in Venezuela that total more than 41 billion euros. Spain is the primary foreign investor in Venezuela, and both the capital of its most emblematic companies and the properties of Spanish residents could be lost if Maduro remains in power, similar to what happened with the Cuban revolution, where Spaniards could not recover their investments. Venezuelan financial economists Rosana Sosa García and Boris Ackerman published a report this Monday on the local digital portal La Patilla, warning of the dangers to Spanish investments in Venezuela if Pedro Sánchez does not recognize the newly proclaimed interim president of the country. The non-recognition of Guaidó as "interim president" of Venezuela represents "a potential danger" for Spain and the European Union as a whole. The analysts reminded that the recent inclusion of the Venezuelan crisis on the agenda of the United Nations Security Council gave the issue global significance. They pointed out that any commercial or financial transactions involving state assets or other operations with Maduro and his regime lack legitimacy from the time of interim president Guaidó\'s swearing-in on January 23.\n\nRosa Sosa, who resides in Spain, stated that Guaidó\'s swearing-in was "dismissed at first by the Spanish government led by Sánchez but was not ignored by significant countries like England." She cited the example of the Bank of England, which legally rejected the repatriation of 1.2 billion dollars in gold requested by Maduro, who has been usurping the presidency since January 10. The Spanish Ministry of Commerce estimates that there are about a hundred companies established in Venezuela, such as BBVA, Repsol, Acciona, and others, representing direct Spanish investments amounting to 21.313 billion euros by the end of 2015. Economist Sosa notes that the socialist government of Pedro Sánchez "is jeopardizing the heritage of companies that generate direct jobs inside and outside of Spain." It similarly endangers the assets of Spaniards (individuals) who have investments in Venezuela, not only due to the decrease in their value but also due to the paralysis caused by the legal vacuum in which everyone is currently immersed.\n\n"The biggest losers in the catastrophe facing Venezuela are not the IBEX companies; it\'s the ordinary citizens, and the assessment of these losses becomes more necessary," Sosa affirms. Spanish residents and their descendants in Venezuela have suffered enormous property losses that surpass the decline in investments of large companies. If the Spanish population in Venezuela is estimated at over 415,000 inhabitants and the average personal wealth is calculated at 50,000 euros, including real estate and homes, "the loss would therefore exceed 20 billion euros, coinciding with the decline in the value of large companies\' investments." This loss is reflected in the devaluation of their homes and real estate, and the complete depreciation of productive assets, the report adds.'), + Document(page_content='The current situation in Venezuela presents "a completely impoverished population living in dire conditions, without medicine, without food, and perhaps with the worst public services in the Western world. Spaniards residing or owning properties in Venezuela are not exempt from this situation; in fact, they are one of the populations most affected by the crisis." The transition to democracy will be the only path for hundreds of thousands of Spaniards to recover their assets in Venezuela.\nThe longest lunar eclipse in a hundred years is a wonderful phenomenon that can be seen with the naked eye throughout Spain. The Moon rises in the sky tinged with vivid reddish and orange hues, which is why it is called the "Blood Moon" or "Fire Moon," as it passes through the shadow cast by the planet Earth. To witness the eclipse, simply look up at the sky and find the Moon. The lunar eclipse will last for more than three hours, during which the Moon will be at least partially covered by Earth\'s shadow. However, the most spectacular phase, the total phase, when the Moon is completely tinted red, will extend for one hour and almost 43 minutes, a record time that will not be surpassed this century. Generally, this can be observed in Spain starting from 9:00 PM at the earliest, although it is recommended to start watching from 10:00 PM, when the Moon will be visible in the sky. Until 11:00 PM, the Moon will appear reddened, and from that moment on, it will begin to emerge from the shadow zone and its disc will gradually regain its whitish brightness. Around midnight, the entire lunar disc will have its usual color. Interestingly, if the Moon appears red and not darker, it is due to a phenomenon known as Rayleigh scattering, by which the Earth\'s atmosphere scatters light and filters out blue and violet colors. Those who cannot enjoy the night sky today can follow it live from Namibia through the "Sky-live.tv" channel. Those who can go outside and want to enjoy the eclipse more deeply have a golden opportunity in Madrid. Starting at 10:00 PM, the Madrid Planetarium and La Caixa Foundation, in collaboration with the Madrid Astronomical Association (AAM), will offer a public observation session with telescopes on the planetarium\'s esplanade, with free access.'), + Document(page_content='The shortage of funds is not the only problem humanitarian agencies face. Damascus has decided to deny visas to UN and NGO workers operating in the country, Ging confirmed on Monday. "We have pending visas for numerous international workers from Western countries —such as the United States, Canada, the United Kingdom, France, and one or two more countries— who are being denied visas because of their nationalities," explained the UN official. "This is something to which we strongly oppose, and we are working with the Syrian government to resolve it," he added.\n\nGing also warned of a possible food crisis in the country. Two UN agencies, the World Food Programme and the FAO —the Food and Agriculture Organization of the United Nations—, have estimated that the country\'s wheat harvest would decrease by 700,000 tons this year. Syria consumes between four and five million tons of wheat per year and has had to import grain for over six years to meet the needs of its citizens. "We must be prepared to address this," declared Ging. In June, the United Nations provided food rations to 500,000 people and hopes to increase this number to 850,000 this month.\nThe session has been anything but calm. It promised to be so in the morning. And not just calm, but also positive. The Spanish selective index even surpassed the 10,500-point level. This was likely helped by the Bank of Spain\'s announcement that Spain\'s GDP grew by 0.4% in the first quarter. Additionally, there was a debt auction conducted by the Treasury. Over three years, it sold 1,348 million euros with an average return of 1.022%, below the previous 1.331%. Over five years, it issued 1,570 million euros with an average return of 1.663%, below the previous 1.869%. Over ten years, it sold 2.6 billion euros with a return of 3.059%, lower than the previous 3.291%. However, it began to falter after twelve-thirty, which is when it dropped below 10,500 points. The decline continued especially after three in the afternoon when the indicator started drifting, eventually falling below 10,400 points and marking a daily low under 10,350 points. The cause of the declines: Ukraine. The Ukrainian government\'s activity against pro-Russians has reactivated, and meanwhile, the Russian government responded by announcing new maneuvers. From that minimum level, the indicator began a recovery, ending the day at 10,462 points, a revaluation of 0.36%. In the end, what was supposed to be a calm and positive session turned into a quite volatile day. The Spanish selective index performed worse than Italy\'s Ftse Mib and France’s Cac 40, which gained 0.66% and 0.64% respectively, but better than Germany\'s Dax, which only rose by 0.05%. This occurred despite Germany publishing the Ifo index, which measures confidence in the German economy. It rose from 110.7 to 111.2 points, when experts expected it to settle at 110.5 points. Additionally, it increased due to better expectations: in that chapter, the indicator rose from 106.4 to 107.3 points, compared to the 105.8 points that analysts expected. In the evaluation of the current situation, it rose from 115.2 to 115.3 points, when experts expected it to be 115.7 points. Only one index ended in the red: Lisbon\'s PSI-20, which fell by 0.11%. \n\nBoost from the United States\nThe final recovery in Europe had to do with the behavior of the American stock market. There, indices, especially the Nasdaq, which gained around one percentage point, were celebrating the good results from Facebook and Apple and were moving upwards. Among the economic indicators of the day in the United States, the durable goods orders data was very good: they rose by 2.6% in March, above the 2% that analysts expected and higher than the 2.1% growth the previous month. Orders for durable goods excluding transportation rose by 2%, above the 0.6% that analysts expected. Excluding defense, they rose by 1.8%, below the 3% estimated by analysts. More durable goods orders indicate a boost to industrial production. The weekly unemployment data was somewhat worse, rising by 329,000 people, above the 310,000 expected by analysts. Additionally, the Kansas Fed\'s activity index fell from 22 to 12 points.'), + Document(page_content='In the Spanish selective index, Sabadell led the gains with a revaluation of 2.78%. IAG followed, advancing by 1.64%. Técnicas Reunidas, FCC, and BBVA also advanced more than one percentage point. Among the major stocks, Santander and Telefónica also stood out, rising by 0.74% and 0.62% respectively. Inditex and Iberdrola rose around 0.35%. On the other hand, Gamesa was the worst performer, dropping by 2.12%. Following it were CaixaBank, Dia, Sacyr, Bankinter, and Jazztel, which fell by more than one percentage point. Bankia and Popular’s losses were close to 1%. In the Madrid General Stock Index, Amper led the gains with a revaluation of 5.26%. Following it was Codere, which also gained more than 5%. Barón de Ley and Liberbank gained more than three percentage points. In red, the worst performer was Inypsa, with a decline of 9.09%.\n\nSale of practically all bonds\nIn the debt market, the yield of all bonds rose. This means that yesterday, investors sold debt to buy stocks. The yield on the Spanish bond rose from 3.05% to 3.08%. The yield on the Italian bond rose from 3.09% to 3.12%. The yield on the German bond rose from 1.52% to 1.53%. With this behavior, Spain\'s risk premium barely increased from 153 to 155 basis points. Italy\'s risk premium rose from 157 to 159 basis points. In the currency market, the exchange rate between the euro and the dollar ended the day at 1.3824 units. In the commodities market, the Brent barrel rose by 1% to 110 dollars, while West Texas advanced by 0.48% to nearly 102 dollars. The price of gold advanced by 0.30% due to new tensions arising in Ukraine, but it ended the day still below 1,300 dollars, at 1,288 dollars per ounce. \n\nMarket Information\n- Live quotes of the Ibex\n- Continuous market\n- International markets.\nThere are at least 15 kilometers between the parish of the Central University of Venezuela (UCV) and the Eastern Cemetery in Caracas, where the march will take place on foot this Wednesday to transfer the body of councilman Fernando Albán, who was allegedly "murdered" and thrown from the 10th floor of the Sebin tower, the political police, according to opposition parties’ denunciations. The funeral march was called to begin at 11 am, local time, from the university parish to the Eastern Cemetery of La Guairita. The burial has become an act of protest and unity for the opposition to express the anger felt by the people of Caracas over the death of councilman Albán.\n\nFernando Albán, 56, was a councilman for the Libertador municipality of Caracas representing the Primero Justicia party. He was known for being a devout Catholic, which contradicts the official version that he committed suicide after being detained at the Simón Bolívar airport on October 5 when he was returning from the United Nations in New York where he was presenting complaints about the systematic human rights violations in Venezuela. No one has believed the official version that Albán committed suicide from the 10th floor of the Sebin tower, located in Plaza Venezuela, also known as "The Tomb," where political prisoners are tortured.\n\nThe National Assembly held a plenary session on Tuesday in his memory, condemning the politician’s murder. During the parliamentary event, Deputy Juan Miguel Matheus denounced that Fernando Albán was tortured on Sunday night. "On Sunday night they tortured him, and they tortured him in three ways: mechanical asphyxiation with a bag over his face, submersion in a barrel of water, trying to drown him, and with electricity. And in that, he lost his life, in that he died."\n\nFormer governor of Miranda state, Henrique Capriles Radonski, during the funeral services for councilman Fernando Albán at the National Assembly (AN), assured that from his party Primero Justicia (PJ) "we do not buy the story that Fernando Albán would be capable of taking his own life." Capriles Radonski asserted that the worst thing that could happen to Venezuela is for hatred to reign in the country and for something to be constructed on top of that hatred. "If there is a weapon of mass destruction, it is hatred in a situation like this where we are overwhelmed; if there is something we can say at this moment, it is that we want justice and for a transparent investigation to be conducted," he affirmed. He indicated that Venezuela is living on the edge. "What do we want in Venezuela, to kill each other, where the Government paves the way for this country to end in a civil war. Is that the destiny of Venezuela? I wouldn’t want us to be, every day the government contributes to the ground so that things cannot be solved in the way the majority wants, which is a peaceful solution," he said, indicating that he does not believe Albán thought of taking his own life since he was a man of faith and principles.'), + Document(page_content='The Huelva defense barely conceded any chances, and just when it seemed the score would not change, the winning goal for Recreativo arrived. Levante committed a lateral foul, which Álvaro Antón turned dangerous by delivering it to Ruymán\'s head for the definitive 1-0 in the 90th minute.\n\nLine-up:\n1 - Recreativo: Rubén; Araujo, Álvaro Vega, Menosse, Ruymán; Jesús Vázquez, Jorge Larena (Jorge Merino, m. 86), Álvaro Antón; Gallegos (Naranjo, m. 88), Ezequiel, and Arana (Joselu, m. 76).\n0 - Levante UD: Keylor Navas, Pedro López, Vyntra, Juanfran, Nikos; Camarasa, Simao Mate, Xumetra (David Barral, m. 65), Sergio Pinto (Diop, m. 88), El Zhar (Pedro Ríos, m. 55), and Nong.\n\nGoals: 1-0, m. 90: Ruymán.\n\nReferee: González González (Castilian-Leonese Committee). He booked Ezequiel and Merino for the hosts and Simao and Nong for the visitors. \n\nIncidents: Match corresponding to the Copa del Rey Round of 32, played at Nuevo Colombino in front of 1,068 spectators.\nThe State Meteorological Agency (Aemet) has activated a yellow alert for low temperatures for the early hours and mornings of Sunday and Monday in the Zaragozan Iberian System, the mountains of Albarracín and Jiloca in Teruel, and the central and southern areas of Huesca. According to the Meteorological Organization, the alert will be active between 2:00 AM and 10:00 AM on Sunday in the Iberian System and the mountains of Teruel, with temperatures reaching -4 and -6 degrees, respectively. This situation will repeat during the same time frame on the following Monday, with temperatures of -6 degrees in the Iberian System and the Mountains of Teruel, and -4 degrees in the central and southern areas of the province of Huesca.\nMADRID.- The alleged fixer of the Púnica corruption network, Alejandro De Pedro, carried out "reputation work" on social media for the former mayor of Madrid, Ana Botella (PP), which he obtained thanks to the mediation of former Labor Minister Eduardo Zaplana and former Mayor of Cartagena, José Antonio Alonso Conesa (PSOE). This is stated in a report by the Civil Guard, which is part of the \'Púnica case\' summary, revealing that the WhatsApp communications intercepted during the procedure show evidence of "the creation of reports on Ana Botella\'s presence on the internet." De Pedro\'s company, Madiva, was also responsible for "creating digital newspapers" in the Community of Madrid and the City\'s Council, some related to the city\'s districts, as well as "possible Google positioning."\n\nInvestigators suspect that the documents seized from the leaders of the Púnica corruption network reveal "a possible commercial relationship" between Madiva and the media agency Irismedia, which could have acted as the payer for these online reputation services. The report, prepared by the Central Operational Unit (UCO) of the Civil Guard on May 27, 2014, confirms that De Pedro carried out "reputation work on the network for authorities and elected officials, which created a debt in his favor," paid via "irregular procedures." These included "direct payments or invoicing through third-party companies awarded public contracts, including the cost of these reputation works in public contracts intended for other purposes," or direct benefits to De Pedro in "subsequent public contracting processes."\n\nSpecifically, De Pedro worked for the Community of Madrid, the Provincial Councils of León and Alicante, and the city councils of Valencia, Castellón de la Plana, Majadahonda and Coslada (Madrid), Gandía (Valencia), Denia, Benissa, and Villajoyosa (Alicante), and Cartagena (Murcia). In Madrid\'s case, the Civil Guard reports that De Pedro started working for the PP of Madrid in 2010 and 2011, "possibly through Francisco Granados," then the organization\'s Secretary-General. This allowed him to offer his services to "different city councils in the Community of Madrid as a result of the 2011 elections, continuing in some until the operation\'s exploitation date," in October 2014.'), + Document(page_content='He was pursuing this ambition until he joined the Spanish-speaking pro-independence platform Súmate in 2013. Within two years, he rose from anonymity to the National Secretariat of the Catalan National Assembly and — reportedly with the blessing of Oriol Junqueras — headed the list for Barcelona of the Republican Left of Catalonia (Esquerra Republicana de Catalunya) in the December 20 elections. \n\nHis decade of experience as a recruiter seemed to give him the serious demeanor, languid tone, and gentlemanly posture that marked his debut in the Parliament — a style that didn\'t go unnoticed. His speech was described variously as "tabloid" and "low-cost sentimentalism," and marked his entry into the political star system as the deputy spokesperson for ERC in Congress.\n\n"Toni Comín recently called me a \'bullfighter.\' That\'s pretty accurate. I\'ve had many people over time tell me, \'When you\'re up there, try to speak for all of us.\' That\'s what I humbly try to do, and it\'s an honor. There’s no vanity or personal agenda. Tardà is generous, tremendously humane. He doesn’t know envy. He’s great. A star. I have to clarify this almost every time in interviews: I didn’t say \'I’m a charnego\'; I said, \'I\'m what you call charnego,\' which is a term used by the more reactionary unionists. Just search it on Twitter to see that it\'s used by people like Hermman Tertsch or Urdazi. That was my point, and that\'s why Ciudadanos got so upset. They know well that those calling us \'charnegos\' — and that’s putting it mildly — are the platforms supporting them.\n\nPedro Sánchez is a kind of Zapatero who leans to the right of Zapatero. In our meeting with him, we told him, \'Pedro, it would be great, especially for your PSC colleagues, if you referred to Catalonia as a nation.\' He refused. That places him on the right. Maybe that\'s why he\'s so comfortable with the pact with this new right-wing party, Ciudadanos. It\'s disappointing, but anyone who buys into the centrist or reformist discourse of Ciudadanos is mistaken. Just look at the records of the Parliament over the past nine years. C\'s is not the new democratic party they pretend to be. It’s the National Front. It’s a party that stands to the right of the PP on many issues.\n\nIt\'s part of normalcy in a democracy that such meetings occur. What’s surprising is that a meeting between two people who are many things should be news. The abnormality lies in the last four years, where no one has been talking to anyone. In the whirlwind of Madrid, you’re somewhat removed from the day-to-day of Catalan politics. I don\'t know if he knew or not. What I do know for sure is that the relationship between Puigdemont and Junqueras is tremendously good. That’s indisputable.\n\nI have no idea. If they did, I’m convinced Junqueras would convey what we’ve been saying from the start: we will not support those who call us coup plotters, as Rodríguez Ibarra recently called Joan Tardà, simply because we voted for something they don\'t like. We will never support those who deny the full sovereignty of the people of Catalonia. It’s a science fiction scenario. If Pedro Sánchez were to strike a deal with Podemos, calls from Susana Díaz, Felipe González, or Ms. Botín would be immediate. They would remind him that the party for order, the IBEX 35’s party, and the correct path is with Ciudadanos. It seems impossible, though it would be great for the PSOE to return to its left-wing roots.\n\nWe think it\'s positive for everyone to talk with everyone. What’s surprising is that Pablo Iglesias thinks that 27 MPs — those of Catalonia Sí que es Pot and the PSC in Parliament — should decide the future of Catalonia, when Junts pel Sí and the CUP have a parliamentary majority of 72 seats. It’s surprising that Iglesias tries to sell this narrative. The solution has been provided by the people with an absolute pro-independence majority, which is the only way forward.\n\nI was referring to the letter Minister Montoro sent to Junqueras; a crude letter with a veiled threat: Cut more, make your people suffer even more. We are very used to the Spanish State Government using institutions, even judicial halls, against the vote of the people. We know the Constitutional Court very well, presided over by a PP member. And we know Montoro perfectly well. It would be better if instead of sending threatening letters to the autonomous communities, the government stopped bailing out their banker friends, which has cost 100 billion euros. If Montoro\'s friends governed Catalonia, certain things would not have happened. For example, Catalonia would not have paid 1900 million euros in interest for something called FLA, which is outrageous and indecent, as it exploits public taxes for profit. I’m also convinced that the Constitutional Court would not act against the popular mandate if others were in power. Whether liked or not, even non-independentists would agree that the government uses institutions against Catalan institutions.'), + Document(page_content='The show incorporated diverse musical influences, including reggae and rap with Junior, who added verses to a playful and irreverent version of "Mala" unlike the original. Sanz finally danced during "No es lo mismo," fulfilling his promise, and introduced the international musicians in his band from countries like the United States, Cameroon, the Dominican Republic, Spain, and Great Britain. "Thank you, Madrid! Whether it’s at Las Ventas or here, we don\'t change. This place makes you happy, and I’m not referring to the city as an institution but to the people living here," Sanz acknowledged.\n\nThe final part of the concert featured Sanz at the piano, performing a pasodoble by Cádiz composer Juan Carlos Aragón, and "Tú no tienes la culpa," another track from his latest album. The climax came with the appearance of Dani Martín, lead singer of El Canto del Loco, who joined Sanz for "Tu letra podré acariciar," one of Sanz\'s older songs. Sanz concluded with "A la primera persona," dedicating the song to the more than 15,000 fans who visited the paradise he created in Madrid.\nThe Local Police of Valencia have arrested a 30-year-old man for allegedly banging on his ex-partner\'s door and insulting her at four in the morning. The incident took place in the early hours of this Sunday in the Benimaclet neighborhood. The 092 emergency number received a report that a man was banging on a door, the municipal security force stated in a communiqué. The woman informed the officers that her ex-partner had been harassing her for several months and that on that day, he had come to her residence to try to enter and insult her. A neighbor corroborated her version, after which the officers verified that the door showed signs of damage. The alleged perpetrator was located and arrested that same night at his home before being taken to the Central Guard Inspection. The operation involved officers from the Coexistence and Safety Unit (UCOS).\nAluminum and iron are two of the most abundant elements on the surface of our planet. They are also the basic materials used to make cans, an almost immortal container whose essential properties do not deteriorate no matter how many times it is recycled, according to the Spanish Metal Packaging Association. They are also tough nuts to crack for nature: depending on their composition and thickness, a can may take more than 100 years to degrade outdoors. For this reason, they are used massively to protect almost anything: liquids, food, cleaning products, chemicals, paints, and even tennis balls.\n\nWHAT YOU NEED: A can. A candle. Pencil and punch. Wire. Pliers. Spray paint. Each Spaniard threw away an average of 13.2 kilos of plastic, cartons, and cans into the yellow container in 2016, according to data from Ecoembes. Metal containers reached a recovery rate of 84.8%, almost two points higher than the previous year. Before this container goes into the bin and from there begins its journey towards a new circulation, you can extend its useful life a little more. Here we show you how to carry out your own recycling and transform a can into four new objects.\nApproximately 112,000 Syrian refugees have registered at United Nations offices in Lebanon, Turkey, Jordan, and Iraq, according to Panos Moumtzis, the regional coordinator of UNHCR —the UN Refugee Agency. In the past three months, humanitarian agencies in these countries have recorded an average of more than 500 Syrian refugees per day. 75% of them are women and children, and the UN estimates that the number might reach 185,000 by the end of the year. The actual number of refugees is likely higher, as many fear registering with the UN, concerned it might compromise their chances of returning to Syria. The majority of them "are entirely dependent on humanitarian aid to survive," Moumtzis states. \n\nThe United Nations has managed to partially implement its humanitarian aid plan in Syria, but the daily deterioration of the situation means the needs of the population cannot be met, the international organization warned today. "People who two months ago were coping with an emergency situation can no longer manage now, and as the insecurity does not cease but increases, the needs grow exponentially," declared John Ging, the Director of Operations of the Office for the Coordination of Humanitarian Affairs, during a press conference in Geneva.\n\nThe UN estimates $193 million —157.4 million euros— in essential funds to assist the refugees, and $189 million —154.1 million euros— in necessary aid for the 1.5 million Syrians who need humanitarian assistance within the country. The agency has only 20% of that amount.'), + Document(page_content='Capriles called for the opposition’s unity amid the tragedy. "We honestly need unity; I believe that in the face of the tragedy our country is experiencing, the internal differences we might have are secondary," he stated.\nEl Deportivo has reported that the Provincial Court of Valencia has upheld the appeal filed by the club from Coruña and has allowed it to participate in the ongoing case regarding the alleged fixing of the match between 99cx3 and Zaragoza during the 2010-11 season, in which the blanquiazules (white and blues) were relegated due to the result of that match. The Galician team explains that after the Court of Instruction in Valencia did not admit the club’s involvement in the criminal procedure, the appeal prepared by the Garrigues law firm has been successful and it "will allow [the club] to defend its rights and interests" in the case. Deportivo believes that "there are sufficient elements that make the club from Coruña the main aggrieved party by the events under scrutiny." The result of the match between 99cx3 and Zaragoza and Deportivo\'s defeat at Riazor against Valencia (0-2) on the last day of the 2010-11 season, led the blanquiazules to be relegated to the Segunda División that year. Deportivo would have stayed in the top tier that season if Zaragoza had not beaten (1-2) Levante in the Ciudad de Valencia.\nThe State Meteorological Agency (Aemet) announces for today, Sunday, in Aragón a mostly clear or clear sky with some afternoon cloud development in mountainous areas. Temperatures will see little change except for increases in the Iberian System. Variable light winds with a predominance of southeast winds, with moderate intervals in the afternoon in the eastern Ebro Valley. Temperatures in the provincial capitals will range between a low of 17 degrees and a high of 34 degrees in Huesca, 10 and 32 in Teruel, and 17 and 35 in Zaragoza. \n\nForecast for the upcoming days: The State Meteorological Agency (Aemet) announces for tomorrow, Monday, in Aragón partly cloudy skies, with cloudy development in the Pyrenees. Minimum temperatures will rise in Huesca and Teruel; maximum temperatures will remain largely unchanged. Variable light winds with moderate east component intervals in the afternoon in the eastern Ebro Valley. Temperatures in the provincial capitals will range between a low of 18 degrees and a high of 31 degrees in Huesca, 12 and 33 in Teruel, and 18 and 34 in Zaragoza.\n\nDay 4 (Tuesday): Partly cloudy or clear skies increasing to partly cloudy in the afternoon. In the northwest and other parts of the Pyrenees, afternoon precipitation is likely, generally light. Minimum temperatures will see little variation; maximum temperatures will rise in the eastern part of Huesca, the Zaragoza Riverbank, and northeast Teruel. No changes in other areas. Variable light winds shifting to moderate southwest winds in the Iberian System and light to moderate southeast winds in other areas.\n\nDay 5 (Wednesday): Partly cloudy skies becoming mostly clear. Rain in the northern third, which could possibly extend to other areas with low probability, tapering off by the end of the day. Temperatures will drop; maximum temperatures significantly so, especially in western Zaragoza where they may fall notably. Variable light winds at first, shifting to light to moderate west winds in the central hours and moderate northwest winds by the end of the day.'), + Document(page_content='Spicer was responding to a message circulated among U.S. diplomats worldwide, which, according to some media outlets, has received more than 100 signatures before being sent to the State Department\'s so-called "dissent channel." This channel has been in place since the Vietnam War (1955-1975) to allow employees to express their disagreement with senior U.S. diplomatic officials without fear of retaliation, and documents filed there must receive an official response within 30 to 60 days.\n\nIn the message, diplomats expressed their opposition to the part of the executive order signed by Trump on Friday that bans citizens from Libya, Sudan, Somalia, Syria, Iraq, Yemen, and Iran from entering the country for 90 days. "This ban, which can only be lifted under conditions that countries will find difficult or impossible to meet, will not achieve its stated goal of protecting the American people from terrorist attacks by foreign nationals entering the United States," the document\'s signatories warned. "Moreover, this policy contravenes important American values like non-discrimination, fair play, and welcoming foreign visitors and immigrants," they added.\n\nActing State Department spokesman Mark Toner said today he was "aware" of that message and defended the need for agency employees to be able to register their disagreement with certain policies within the "dissent channel." "This is an important process that the acting Secretary of State (Thomas Shannon) and the State Department as a whole value and respect. It allows employees to express their differing views on a policy candidly and privately to the agency\'s leaders," Toner said in a statement.\n\nThe signatories of the document, which was published by several media outlets, warned that the ban will "immediately sour relations" with the seven affected countries and much of the Muslim world, which sees the prohibition as religion-motivated. "By alienating them, we lose access to the intelligence and resources we need to address the root causes of terrorism abroad before an attack occurs in our country," the diplomats argued, also expressing concern about a rise in "anti-American sentiment" globally. They also warned that the requirement imposed on countries to lift the ban—ensuring that each individual applying for a visa is who they claim to be and not a threat—is too "vague and nebulous" for those governments to be able or willing to comply.\nÁlvaro Cunqueiro, \'a Houdini of literature\'. / Archive. "Cunqueiro was a sort of Houdini who, through literature, sought to escape, like his character Fanto Fantini, from a world he didn\'t like, to other fantastic beings born from his frenzied and fruitful pen." This is how writer, journalist, and former Minister of Culture César Antonio Molina introduces his fellow countryman, as the prologue writer of the book \'Álvaro Cunqueiro. Of Saints and Miracles\'. This new installment in the Fundamental Work collection of the Fundación Banco Santander showcases over a hundred forgotten texts by the unique and great Galician narrator, brought to light by Galician philologist and professor Xosé Antonio López Silva. Among them are seven entirely secular and unpublished stories not included in any book or anthology, which Cunqueiro \'snuck\' into a Catholic magazine under the pseudonym Álvaro Labrada. The book offers a journey through the texts and hagiographic portrayals of a prolific and protean Álvaro Cunqueiro (Mondoñedo, 1911-Vigo, 1981). \n\nThe seven unpublished stories, with exotic settings, sometimes Chinese, sometimes Indian, were discovered in 2011 by the volume\'s anthologist, López Silva, who is committed to "recapturing the value of a writer with an inimitable style" and providing an overview of a theme "so relevant, distinctive, and enormously functional in Cunqueiro\'s work, which is hagiography." The stories, which went unnoticed by critics despite being crucial in Cunqueiro\'s trajectory, were written between 1945 and 1946, after the Franco regime stripped him of his journalist credentials in 1944. Xosé Antonio López Silva found them while analyzing other hagiographic texts. These saints, for the Lucense writer, were "magicians like Merlin," as César Antonio Molina explains in the prologue. "Cunqueiro uses the saints for his own inventions, without relying in the slightest on the official history of the Church and its truth," assures the former minister. "They are saints that the Catholic Church couldn\'t teach in its schools and seminaries, created by someone who isn\'t heretical but who commits marvelous excesses," Molina specifies.'), + Document(page_content="No, we are stronger than ever. During the three months of negotiations for the Catalan government, we were called everything under the sun, and now they're back at it. There's a notable cover from El Periódico from that time headlined: 'At the Edge of the Precipice.' The other day it read: 'The Great Hope' with a photo of Sánchez and Iglesias. Back then, we were negotiating between political formations even more distant than those negotiating in the Spanish state now. CDC and the CUP have nothing in common. And it was done. The important thing is not to win against each other but to win a country. We must remember there’s an absolute parliamentary majority. And just like in other European countries, we must accept that deals are made, not minimal ones, but those reaching the last minute or with nuances. We must get used to it. I wish this happened in the Spanish Parliament where relatively distant political formations could agree for a goal that transcends them.\n\nWe have agreed on 18 months. But we always say the same: we are facing the biggest political challenge in southern Europe in a long time. We are starting a self-determination process — no more, no less — that requires time, patience, generosity… If it’s 18 months, fine, if it’s 20, also fine. What's clear is that we will do it.\n\nThe bitter controversy, as someone published the other day, was started by him. He dedicated an article to me — 'The Rufián Case' — portraying me almost as a Frankenstein. The irony is that exclusionary Spanish nationalists call exclusionary Catalan nationalists left-wing independents, like me. If you don’t like certain languages being spoken, certain symbols being reclaimed, or certain identities being voted on, you end up being the exclusionary nationalist. People like Mr. Pérez-Reverte are very upset because they don’t understand that people here vote differently, that the PP is a residual party, and that the PSOE is taking the same path. It is confusing, but it’s called democracy. If they insult us… that's on them. It reflects what Ciudadanos is. Félix de Azúa is one of their founders, a totem of C's. His comments, more than being misogynistic or right-wing, are classist. He doesn’t understand or like that people like Ada Colau, who has been a great civil and social rights activist, reach political institutions. They don’t like people like me either, with all humility. I studied Labor Relations and a master’s in Human Resources Management. For 10 years, I was the guy sitting on the other side of the table during job interviews. It’s true that I unloaded inflatable fair trucks and worked as a clerk for a while. But like many other people, I worked to pay for my studies. No, I’m not a 'compi-yogui,' nor do I share that fraternity with Panama.\nThe ordinance against street prostitution is back in the spotlight in Valencia. The Socialist spokesperson for the municipal group, Joan Calabuig, offered this morning at a public appearance to renegotiate with the PP (People’s Party) the regulation aimed at curbing this activity, which has been highly criticized in neighborhoods such as Velluters and La Punta. Calabuig stressed that the municipal groups must respond to the complaints from residents, which have increased this summer in the city center. To this end, he asked the City Council to study how the ordinance has worked in other cities, in addition to the draft approved by the Federation of Municipalities and Provinces a year ago. However, Calabuig emphasized, in response to questions from Z28v6, that the sanctions should be primarily directed at the clients and not the prostitutes, who are often victims of the mafias running this business. Moreover, he advocated for offering social solutions involving professionals, as well as urban improvements in these neighborhoods. During the last term, the ordinance was on the verge of being approved but was shelved due to a lack of consensus between the PP and the PSPV (the Socialist Party of the Valencian Community). In the Community, municipalities such as Alicante have been operating under it for some time.\nFrom Kafka's metamorphosis to the carnivorous ants in comic books, and including Kurt Neumann's *The Fly* (1958) and its depressing sequel by David Cronenberg (1986), which was more disgusting than scary, narrators of novels and films have been obsessed with insects for over a century. Insects are not only strikingly ugly but also tend to move in swarms, hordes, or plagues to torment the human species. This is a form of large-scale racism because insects are not hominids, primates, tetrapods, nor even deuterostomes; they are merely vulgar arthropods and hexapods. Their bad reputation, however, is largely due to a solid scientific reason: they bite and transmit serious diseases such as malaria, which infects 200 million people each year and kills, roughly speaking, about 400,000 children under five years old.")] \ No newline at end of file diff --git a/supporting-blog-content/unlocking-multilingual-insights/outputs-from-search-labs-post/query_output.txt b/supporting-blog-content/unlocking-multilingual-insights/outputs-from-search-labs-post/query_output.txt new file mode 100644 index 00000000..07948518 --- /dev/null +++ b/supporting-blog-content/unlocking-multilingual-insights/outputs-from-search-labs-post/query_output.txt @@ -0,0 +1,4 @@ +[Document(page_content='Day 6 (Thursday): Cloudy in the Pyrenees, with partly cloudy conditions in other areas clearing up later. Precipitation is not ruled out in northern Huesca. Minimum temperatures will mostly remain unchanged; maximum temperatures will rise in Zaragoza and northeast Teruel, with no significant changes elsewhere. West winds light to moderate, shifting to moderate southeast winds.\nIf President Pedro Sánchez does not recognize interim president Juan Guaidó after the 8-day ultimatum given to Nicolás Maduro to call for elections, it could jeopardize Spanish investments in Venezuela that total more than 41 billion euros. Spain is the primary foreign investor in Venezuela, and both the capital of its most emblematic companies and the properties of Spanish residents could be lost if Maduro remains in power, similar to what happened with the Cuban revolution, where Spaniards could not recover their investments. Venezuelan financial economists Rosana Sosa García and Boris Ackerman published a report this Monday on the local digital portal La Patilla, warning of the dangers to Spanish investments in Venezuela if Pedro Sánchez does not recognize the newly proclaimed interim president of the country. The non-recognition of Guaidó as "interim president" of Venezuela represents "a potential danger" for Spain and the European Union as a whole. The analysts reminded that the recent inclusion of the Venezuelan crisis on the agenda of the United Nations Security Council gave the issue global significance. They pointed out that any commercial or financial transactions involving state assets or other operations with Maduro and his regime lack legitimacy from the time of interim president Guaidó\'s swearing-in on January 23.\n\nRosa Sosa, who resides in Spain, stated that Guaidó\'s swearing-in was "dismissed at first by the Spanish government led by Sánchez but was not ignored by significant countries like England." She cited the example of the Bank of England, which legally rejected the repatriation of 1.2 billion dollars in gold requested by Maduro, who has been usurping the presidency since January 10. The Spanish Ministry of Commerce estimates that there are about a hundred companies established in Venezuela, such as BBVA, Repsol, Acciona, and others, representing direct Spanish investments amounting to 21.313 billion euros by the end of 2015. Economist Sosa notes that the socialist government of Pedro Sánchez "is jeopardizing the heritage of companies that generate direct jobs inside and outside of Spain." It similarly endangers the assets of Spaniards (individuals) who have investments in Venezuela, not only due to the decrease in their value but also due to the paralysis caused by the legal vacuum in which everyone is currently immersed.\n\n"The biggest losers in the catastrophe facing Venezuela are not the IBEX companies; it\'s the ordinary citizens, and the assessment of these losses becomes more necessary," Sosa affirms. Spanish residents and their descendants in Venezuela have suffered enormous property losses that surpass the decline in investments of large companies. If the Spanish population in Venezuela is estimated at over 415,000 inhabitants and the average personal wealth is calculated at 50,000 euros, including real estate and homes, "the loss would therefore exceed 20 billion euros, coinciding with the decline in the value of large companies\' investments." This loss is reflected in the devaluation of their homes and real estate, and the complete depreciation of productive assets, the report adds.'), + Document(page_content='The current situation in Venezuela presents "a completely impoverished population living in dire conditions, without medicine, without food, and perhaps with the worst public services in the Western world. Spaniards residing or owning properties in Venezuela are not exempt from this situation; in fact, they are one of the populations most affected by the crisis." The transition to democracy will be the only path for hundreds of thousands of Spaniards to recover their assets in Venezuela.\nThe longest lunar eclipse in a hundred years is a wonderful phenomenon that can be seen with the naked eye throughout Spain. The Moon rises in the sky tinged with vivid reddish and orange hues, which is why it is called the "Blood Moon" or "Fire Moon," as it passes through the shadow cast by the planet Earth. To witness the eclipse, simply look up at the sky and find the Moon. The lunar eclipse will last for more than three hours, during which the Moon will be at least partially covered by Earth\'s shadow. However, the most spectacular phase, the total phase, when the Moon is completely tinted red, will extend for one hour and almost 43 minutes, a record time that will not be surpassed this century. Generally, this can be observed in Spain starting from 9:00 PM at the earliest, although it is recommended to start watching from 10:00 PM, when the Moon will be visible in the sky. Until 11:00 PM, the Moon will appear reddened, and from that moment on, it will begin to emerge from the shadow zone and its disc will gradually regain its whitish brightness. Around midnight, the entire lunar disc will have its usual color. Interestingly, if the Moon appears red and not darker, it is due to a phenomenon known as Rayleigh scattering, by which the Earth\'s atmosphere scatters light and filters out blue and violet colors. Those who cannot enjoy the night sky today can follow it live from Namibia through the "Sky-live.tv" channel. Those who can go outside and want to enjoy the eclipse more deeply have a golden opportunity in Madrid. Starting at 10:00 PM, the Madrid Planetarium and La Caixa Foundation, in collaboration with the Madrid Astronomical Association (AAM), will offer a public observation session with telescopes on the planetarium\'s esplanade, with free access.'), + Document(page_content='The shortage of funds is not the only problem humanitarian agencies face. Damascus has decided to deny visas to UN and NGO workers operating in the country, Ging confirmed on Monday. "We have pending visas for numerous international workers from Western countries —such as the United States, Canada, the United Kingdom, France, and one or two more countries— who are being denied visas because of their nationalities," explained the UN official. "This is something to which we strongly oppose, and we are working with the Syrian government to resolve it," he added.\n\nGing also warned of a possible food crisis in the country. Two UN agencies, the World Food Programme and the FAO —the Food and Agriculture Organization of the United Nations—, have estimated that the country\'s wheat harvest would decrease by 700,000 tons this year. Syria consumes between four and five million tons of wheat per year and has had to import grain for over six years to meet the needs of its citizens. "We must be prepared to address this," declared Ging. In June, the United Nations provided food rations to 500,000 people and hopes to increase this number to 850,000 this month.\nThe session has been anything but calm. It promised to be so in the morning. And not just calm, but also positive. The Spanish selective index even surpassed the 10,500-point level. This was likely helped by the Bank of Spain\'s announcement that Spain\'s GDP grew by 0.4% in the first quarter. Additionally, there was a debt auction conducted by the Treasury. Over three years, it sold 1,348 million euros with an average return of 1.022%, below the previous 1.331%. Over five years, it issued 1,570 million euros with an average return of 1.663%, below the previous 1.869%. Over ten years, it sold 2.6 billion euros with a return of 3.059%, lower than the previous 3.291%. However, it began to falter after twelve-thirty, which is when it dropped below 10,500 points. The decline continued especially after three in the afternoon when the indicator started drifting, eventually falling below 10,400 points and marking a daily low under 10,350 points. The cause of the declines: Ukraine. The Ukrainian government\'s activity against pro-Russians has reactivated, and meanwhile, the Russian government responded by announcing new maneuvers. From that minimum level, the indicator began a recovery, ending the day at 10,462 points, a revaluation of 0.36%. In the end, what was supposed to be a calm and positive session turned into a quite volatile day. The Spanish selective index performed worse than Italy\'s Ftse Mib and France’s Cac 40, which gained 0.66% and 0.64% respectively, but better than Germany\'s Dax, which only rose by 0.05%. This occurred despite Germany publishing the Ifo index, which measures confidence in the German economy. It rose from 110.7 to 111.2 points, when experts expected it to settle at 110.5 points. Additionally, it increased due to better expectations: in that chapter, the indicator rose from 106.4 to 107.3 points, compared to the 105.8 points that analysts expected. In the evaluation of the current situation, it rose from 115.2 to 115.3 points, when experts expected it to be 115.7 points. Only one index ended in the red: Lisbon\'s PSI-20, which fell by 0.11%. \n\nBoost from the United States\nThe final recovery in Europe had to do with the behavior of the American stock market. There, indices, especially the Nasdaq, which gained around one percentage point, were celebrating the good results from Facebook and Apple and were moving upwards. Among the economic indicators of the day in the United States, the durable goods orders data was very good: they rose by 2.6% in March, above the 2% that analysts expected and higher than the 2.1% growth the previous month. Orders for durable goods excluding transportation rose by 2%, above the 0.6% that analysts expected. Excluding defense, they rose by 1.8%, below the 3% estimated by analysts. More durable goods orders indicate a boost to industrial production. The weekly unemployment data was somewhat worse, rising by 329,000 people, above the 310,000 expected by analysts. Additionally, the Kansas Fed\'s activity index fell from 22 to 12 points.'), + Document(page_content='In the Spanish selective index, Sabadell led the gains with a revaluation of 2.78%. IAG followed, advancing by 1.64%. Técnicas Reunidas, FCC, and BBVA also advanced more than one percentage point. Among the major stocks, Santander and Telefónica also stood out, rising by 0.74% and 0.62% respectively. Inditex and Iberdrola rose around 0.35%. On the other hand, Gamesa was the worst performer, dropping by 2.12%. Following it were CaixaBank, Dia, Sacyr, Bankinter, and Jazztel, which fell by more than one percentage point. Bankia and Popular’s losses were close to 1%. In the Madrid General Stock Index, Amper led the gains with a revaluation of 5.26%. Following it was Codere, which also gained more than 5%. Barón de Ley and Liberbank gained more than three percentage points. In red, the worst performer was Inypsa, with a decline of 9.09%.\n\nSale of practically all bonds\nIn the debt market, the yield of all bonds rose. This means that yesterday, investors sold debt to buy stocks. The yield on the Spanish bond rose from 3.05% to 3.08%. The yield on the Italian bond rose from 3.09% to 3.12%. The yield on the German bond rose from 1.52% to 1.53%. With this behavior, Spain\'s risk premium barely increased from 153 to 155 basis points. Italy\'s risk premium rose from 157 to 159 basis points. In the currency market, the exchange rate between the euro and the dollar ended the day at 1.3824 units. In the commodities market, the Brent barrel rose by 1% to 110 dollars, while West Texas advanced by 0.48% to nearly 102 dollars. The price of gold advanced by 0.30% due to new tensions arising in Ukraine, but it ended the day still below 1,300 dollars, at 1,288 dollars per ounce. \n\nMarket Information\n- Live quotes of the Ibex\n- Continuous market\n- International markets.\nThere are at least 15 kilometers between the parish of the Central University of Venezuela (UCV) and the Eastern Cemetery in Caracas, where the march will take place on foot this Wednesday to transfer the body of councilman Fernando Albán, who was allegedly "murdered" and thrown from the 10th floor of the Sebin tower, the political police, according to opposition parties’ denunciations. The funeral march was called to begin at 11 am, local time, from the university parish to the Eastern Cemetery of La Guairita. The burial has become an act of protest and unity for the opposition to express the anger felt by the people of Caracas over the death of councilman Albán.\n\nFernando Albán, 56, was a councilman for the Libertador municipality of Caracas representing the Primero Justicia party. He was known for being a devout Catholic, which contradicts the official version that he committed suicide after being detained at the Simón Bolívar airport on October 5 when he was returning from the United Nations in New York where he was presenting complaints about the systematic human rights violations in Venezuela. No one has believed the official version that Albán committed suicide from the 10th floor of the Sebin tower, located in Plaza Venezuela, also known as "The Tomb," where political prisoners are tortured.\n\nThe National Assembly held a plenary session on Tuesday in his memory, condemning the politician’s murder. During the parliamentary event, Deputy Juan Miguel Matheus denounced that Fernando Albán was tortured on Sunday night. "On Sunday night they tortured him, and they tortured him in three ways: mechanical asphyxiation with a bag over his face, submersion in a barrel of water, trying to drown him, and with electricity. And in that, he lost his life, in that he died."\n\nFormer governor of Miranda state, Henrique Capriles Radonski, during the funeral services for councilman Fernando Albán at the National Assembly (AN), assured that from his party Primero Justicia (PJ) "we do not buy the story that Fernando Albán would be capable of taking his own life." Capriles Radonski asserted that the worst thing that could happen to Venezuela is for hatred to reign in the country and for something to be constructed on top of that hatred. "If there is a weapon of mass destruction, it is hatred in a situation like this where we are overwhelmed; if there is something we can say at this moment, it is that we want justice and for a transparent investigation to be conducted," he affirmed. He indicated that Venezuela is living on the edge. "What do we want in Venezuela, to kill each other, where the Government paves the way for this country to end in a civil war. Is that the destiny of Venezuela? I wouldn’t want us to be, every day the government contributes to the ground so that things cannot be solved in the way the majority wants, which is a peaceful solution," he said, indicating that he does not believe Albán thought of taking his own life since he was a man of faith and principles.')] \ No newline at end of file diff --git a/supporting-blog-content/unlocking-multilingual-insights/translate_and_vector_database.ipynb b/supporting-blog-content/unlocking-multilingual-insights/translate_and_vector_database.ipynb new file mode 100644 index 00000000..44de6e4c --- /dev/null +++ b/supporting-blog-content/unlocking-multilingual-insights/translate_and_vector_database.ipynb @@ -0,0 +1,995 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "id": "dc1f4b2d-f44d-48be-849d-c7b4e261719d", + "metadata": {}, + "outputs": [], + "source": [ + "import pandas as pd\n", + "import asyncio\n", + "from langchain_core.documents import Document\n", + "import openai\n", + "import nest_asyncio\n", + "from langchain.text_splitter import CharacterTextSplitter" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "567ff4e7-94c5-4124-87c6-d546fe6da787", + "metadata": {}, + "outputs": [], + "source": [ + "from langchain_elasticsearch import ElasticsearchStore\n", + "from langchain_openai import OpenAIEmbeddings\n", + "import elasticsearch\n", + "import getpass\n", + "from functools import partial\n", + "from datasets import load_dataset" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "6105b2da-0fa9-4b98-a70a-682ad73b5497", + "metadata": {}, + "outputs": [], + "source": [ + "nest_asyncio.apply()" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "4609d5d8-d5dd-4937-b125-6962f740c772", + "metadata": {}, + "outputs": [], + "source": [ + "ds = load_dataset(\"ELiRF/dacsa\", \"spanish\", token=True)" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "id": "8d7e7583-b35a-4792-a530-5de64af1c548", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "DatasetDict({\n", + " train: Dataset({\n", + " features: ['id', 'summary', 'article'],\n", + " num_rows: 1802919\n", + " })\n", + " validation: Dataset({\n", + " features: ['id', 'summary', 'article'],\n", + " num_rows: 104052\n", + " })\n", + " test.i: Dataset({\n", + " features: ['id', 'summary', 'article'],\n", + " num_rows: 104052\n", + " })\n", + " test.ni: Dataset({\n", + " features: ['id', 'summary', 'article'],\n", + " num_rows: 109626\n", + " })\n", + "})" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "ds" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "2069765a-3d29-47a1-86f0-0c91ffb23a7f", + "metadata": {}, + "outputs": [], + "source": [ + "def parse_data(ds):\n", + " df = ds[\"train\"].to_pandas()\n", + " return df.sample(n=25)" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "db9e7eac-b9ca-44d0-af03-369ffdfc8b17", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
idsummaryarticle
7782011a6d7e2a3a46ccb0134763068b9cc694ed5efb72243f95...Uno de los cuatro asaltantes al templo metodis...Ocho personas han muerto y otras 44 han result...
1441437990b015fee4b21d566abd9913877c2e59b157064ec1654...Más de 100.000 personas cumplen los criterios ...El borrador del plan nacional contra la hepati...
13306219d7400d837c79f953f61094c73ffa99cf2e81fcab6a6d2...En una serie de tuits, el creador de Tesla aug...Elon Musk, el padre del Hyperloop, de los coch...
1439086d5787b89b15b08e4c9b32b24f204a8c5b4143ab5c18c...El líder de Podemos afirma que se nota otra re...Pablo Iglesias, líder de Podemos, ha emplazado...
334827e9ac2ce03b1a81039aadae9c8d4f9b6fc68174746294e4...Tom MacMaster, estadounidense de 40 años, escr...Tom MacMaster, el estadounidense de 40 años qu...
\n", + "
" + ], + "text/plain": [ + " id \\\n", + "778201 1a6d7e2a3a46ccb0134763068b9cc694ed5efb72243f95... \n", + "1441437 990b015fee4b21d566abd9913877c2e59b157064ec1654... \n", + "1330621 9d7400d837c79f953f61094c73ffa99cf2e81fcab6a6d2... \n", + "14390 86d5787b89b15b08e4c9b32b24f204a8c5b4143ab5c18c... \n", + "334827 e9ac2ce03b1a81039aadae9c8d4f9b6fc68174746294e4... \n", + "\n", + " summary \\\n", + "778201 Uno de los cuatro asaltantes al templo metodis... \n", + "1441437 Más de 100.000 personas cumplen los criterios ... \n", + "1330621 En una serie de tuits, el creador de Tesla aug... \n", + "14390 El líder de Podemos afirma que se nota otra re... \n", + "334827 Tom MacMaster, estadounidense de 40 años, escr... \n", + "\n", + " article \n", + "778201 Ocho personas han muerto y otras 44 han result... \n", + "1441437 El borrador del plan nacional contra la hepati... \n", + "1330621 Elon Musk, el padre del Hyperloop, de los coch... \n", + "14390 Pablo Iglesias, líder de Podemos, ha emplazado... \n", + "334827 Tom MacMaster, el estadounidense de 40 años qu... " + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "subset_df = parse_data(ds)\n", + "subset_df.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "id": "c19cced1-bcf0-4f63-ba8d-589eca4fcda6", + "metadata": {}, + "outputs": [], + "source": [ + "async def translate_text(text):\n", + " document = Document(page_content=text)\n", + " loop = asyncio.get_event_loop()\n", + " response = await loop.run_in_executor(\n", + " None,\n", + " partial(\n", + " openai.chat.completions.create,\n", + " model=\"gpt-4o\",\n", + " messages=[\n", + " {\"role\": \"system\", \"content\": \"You are a translator.\"},\n", + " {\n", + " \"role\": \"user\",\n", + " \"content\": f\"Translate the following text to English: {document.page_content}\",\n", + " },\n", + " ],\n", + " ),\n", + " )\n", + " translated_text = response.choices[0].message.content.strip()\n", + " return translated_text" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "id": "fa3f4cce-9f05-4db5-a2ed-4dc6298c0c3a", + "metadata": {}, + "outputs": [], + "source": [ + "async def translate_dataframe(df, column_name1, column_name2):\n", + " tasks_column1 = [translate_text(text) for text in df[column_name1]]\n", + " tasks_column2 = [translate_text(text) for text in df[column_name2]]\n", + "\n", + " translated_texts1 = await asyncio.gather(*tasks_column1)\n", + " translated_texts2 = await asyncio.gather(*tasks_column2)\n", + "\n", + " df[\"translated_\" + column_name1] = translated_texts1\n", + " df[\"translated_\" + column_name2] = translated_texts2\n", + "\n", + " return df" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "id": "dcc64c66-c5ba-4d46-9177-08f1f36737c3", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
idsummaryarticletranslated_summarytranslated_article
7782011a6d7e2a3a46ccb0134763068b9cc694ed5efb72243f95...Uno de los cuatro asaltantes al templo metodis...Ocho personas han muerto y otras 44 han result...One of the four assailants at the Methodist te...Eight people died and another 44 were injured ...
1441437990b015fee4b21d566abd9913877c2e59b157064ec1654...Más de 100.000 personas cumplen los criterios ...El borrador del plan nacional contra la hepati...More than 100,000 people meet the criteria for...The draft of the national plan against hepatit...
13306219d7400d837c79f953f61094c73ffa99cf2e81fcab6a6d2...En una serie de tuits, el creador de Tesla aug...Elon Musk, el padre del Hyperloop, de los coch...In a series of tweets, the creator of Tesla pr...Elon Musk, the father of Hyperloop, Tesla auto...
1439086d5787b89b15b08e4c9b32b24f204a8c5b4143ab5c18c...El líder de Podemos afirma que se nota otra re...Pablo Iglesias, líder de Podemos, ha emplazado...The leader of Podemos states that there is a n...Pablo Iglesias, leader of Podemos, has called ...
334827e9ac2ce03b1a81039aadae9c8d4f9b6fc68174746294e4...Tom MacMaster, estadounidense de 40 años, escr...Tom MacMaster, el estadounidense de 40 años qu...Tom MacMaster, a 40-year-old American, was wri...Tom MacMaster, the 40-year-old American who ha...
40366a0caae74f42c4f0f2c2037ec38e2c2b74db46746ddc1ee...El rodaje comenzará el 16 de agosto en pueblos...La serie de televisión Águila Roja que emite T...Filming will begin on August 16 in towns of Ma...The television series Águila Roja, which airs ...
16280567be0bb718118c80312cddb07181cd5144c79354905adfc...El plan con mejor acogida ha sido el de mejora...Jóvenes mayores de 16 años votan qué inversion...The most well-received plan has been the impro...Young people over the age of 16 vote on their ...
389664025449f042134e89631c21cb34d59399174ccce2f6721d...Tanto los tanques como las esferas fueron cons...La compañía Repsol Butano ha iniciado el desmo...Both the tanks and the spheres were constructe...The company Repsol Butano has begun the disman...
1762643c3ce4dbdd18fd5e2836e4fc98ce20f74c46294a473947...A estos hombres se les han intervenido cerca d...Ocho personas, cinco rumanos, dos españoles y ...These men have had approximately 90 meters of ...Eight people, five Romanians, two Spaniards, a...
401423e988e55eaa6906835e2743c924dc4d03976b1aff22a805...Varios monumentos, como los castillos de Galve...“Estamos en una de las provincias con más cast...Several monuments, such as the castles of Galv...\"We are in one of the provinces with the most ...
17428373d4a210a73193653a48b5ae34aa64bc0a4c7062016753a...En el «negocio familiar» participaban todos lo...La Policía Nacional ha desarticulado un clan f...In the \"family business,\" all the members part...The National Police have dismantled a family c...
117288817b868c8fc8629e447b39affb79b6efd425cc2f19df760...La Plataforma d'Afectats per les Hipoteques ac...El juzgado de Primera Instancia número 12 de V...The Platform for People Affected by Mortgages ...The Court of First Instance No. 12 of Valencia...
23760300e23a70e025dd43e76bc5a9c76e45005ce5e68b4b7e6d...El exceso de regalos puede anestesiar la fanta...El exceso de regalos puede anestesiar la fanta...The excess of gifts can numb the imagination o...The excess of gifts can anesthetize children's...
58853334a3f4bfc6ba6cc38c6b11510c3d156bb902c0961a1273...El App Trade Centre reúne en su segunda edició...Valencia, tecnología y cultura digital ya no e...The App Trade Centre brings together leading c...Valencia, technology, and digital culture are ...
3083554f1c87bfde7ba33ff4e100cc351fd33cd92564f718a0b4...La temperatura en el suburbano llegó a 36,6 en...“Próxima parada: Passeig de Gràcia”. Un montón...The temperature in the subway reached 36.6 deg...Next Stop: Passeig de Gràcia. A bunch of passe...
8402cbdba0d04ce2c700ce93b5fb679997e570dc831057eed1...Saxofonista, compositor, empresario en sus rat...Saxofonista, compositor, empresario en sus rat...Saxophonist, composer, entrepreneur in his spa...Saxophonist, composer, entrepreneur in his spa...
164872cf8aadf378f0e5e49f1c4c02b291144977d090a8eb61bc...La organización subraya que en Mallorca sigue ...n Familias que se ven obligadas a ocupar viven...The organization emphasizes that in Mallorca, ...Families that are forced to occupy other peopl...
7437388ae05d0bf680a83aca94f8bd630a6d48ba0f7871817a85...El presidente defiende a la justicia española ...En pleno caos del Brexit, un asunto que protag...The president defends the Spanish justice syst...In the midst of the Brexit chaos, a matter tha...
8106114a459f61128c2a4fa1ecd3085125ce4d2d70da6f2dec67...´Pizzi nos está metiendo mucha caña e intensid...El centrocampista del Valencia Míchel Herrero ...\"Pizzi is pushing us really hard and with a lo...The Valencia midfielder Míchel Herrero indicat...
1008019e8d0b3574cd016b441a492c7a5b63717a74f7f82e72812...“Debemos actuar para ayudar a los más vulnerab...El actor Robert de Niro ha hecho un llamamient...\"We must act to help the most vulnerable,\" say...The actor Robert de Niro has called on all cou...
658304fb2a9cc30310e5dd09d6de60b87f64aa24d873ae4e4c0...La empresa ha adquirido la participación del 8...CaixaBank ha adquirido la participación del 8,...The company has acquired an 8.4% stake in Grup...CaixaBank has acquired an 8.4% stake in BPI Gr...
447124a46bd5e026fdd4d135dfb823b9d92297aba4edb21c415d...En concreto se contemplan los tramos: Barcelon...La ministra de Fomento, Ana Pastor, ha anuncia...Specifically, the following sections are consi...The Minister of Development, Ana Pastor, annou...
1434585894dd5863fdbc6c6e4e101b9ed1ef6ffb12491b059887...Un reciente estudio afirma que estos milenario...Su misterio ha durado más de un siglo, y podrí...A recent study claims that these ancient chalk...Its mystery has lasted more than a century, an...
68098187c69cf023d6b70634300b2521ab5279607971e11149f6...Lucho, el defensa del Segorbe insultado por ra...Luciano Mutasi Mba, Lucho para la gente del fú...Lucho, the Segorbe defender who was insulted w...Luciano Mutasi Mba, known as Lucho to football...
984837aad22bb8b867ceb70655ad128c19cf882d02ec5f4a45b9...Murillo fue contratado como vigilante del Cent...El francotirador detenido y encarcelado por su...Murillo was hired as a security guard at the T...The sniper arrested and imprisoned for his int...
\n", + "
" + ], + "text/plain": [ + " id \\\n", + "778201 1a6d7e2a3a46ccb0134763068b9cc694ed5efb72243f95... \n", + "1441437 990b015fee4b21d566abd9913877c2e59b157064ec1654... \n", + "1330621 9d7400d837c79f953f61094c73ffa99cf2e81fcab6a6d2... \n", + "14390 86d5787b89b15b08e4c9b32b24f204a8c5b4143ab5c18c... \n", + "334827 e9ac2ce03b1a81039aadae9c8d4f9b6fc68174746294e4... \n", + "40366 a0caae74f42c4f0f2c2037ec38e2c2b74db46746ddc1ee... \n", + "1628056 7be0bb718118c80312cddb07181cd5144c79354905adfc... \n", + "389664 025449f042134e89631c21cb34d59399174ccce2f6721d... \n", + "176264 3c3ce4dbdd18fd5e2836e4fc98ce20f74c46294a473947... \n", + "401423 e988e55eaa6906835e2743c924dc4d03976b1aff22a805... \n", + "1742837 3d4a210a73193653a48b5ae34aa64bc0a4c7062016753a... \n", + "1172888 17b868c8fc8629e447b39affb79b6efd425cc2f19df760... \n", + "237603 00e23a70e025dd43e76bc5a9c76e45005ce5e68b4b7e6d... \n", + "588533 34a3f4bfc6ba6cc38c6b11510c3d156bb902c0961a1273... \n", + "308355 4f1c87bfde7ba33ff4e100cc351fd33cd92564f718a0b4... \n", + "8402 cbdba0d04ce2c700ce93b5fb679997e570dc831057eed1... \n", + "164872 cf8aadf378f0e5e49f1c4c02b291144977d090a8eb61bc... \n", + "743738 8ae05d0bf680a83aca94f8bd630a6d48ba0f7871817a85... \n", + "810611 4a459f61128c2a4fa1ecd3085125ce4d2d70da6f2dec67... \n", + "1008019 e8d0b3574cd016b441a492c7a5b63717a74f7f82e72812... \n", + "65830 4fb2a9cc30310e5dd09d6de60b87f64aa24d873ae4e4c0... \n", + "447124 a46bd5e026fdd4d135dfb823b9d92297aba4edb21c415d... \n", + "143458 5894dd5863fdbc6c6e4e101b9ed1ef6ffb12491b059887... \n", + "680981 87c69cf023d6b70634300b2521ab5279607971e11149f6... \n", + "984837 aad22bb8b867ceb70655ad128c19cf882d02ec5f4a45b9... \n", + "\n", + " summary \\\n", + "778201 Uno de los cuatro asaltantes al templo metodis... \n", + "1441437 Más de 100.000 personas cumplen los criterios ... \n", + "1330621 En una serie de tuits, el creador de Tesla aug... \n", + "14390 El líder de Podemos afirma que se nota otra re... \n", + "334827 Tom MacMaster, estadounidense de 40 años, escr... \n", + "40366 El rodaje comenzará el 16 de agosto en pueblos... \n", + "1628056 El plan con mejor acogida ha sido el de mejora... \n", + "389664 Tanto los tanques como las esferas fueron cons... \n", + "176264 A estos hombres se les han intervenido cerca d... \n", + "401423 Varios monumentos, como los castillos de Galve... \n", + "1742837 En el «negocio familiar» participaban todos lo... \n", + "1172888 La Plataforma d'Afectats per les Hipoteques ac... \n", + "237603 El exceso de regalos puede anestesiar la fanta... \n", + "588533 El App Trade Centre reúne en su segunda edició... \n", + "308355 La temperatura en el suburbano llegó a 36,6 en... \n", + "8402 Saxofonista, compositor, empresario en sus rat... \n", + "164872 La organización subraya que en Mallorca sigue ... \n", + "743738 El presidente defiende a la justicia española ... \n", + "810611 ´Pizzi nos está metiendo mucha caña e intensid... \n", + "1008019 “Debemos actuar para ayudar a los más vulnerab... \n", + "65830 La empresa ha adquirido la participación del 8... \n", + "447124 En concreto se contemplan los tramos: Barcelon... \n", + "143458 Un reciente estudio afirma que estos milenario... \n", + "680981 Lucho, el defensa del Segorbe insultado por ra... \n", + "984837 Murillo fue contratado como vigilante del Cent... \n", + "\n", + " article \\\n", + "778201 Ocho personas han muerto y otras 44 han result... \n", + "1441437 El borrador del plan nacional contra la hepati... \n", + "1330621 Elon Musk, el padre del Hyperloop, de los coch... \n", + "14390 Pablo Iglesias, líder de Podemos, ha emplazado... \n", + "334827 Tom MacMaster, el estadounidense de 40 años qu... \n", + "40366 La serie de televisión Águila Roja que emite T... \n", + "1628056 Jóvenes mayores de 16 años votan qué inversion... \n", + "389664 La compañía Repsol Butano ha iniciado el desmo... \n", + "176264 Ocho personas, cinco rumanos, dos españoles y ... \n", + "401423 “Estamos en una de las provincias con más cast... \n", + "1742837 La Policía Nacional ha desarticulado un clan f... \n", + "1172888 El juzgado de Primera Instancia número 12 de V... \n", + "237603 El exceso de regalos puede anestesiar la fanta... \n", + "588533 Valencia, tecnología y cultura digital ya no e... \n", + "308355 “Próxima parada: Passeig de Gràcia”. Un montón... \n", + "8402 Saxofonista, compositor, empresario en sus rat... \n", + "164872 n Familias que se ven obligadas a ocupar viven... \n", + "743738 En pleno caos del Brexit, un asunto que protag... \n", + "810611 El centrocampista del Valencia Míchel Herrero ... \n", + "1008019 El actor Robert de Niro ha hecho un llamamient... \n", + "65830 CaixaBank ha adquirido la participación del 8,... \n", + "447124 La ministra de Fomento, Ana Pastor, ha anuncia... \n", + "143458 Su misterio ha durado más de un siglo, y podrí... \n", + "680981 Luciano Mutasi Mba, Lucho para la gente del fú... \n", + "984837 El francotirador detenido y encarcelado por su... \n", + "\n", + " translated_summary \\\n", + "778201 One of the four assailants at the Methodist te... \n", + "1441437 More than 100,000 people meet the criteria for... \n", + "1330621 In a series of tweets, the creator of Tesla pr... \n", + "14390 The leader of Podemos states that there is a n... \n", + "334827 Tom MacMaster, a 40-year-old American, was wri... \n", + "40366 Filming will begin on August 16 in towns of Ma... \n", + "1628056 The most well-received plan has been the impro... \n", + "389664 Both the tanks and the spheres were constructe... \n", + "176264 These men have had approximately 90 meters of ... \n", + "401423 Several monuments, such as the castles of Galv... \n", + "1742837 In the \"family business,\" all the members part... \n", + "1172888 The Platform for People Affected by Mortgages ... \n", + "237603 The excess of gifts can numb the imagination o... \n", + "588533 The App Trade Centre brings together leading c... \n", + "308355 The temperature in the subway reached 36.6 deg... \n", + "8402 Saxophonist, composer, entrepreneur in his spa... \n", + "164872 The organization emphasizes that in Mallorca, ... \n", + "743738 The president defends the Spanish justice syst... \n", + "810611 \"Pizzi is pushing us really hard and with a lo... \n", + "1008019 \"We must act to help the most vulnerable,\" say... \n", + "65830 The company has acquired an 8.4% stake in Grup... \n", + "447124 Specifically, the following sections are consi... \n", + "143458 A recent study claims that these ancient chalk... \n", + "680981 Lucho, the Segorbe defender who was insulted w... \n", + "984837 Murillo was hired as a security guard at the T... \n", + "\n", + " translated_article \n", + "778201 Eight people died and another 44 were injured ... \n", + "1441437 The draft of the national plan against hepatit... \n", + "1330621 Elon Musk, the father of Hyperloop, Tesla auto... \n", + "14390 Pablo Iglesias, leader of Podemos, has called ... \n", + "334827 Tom MacMaster, the 40-year-old American who ha... \n", + "40366 The television series Águila Roja, which airs ... \n", + "1628056 Young people over the age of 16 vote on their ... \n", + "389664 The company Repsol Butano has begun the disman... \n", + "176264 Eight people, five Romanians, two Spaniards, a... \n", + "401423 \"We are in one of the provinces with the most ... \n", + "1742837 The National Police have dismantled a family c... \n", + "1172888 The Court of First Instance No. 12 of Valencia... \n", + "237603 The excess of gifts can anesthetize children's... \n", + "588533 Valencia, technology, and digital culture are ... \n", + "308355 Next Stop: Passeig de Gràcia. A bunch of passe... \n", + "8402 Saxophonist, composer, entrepreneur in his spa... \n", + "164872 Families that are forced to occupy other peopl... \n", + "743738 In the midst of the Brexit chaos, a matter tha... \n", + "810611 The Valencia midfielder Míchel Herrero indicat... \n", + "1008019 The actor Robert de Niro has called on all cou... \n", + "65830 CaixaBank has acquired an 8.4% stake in BPI Gr... \n", + "447124 The Minister of Development, Ana Pastor, annou... \n", + "143458 Its mystery has lasted more than a century, an... \n", + "680981 Luciano Mutasi Mba, known as Lucho to football... \n", + "984837 The sniper arrested and imprisoned for his int... " + ] + }, + "execution_count": 10, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "loop = asyncio.get_event_loop()\n", + "loop.run_until_complete(translate_dataframe(subset_df, \"summary\", \"article\"))" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "id": "5db4572c-ab44-4818-ae2b-4ef44719144d", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
idsummaryarticletranslated_summarytranslated_article
7782011a6d7e2a3a46ccb0134763068b9cc694ed5efb72243f95...Uno de los cuatro asaltantes al templo metodis...Ocho personas han muerto y otras 44 han result...One of the four assailants at the Methodist te...Eight people died and another 44 were injured ...
1441437990b015fee4b21d566abd9913877c2e59b157064ec1654...Más de 100.000 personas cumplen los criterios ...El borrador del plan nacional contra la hepati...More than 100,000 people meet the criteria for...The draft of the national plan against hepatit...
13306219d7400d837c79f953f61094c73ffa99cf2e81fcab6a6d2...En una serie de tuits, el creador de Tesla aug...Elon Musk, el padre del Hyperloop, de los coch...In a series of tweets, the creator of Tesla pr...Elon Musk, the father of Hyperloop, Tesla auto...
1439086d5787b89b15b08e4c9b32b24f204a8c5b4143ab5c18c...El líder de Podemos afirma que se nota otra re...Pablo Iglesias, líder de Podemos, ha emplazado...The leader of Podemos states that there is a n...Pablo Iglesias, leader of Podemos, has called ...
334827e9ac2ce03b1a81039aadae9c8d4f9b6fc68174746294e4...Tom MacMaster, estadounidense de 40 años, escr...Tom MacMaster, el estadounidense de 40 años qu...Tom MacMaster, a 40-year-old American, was wri...Tom MacMaster, the 40-year-old American who ha...
\n", + "
" + ], + "text/plain": [ + " id \\\n", + "778201 1a6d7e2a3a46ccb0134763068b9cc694ed5efb72243f95... \n", + "1441437 990b015fee4b21d566abd9913877c2e59b157064ec1654... \n", + "1330621 9d7400d837c79f953f61094c73ffa99cf2e81fcab6a6d2... \n", + "14390 86d5787b89b15b08e4c9b32b24f204a8c5b4143ab5c18c... \n", + "334827 e9ac2ce03b1a81039aadae9c8d4f9b6fc68174746294e4... \n", + "\n", + " summary \\\n", + "778201 Uno de los cuatro asaltantes al templo metodis... \n", + "1441437 Más de 100.000 personas cumplen los criterios ... \n", + "1330621 En una serie de tuits, el creador de Tesla aug... \n", + "14390 El líder de Podemos afirma que se nota otra re... \n", + "334827 Tom MacMaster, estadounidense de 40 años, escr... \n", + "\n", + " article \\\n", + "778201 Ocho personas han muerto y otras 44 han result... \n", + "1441437 El borrador del plan nacional contra la hepati... \n", + "1330621 Elon Musk, el padre del Hyperloop, de los coch... \n", + "14390 Pablo Iglesias, líder de Podemos, ha emplazado... \n", + "334827 Tom MacMaster, el estadounidense de 40 años qu... \n", + "\n", + " translated_summary \\\n", + "778201 One of the four assailants at the Methodist te... \n", + "1441437 More than 100,000 people meet the criteria for... \n", + "1330621 In a series of tweets, the creator of Tesla pr... \n", + "14390 The leader of Podemos states that there is a n... \n", + "334827 Tom MacMaster, a 40-year-old American, was wri... \n", + "\n", + " translated_article \n", + "778201 Eight people died and another 44 were injured ... \n", + "1441437 The draft of the national plan against hepatit... \n", + "1330621 Elon Musk, the father of Hyperloop, Tesla auto... \n", + "14390 Pablo Iglesias, leader of Podemos, has called ... \n", + "334827 Tom MacMaster, the 40-year-old American who ha... " + ] + }, + "execution_count": 11, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "subset_df.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "id": "d6ea4160-2409-4748-b4f6-26904291ddd6", + "metadata": {}, + "outputs": [ + { + "name": "stdin", + "output_type": "stream", + "text": [ + "Host: ········\n", + "API Key: ········\n" + ] + } + ], + "source": [ + "es_client = elasticsearch.Elasticsearch(\n", + " getpass.getpass(\"Host: \"),\n", + " api_key=getpass.getpass(\"API Key: \"),\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "id": "8b26e6b5-c710-46d3-a59c-8516dc9bcd00", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Deleted existing index: vs-post-data\n", + "Created new index: vs-post-data\n" + ] + } + ], + "source": [ + "index_name = \"vs-post-data\"\n", + "\n", + "# Check if the index exists using keyword argument\n", + "if es_client.indices.exists(index=index_name):\n", + " es_client.indices.delete(index=index_name)\n", + " print(f\"Deleted existing index: {index_name}\")\n", + "\n", + "# Create a new index using keyword argument\n", + "es_client.indices.create(index=index_name)\n", + "print(f\"Created new index: {index_name}\")" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "id": "5b3ba2a3-a4e9-4b7a-9f33-290b2ad3bd11", + "metadata": {}, + "outputs": [], + "source": [ + "embedding = OpenAIEmbeddings(model=\"text-embedding-3-large\")" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "id": "94dd529f-5e02-420a-9aba-2459ef2f4ec6", + "metadata": {}, + "outputs": [], + "source": [ + "elastic_vector_search = ElasticsearchStore(\n", + " index_name=\"vs-post-data\",\n", + " es_connection=es_client,\n", + " embedding=embedding,\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "id": "aa295a28-cb5d-4d15-97a5-764234cc8d47", + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "Created a chunk of size 7007, which is longer than the specified 5000\n" + ] + } + ], + "source": [ + "translated_texts = subset_df[\"translated_article\"].tolist()\n", + "combined_text = \"\\n\".join(translated_texts)\n", + "text_splitter = CharacterTextSplitter(chunk_size=5000, chunk_overlap=50)\n", + "docs = text_splitter.split_documents([Document(page_content=combined_text)])" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "id": "035a4592-d59b-42a2-8faa-92e758939ac8", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "['612f958b-a830-4f39-8d25-2b408c1778cc',\n", + " 'e227a8b6-7e7b-491c-b93f-aca4291d3eda',\n", + " '5fa946f1-1dd8-491a-a142-55e2cab21507',\n", + " '2101e7be-8889-48e3-a32d-eecd8ed21659',\n", + " '4f7a5fa8-4c0d-4976-ae63-28dc03e8a60d',\n", + " 'f6b2b0a5-355a-409f-8d85-16b839df790d',\n", + " '574ae78e-617d-49b6-884b-23ba8676965d',\n", + " 'f181ac6d-9703-4691-b53f-ca24b0dfd1dd',\n", + " '1949df0d-c438-4ff3-9710-daa0563f4d23',\n", + " 'cc704289-a1dc-461e-a052-72cfe56edb33',\n", + " '91a84211-6481-4c50-8c01-bdea90c5be32',\n", + " '6a5a2dac-051f-44ef-81e7-858f9732a3d9',\n", + " '8cde9f07-40e1-417d-a585-c80688ac1d6a',\n", + " '525fbb94-bb42-44f5-9d41-2c1c5b95d825',\n", + " '6b434e53-f863-4862-a250-383ebd799446',\n", + " '53ca83bf-71e2-4f22-9698-5575e92ad914',\n", + " '697d193d-e8f8-4d21-9a57-66d1ee0942d6',\n", + " 'bc5fe419-914c-4919-a7bc-485e73240225',\n", + " '6d9c7b6f-8cdc-494b-aaea-76ed0edeee3d',\n", + " '55710340-557c-4d73-9ce8-a6641fbeceac',\n", + " 'dd5dd83f-d655-4a8a-aa9a-cba454b4bdf6',\n", + " 'dd1f74cd-b2a3-4567-9ac5-cbb8da578c2b']" + ] + }, + "execution_count": 17, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "elastic_vector_search.add_documents(docs)" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "id": "d216c2a5-5c6c-4848-83e1-49e6ccce625f", + "metadata": {}, + "outputs": [], + "source": [ + "query = \"What happened in Spain?\"" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "id": "a08c9a02-f7ce-4e99-a434-f2ecf509efff", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[Document(page_content='Post-October 1st, the sniper worked during November and until December 21st in the security support teams in an annex space of the CTTI that was set up due to the parliamentary election call. The Department of Digital Policies has requested an informative report today from Enerpro S.L. to gather more information on this matter. The man, who sought logistical support in a WhatsApp chat to commit the assassination, remains in prison by order of a court in Terrassa (Barcelona), in a case open for the crimes of conspiracy to commit attacks against the head of government and possession, storage of illegal arms, ammunition, and explosives, as well as another hate crime. Murillo was arrested on September 19th by the Mossos d\\'Esquadra, a few days after receiving a complaint from a local Vox leader in Barcelona, who had received his WhatsApp messages stating that he was willing to \"sacrifice\" himself for Spain and wanted to kill Sánchez as revenge for his intention to exhume Franco from the Valley of the Fallen.'),\n", + " Document(page_content='Each May since 2006, the association has organized the \"March of Flowers,\" advocating for their heritage by placing protest bouquets at the site. In 2016, the Junta supported seven archaeological projects in Guadalajara, totaling aid just shy of 72,000 euros. These include the Cenomanian vertebrate complex in Algora, the Castil de Griegos Celtiberian fort in Checa, the Virgin de la Muela hill in Driebes, and the Recópolis site in Zorita de los Canes. The Junta is also committed to ongoing research at the Caraca site in Driebes, potentially the first Roman city discovered in Guadalajara.\\n\\n\"The administration\\'s support for archaeological efforts is commendable, but a long-term plan with economic backing is needed to prioritize the architectural heritage needs,” emphasizes Raúl Conde, also head of the Castle of Galve Association. \"In Castilla y León, historical heritage investment topped 500 million euros from 2004 to 2012 with over 5,400 interventions. We lack comparable data for Castilla-La Mancha, but it’s surely far less.\"\\n\\nThe Castle of Galve de Sorbe exemplifies persistent heritage advocacy in Guadalajara. The association has worked tirelessly for over a decade to secure this 15th-century monument, constructed by the Estúñiga family. The castle is in severe disrepair, with neglected interiors and deteriorating exteriors severely affecting its keep.\\n\\nGovernmental and private pressures to comply with conservation laws regarding the Bien de Interés Cultural designation have led to the first heritage infringement case in Guadalajara: private owner Enrique Calle Pinker must pay a 72,000-euro fine and present a restoration project. Both the association and the Galve town hall hope this serves to enforce maintenance and ensure the castle\\'s preservation.\\n\\nSuch apathy and negligence extend beyond Galve. Many of Guadalajara\\'s fifty castles are private, with varying states of care – some meticulously restored, others insensitively altered, and most neglected. Spectacular castles like Riba de Santiuste and Pelegrina are spiraling towards ruin. Prominent sites like the Gothic church of San Francisco de Atienza and the monasteries of La Salceda de Tendilla, the Querencia church, ancient bridges, the Peña Escrita de Channels, or the Villaflores village near Guadalajara city also languish without public investment.\\n\\nJournalist Manu Leguineche, familiar with Guadalajara’s intricacies, wrote in \\'The Club of Affectionate Shortfall,\\' recently reissued: \"The trend is towards graceless modern construction while hundreds of castles fall to dust. I wonder what the US would do with these treasures—they might not escape poor taste but would rise from their ashes.” Castles, forgotten churches, and monasteries in Guadalajara await their resurrection, hoping to emerge from dust due to a blend of neglect, insensitivity, and lack of resources.\\nThe National Police have dismantled a family clan known as \"La Chelo\", based in Castellón, which had become one of the networks controlling cocaine trafficking in the Levante region, and have arrested eleven of its members. In a statement, the National Police reported that all members of the \"family business\" participated with different roles, led by the matriarch \"La Chelo\", a 53-year-old Spanish national. The woman, well known in the criminal realm, had been arrested 28 times previously and had become a stronghold in the Castellón area following the police dismantling of other families. According to police sources, this clan handled the supply of cocaine and heroin to the Perpetuo Socorro group and \"Extramuros de Poniente\", where \"Chelo\" had her headquarters. \\n\\nIn the first phase of the operation, police actions focused on a subdivision of the clan responsible for acquiring cocaine by the kilogram, which they then distributed to other family members. These members would \"prepare\" the drug with cutting agents to increase profits and sold it retail. When they were about to conduct an exchange, police agents thwarted the action, seizing a kilo of cocaine, nearly 27,000 euros in cash, three luxury cars, and a stolen and loaded firearm. Five people were arrested in this operation, but one of the suspects, Chelo\\'s son J.M.B, well-known to police for prior drug trafficking arrests in 2003, 2006, and 2007 and currently pending trial, escaped and remains at large.\\n\\nThe second phase of the operation targets the branch of the organization dedicated to direct consumer sales and small-scale distribution to other families supplied by them, aiming to conclude the police operation. Four home searches were conducted, three in Almazora and one at Chelo\\'s house in Extramuros, leading to six arrests and the seizure of 600 grams of cocaine, 24 grams of heroin, several precision scales, wires, plastics, cutting agents, nearly 7,000 euros in cash, and a high-caliber stolen revolver pending checks for involvement in other crimes.'),\n", + " Document(page_content='The percentage of Spanish nationals being helped has also decreased to 44% of the total, while 51% are non-EU foreigners from over 70 countries. Most of these foreigners have regularized their stay, but 12.4% are in irregular situations and 1.4% are undocumented. Another concern raised by Càritas is the continued rejection many immigrants face on the island. \\n\\nBy age, most of the Càritas users are between 30 and 50 years old. Regarding family types, more than 45% were couples with children, 16.4% were single-parent families, and 24% were individuals living alone. Last year, Càritas Mallorca, which will receive one of the 5yc94 awards on the 29th, addressed over 35,000 requests. The effort and commitment of almost a thousand volunteers and staff were highlighted.\\n\\nAs a new initiative for 2017, work is being done on creating a labor reintegration enterprise, initially focusing on the reuse of secondhand clothing, which could offer contracts lasting up to three years.\\nIn the midst of the Brexit chaos, a matter that had taken center stage in a fierce debate in the European Parliament shortly before, Pedro Sánchez’s arrival at the Strasbourg Hemicycle on Wednesday marked a radical shift with a speech full of European enthusiasm. So much so that several spokespersons, even from rival groups, appreciated this tone of defense of Europe, which is increasingly less common. Sánchez aimed to focus the debate on defending the European Union against totalitarianism and the extreme right, and received widespread support. However, the session became much more contentious as the issue of Catalonia came to the fore. Several MEPs asked him to do something to free the “procés” prisoners, whom some defined as \"political prisoners.\" Several Catalan pro-independence leaders who are imprisoned are well-known in the European Parliament because they were once members. A number of posters with their photos, splashed in yellow, punctuated the dominant blue of the enormous Strasbourg hemicycle. \\n\\nMORE INFORMATION \\nApplause for Sánchez, Casado, and Rivera \\nSánchez will request equality policies and a common unemployment insurance in Europe \\nThe PSOE tests PP and Cs with motions against sexism throughout Spain \\n\\nAccompanied by Josep Borrell, who presided over this Parliament (2004-2007), Sánchez did not want to talk about Catalonia — although he was forced to do so — but rather about Europe and the success of anti-Europeanism. “For Europe to protect us, it is our duty to protect Europe,” the president proclaimed as a key idea. Sánchez delivered several messages against the extreme right, precisely on the same day when a government in Andalusia was being formed with the support of Vox, which was mentioned in speeches by several MEPs, not only the Spanish ones. \"Forgetting history is a luxury we cannot afford. We are facing an authoritarianism that thrives on invented nostalgia. There is no worse nostalgia than longing for what never happened,\" he cited, referring to Joaquín Sabina. \"In the face of regression, progress. The past will never be the future of our societies; it is a place from which to learn from our mistakes. They want to destroy the EU because of the values it upholds. At specific moments in our history, to resist is to advance,\" Sánchez asserted, referring to his political biography, which began with a job for the UN in Bosnia, to explain his Europeanism. \"Peace and democracy cannot be taken for granted. I saw it in Sarajevo. The rise of these anti-European forces threatens our integration project and influences the agenda. I urge us not to be dragged by this force and its siren songs. They only pursue the goal of destroying Europe. I am not worried about the far-right but about how it is influencing the discourse of parties that previously wanted to strengthen the EU. Therefore, I propose protecting Europe so that Europe can protect our citizens,\" he concluded.'),\n", + " Document(page_content='The spheres are made of carbon steel, and three of them are covered with thermal insulation (primarily polyurethane foam, a common insulator even in construction) to allow for the storage of refrigerated propane inside. These three insulated spheres will be scrapped due to the high cost of dismantling their insulation, while the others are being dismantled and transported to a company in another country. According to Repsol, the dismantling work is being carried out following the group\\'s safety standards by a specialized Spanish company. The team responsible for these tasks consists of a minimum workforce of four people, including a safety manager and a site manager, though for special operations the team is reinforced with more experienced personnel in the use of machinery and the removal of asbestos cement, among other tasks.\\n\\nA prestigious engineering firm is in charge of safety coordination and supervision, while Repsol personnel from the Escombreras LPG plant (Murcia) and engineering and maintenance supervisors oversee the work and material removal.\\nEight people, five Romanians, two Spaniards, and one Bulgarian, have been arrested in a single day after being caught red-handed attempting to steal copper cable at two locations in the city of Alicante. According to a statement from the National Police Corps, these men were found with nearly 90 meters of cable and numerous tools, including two sledgehammers, three crowbars, four hoes, three pliers, two screwdrivers, a pickaxe, a shovel, and a generator.\\n\\nThe first incident occurred on the 15th when five men (one of them a minor) were arrested while inside a warehouse in the industrial area of Aguamarga, digging a trench in the parcel\\'s ground to access and steal copper cable. At that moment, they had cut about one and a half meters of the cable and had an additional seven meters of trench exposed. They were found with approximately 40 meters of copper cable and numerous tools, such as two sledgehammers, three crowbars, four hoes, pliers, a pickaxe, a shovel, and a generator.\\n\\nJust a few hours later, another three individuals were caught by a police patrol stealing copper in several buildings under construction in Cabo de las Huertas. Upon noticing the police presence, the suspects attempted to flee but were immediately intercepted and arrested. They were found with various tools used to cut and prepare the copper cable for subsequent sale and about 50 meters of copper cable.\\n\\nAll the detainees have been put at the disposal of the Alicante duty court, except for the minor who was released.\\n\"We are in one of the provinces with the most castles in Spain, but also in one where restoration support is lacking.\" These words were spoken many years ago by the late professor José Luis García de Paz, a heritage researcher and one of the leading specialists in this field. It remains a statement that reflects the neglect in which a large part of the historical and artistic heritage of the province of Guadalajara lies.\\n\\nThe Parador of Sigüenza, established in 1976 in the castle of this town; the Museum of the Alcarria Journey, located in the Templar castle of Torija; the Casa del Doncel, in Sigüenza; the Romanesque church of Labros, in the Lordship of Molina; the Tower of Aragon in Molina; or the walls of Atienza, rehabilitated with state funds, are some exceptions in the catalog of restored historical assets in Guadalajara. Also included are the rural Romanesque hermitages, especially those in the Sierra Norte, and other singular monuments such as the castle of Jadraque, the Ducal Palace of Pastrana, the Romanesque churches of Brihuega, the cathedral of Sigüenza, or the historic center of Hita in the heart of the Alcarria. However, due to Guadalajara\\'s dense history, the province\\'s heritage encompasses dozens of architectural assets, especially in small villages, still awaiting attention from administrations.\\n\\nOrtega y Gasset, who explored the Castile of Guadalajara in the early 20th century and documented the monuments possessed by its villages, admired something in the Germans that he missed in Spain: respect for the past. Little progress has been made since then, as evidenced by the \\'Red List of Heritage,\\' annually updated by the Hispania Nostra association. Castilla-La Mancha is, after Castilla y León, the autonomous community with the most monuments on this list: 72 in total, of which 23 are in Guadalajara. These include significant sites such as the castles of Galve de Sorbe, Pelegrina, or Riba de Santiuste in the Sierra Norte, but also the church of San Francisco de Atienza – the only example of English Gothic in Guadalajara – and the monasteries of Bonaval in Retiendas; Santa María de Óvila in Trillo; San Salvador in Pinilla de Jadraque; and Sopetrán in the heart of the Alcarria.')]" + ] + }, + "execution_count": 19, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "results = elastic_vector_search.similarity_search(query)\n", + "results" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "id": "f087b15c-71d1-4132-8c6a-c7f65480ac01", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[Document(page_content='Post-October 1st, the sniper worked during November and until December 21st in the security support teams in an annex space of the CTTI that was set up due to the parliamentary election call. The Department of Digital Policies has requested an informative report today from Enerpro S.L. to gather more information on this matter. The man, who sought logistical support in a WhatsApp chat to commit the assassination, remains in prison by order of a court in Terrassa (Barcelona), in a case open for the crimes of conspiracy to commit attacks against the head of government and possession, storage of illegal arms, ammunition, and explosives, as well as another hate crime. Murillo was arrested on September 19th by the Mossos d\\'Esquadra, a few days after receiving a complaint from a local Vox leader in Barcelona, who had received his WhatsApp messages stating that he was willing to \"sacrifice\" himself for Spain and wanted to kill Sánchez as revenge for his intention to exhume Franco from the Valley of the Fallen.'),\n", + " Document(page_content='Each May since 2006, the association has organized the \"March of Flowers,\" advocating for their heritage by placing protest bouquets at the site. In 2016, the Junta supported seven archaeological projects in Guadalajara, totaling aid just shy of 72,000 euros. These include the Cenomanian vertebrate complex in Algora, the Castil de Griegos Celtiberian fort in Checa, the Virgin de la Muela hill in Driebes, and the Recópolis site in Zorita de los Canes. The Junta is also committed to ongoing research at the Caraca site in Driebes, potentially the first Roman city discovered in Guadalajara.\\n\\n\"The administration\\'s support for archaeological efforts is commendable, but a long-term plan with economic backing is needed to prioritize the architectural heritage needs,” emphasizes Raúl Conde, also head of the Castle of Galve Association. \"In Castilla y León, historical heritage investment topped 500 million euros from 2004 to 2012 with over 5,400 interventions. We lack comparable data for Castilla-La Mancha, but it’s surely far less.\"\\n\\nThe Castle of Galve de Sorbe exemplifies persistent heritage advocacy in Guadalajara. The association has worked tirelessly for over a decade to secure this 15th-century monument, constructed by the Estúñiga family. The castle is in severe disrepair, with neglected interiors and deteriorating exteriors severely affecting its keep.\\n\\nGovernmental and private pressures to comply with conservation laws regarding the Bien de Interés Cultural designation have led to the first heritage infringement case in Guadalajara: private owner Enrique Calle Pinker must pay a 72,000-euro fine and present a restoration project. Both the association and the Galve town hall hope this serves to enforce maintenance and ensure the castle\\'s preservation.\\n\\nSuch apathy and negligence extend beyond Galve. Many of Guadalajara\\'s fifty castles are private, with varying states of care – some meticulously restored, others insensitively altered, and most neglected. Spectacular castles like Riba de Santiuste and Pelegrina are spiraling towards ruin. Prominent sites like the Gothic church of San Francisco de Atienza and the monasteries of La Salceda de Tendilla, the Querencia church, ancient bridges, the Peña Escrita de Channels, or the Villaflores village near Guadalajara city also languish without public investment.\\n\\nJournalist Manu Leguineche, familiar with Guadalajara’s intricacies, wrote in \\'The Club of Affectionate Shortfall,\\' recently reissued: \"The trend is towards graceless modern construction while hundreds of castles fall to dust. I wonder what the US would do with these treasures—they might not escape poor taste but would rise from their ashes.” Castles, forgotten churches, and monasteries in Guadalajara await their resurrection, hoping to emerge from dust due to a blend of neglect, insensitivity, and lack of resources.\\nThe National Police have dismantled a family clan known as \"La Chelo\", based in Castellón, which had become one of the networks controlling cocaine trafficking in the Levante region, and have arrested eleven of its members. In a statement, the National Police reported that all members of the \"family business\" participated with different roles, led by the matriarch \"La Chelo\", a 53-year-old Spanish national. The woman, well known in the criminal realm, had been arrested 28 times previously and had become a stronghold in the Castellón area following the police dismantling of other families. According to police sources, this clan handled the supply of cocaine and heroin to the Perpetuo Socorro group and \"Extramuros de Poniente\", where \"Chelo\" had her headquarters. \\n\\nIn the first phase of the operation, police actions focused on a subdivision of the clan responsible for acquiring cocaine by the kilogram, which they then distributed to other family members. These members would \"prepare\" the drug with cutting agents to increase profits and sold it retail. When they were about to conduct an exchange, police agents thwarted the action, seizing a kilo of cocaine, nearly 27,000 euros in cash, three luxury cars, and a stolen and loaded firearm. Five people were arrested in this operation, but one of the suspects, Chelo\\'s son J.M.B, well-known to police for prior drug trafficking arrests in 2003, 2006, and 2007 and currently pending trial, escaped and remains at large.\\n\\nThe second phase of the operation targets the branch of the organization dedicated to direct consumer sales and small-scale distribution to other families supplied by them, aiming to conclude the police operation. Four home searches were conducted, three in Almazora and one at Chelo\\'s house in Extramuros, leading to six arrests and the seizure of 600 grams of cocaine, 24 grams of heroin, several precision scales, wires, plastics, cutting agents, nearly 7,000 euros in cash, and a high-caliber stolen revolver pending checks for involvement in other crimes.'),\n", + " Document(page_content='The percentage of Spanish nationals being helped has also decreased to 44% of the total, while 51% are non-EU foreigners from over 70 countries. Most of these foreigners have regularized their stay, but 12.4% are in irregular situations and 1.4% are undocumented. Another concern raised by Càritas is the continued rejection many immigrants face on the island. \\n\\nBy age, most of the Càritas users are between 30 and 50 years old. Regarding family types, more than 45% were couples with children, 16.4% were single-parent families, and 24% were individuals living alone. Last year, Càritas Mallorca, which will receive one of the 5yc94 awards on the 29th, addressed over 35,000 requests. The effort and commitment of almost a thousand volunteers and staff were highlighted.\\n\\nAs a new initiative for 2017, work is being done on creating a labor reintegration enterprise, initially focusing on the reuse of secondhand clothing, which could offer contracts lasting up to three years.\\nIn the midst of the Brexit chaos, a matter that had taken center stage in a fierce debate in the European Parliament shortly before, Pedro Sánchez’s arrival at the Strasbourg Hemicycle on Wednesday marked a radical shift with a speech full of European enthusiasm. So much so that several spokespersons, even from rival groups, appreciated this tone of defense of Europe, which is increasingly less common. Sánchez aimed to focus the debate on defending the European Union against totalitarianism and the extreme right, and received widespread support. However, the session became much more contentious as the issue of Catalonia came to the fore. Several MEPs asked him to do something to free the “procés” prisoners, whom some defined as \"political prisoners.\" Several Catalan pro-independence leaders who are imprisoned are well-known in the European Parliament because they were once members. A number of posters with their photos, splashed in yellow, punctuated the dominant blue of the enormous Strasbourg hemicycle. \\n\\nMORE INFORMATION \\nApplause for Sánchez, Casado, and Rivera \\nSánchez will request equality policies and a common unemployment insurance in Europe \\nThe PSOE tests PP and Cs with motions against sexism throughout Spain \\n\\nAccompanied by Josep Borrell, who presided over this Parliament (2004-2007), Sánchez did not want to talk about Catalonia — although he was forced to do so — but rather about Europe and the success of anti-Europeanism. “For Europe to protect us, it is our duty to protect Europe,” the president proclaimed as a key idea. Sánchez delivered several messages against the extreme right, precisely on the same day when a government in Andalusia was being formed with the support of Vox, which was mentioned in speeches by several MEPs, not only the Spanish ones. \"Forgetting history is a luxury we cannot afford. We are facing an authoritarianism that thrives on invented nostalgia. There is no worse nostalgia than longing for what never happened,\" he cited, referring to Joaquín Sabina. \"In the face of regression, progress. The past will never be the future of our societies; it is a place from which to learn from our mistakes. They want to destroy the EU because of the values it upholds. At specific moments in our history, to resist is to advance,\" Sánchez asserted, referring to his political biography, which began with a job for the UN in Bosnia, to explain his Europeanism. \"Peace and democracy cannot be taken for granted. I saw it in Sarajevo. The rise of these anti-European forces threatens our integration project and influences the agenda. I urge us not to be dragged by this force and its siren songs. They only pursue the goal of destroying Europe. I am not worried about the far-right but about how it is influencing the discourse of parties that previously wanted to strengthen the EU. Therefore, I propose protecting Europe so that Europe can protect our citizens,\" he concluded.'),\n", + " Document(page_content='The spheres are made of carbon steel, and three of them are covered with thermal insulation (primarily polyurethane foam, a common insulator even in construction) to allow for the storage of refrigerated propane inside. These three insulated spheres will be scrapped due to the high cost of dismantling their insulation, while the others are being dismantled and transported to a company in another country. According to Repsol, the dismantling work is being carried out following the group\\'s safety standards by a specialized Spanish company. The team responsible for these tasks consists of a minimum workforce of four people, including a safety manager and a site manager, though for special operations the team is reinforced with more experienced personnel in the use of machinery and the removal of asbestos cement, among other tasks.\\n\\nA prestigious engineering firm is in charge of safety coordination and supervision, while Repsol personnel from the Escombreras LPG plant (Murcia) and engineering and maintenance supervisors oversee the work and material removal.\\nEight people, five Romanians, two Spaniards, and one Bulgarian, have been arrested in a single day after being caught red-handed attempting to steal copper cable at two locations in the city of Alicante. According to a statement from the National Police Corps, these men were found with nearly 90 meters of cable and numerous tools, including two sledgehammers, three crowbars, four hoes, three pliers, two screwdrivers, a pickaxe, a shovel, and a generator.\\n\\nThe first incident occurred on the 15th when five men (one of them a minor) were arrested while inside a warehouse in the industrial area of Aguamarga, digging a trench in the parcel\\'s ground to access and steal copper cable. At that moment, they had cut about one and a half meters of the cable and had an additional seven meters of trench exposed. They were found with approximately 40 meters of copper cable and numerous tools, such as two sledgehammers, three crowbars, four hoes, pliers, a pickaxe, a shovel, and a generator.\\n\\nJust a few hours later, another three individuals were caught by a police patrol stealing copper in several buildings under construction in Cabo de las Huertas. Upon noticing the police presence, the suspects attempted to flee but were immediately intercepted and arrested. They were found with various tools used to cut and prepare the copper cable for subsequent sale and about 50 meters of copper cable.\\n\\nAll the detainees have been put at the disposal of the Alicante duty court, except for the minor who was released.\\n\"We are in one of the provinces with the most castles in Spain, but also in one where restoration support is lacking.\" These words were spoken many years ago by the late professor José Luis García de Paz, a heritage researcher and one of the leading specialists in this field. It remains a statement that reflects the neglect in which a large part of the historical and artistic heritage of the province of Guadalajara lies.\\n\\nThe Parador of Sigüenza, established in 1976 in the castle of this town; the Museum of the Alcarria Journey, located in the Templar castle of Torija; the Casa del Doncel, in Sigüenza; the Romanesque church of Labros, in the Lordship of Molina; the Tower of Aragon in Molina; or the walls of Atienza, rehabilitated with state funds, are some exceptions in the catalog of restored historical assets in Guadalajara. Also included are the rural Romanesque hermitages, especially those in the Sierra Norte, and other singular monuments such as the castle of Jadraque, the Ducal Palace of Pastrana, the Romanesque churches of Brihuega, the cathedral of Sigüenza, or the historic center of Hita in the heart of the Alcarria. However, due to Guadalajara\\'s dense history, the province\\'s heritage encompasses dozens of architectural assets, especially in small villages, still awaiting attention from administrations.\\n\\nOrtega y Gasset, who explored the Castile of Guadalajara in the early 20th century and documented the monuments possessed by its villages, admired something in the Germans that he missed in Spain: respect for the past. Little progress has been made since then, as evidenced by the \\'Red List of Heritage,\\' annually updated by the Hispania Nostra association. Castilla-La Mancha is, after Castilla y León, the autonomous community with the most monuments on this list: 72 in total, of which 23 are in Guadalajara. These include significant sites such as the castles of Galve de Sorbe, Pelegrina, or Riba de Santiuste in the Sierra Norte, but also the church of San Francisco de Atienza – the only example of English Gothic in Guadalajara – and the monasteries of Bonaval in Retiendas; Santa María de Óvila in Trillo; San Salvador in Pinilla de Jadraque; and Sopetrán in the heart of the Alcarria.'),\n", + " Document(page_content='Professor Andrew Chamberlain, from the University of Manchester and co-author of the work, states that \"chalk is not the most suitable material for making measuring equipment and it is thought that the drums may be replicas of the original \\'working\\' standards carved from wood.\" However, this wood does not survive in most Neolithic archaeological sites, and no wooden measuring devices have been found in prehistoric Britain. \"The existence of these measuring devices therefore implies an advanced knowledge of prehistoric geometry and the mathematical properties of circles,\" concludes Chamberlain.\\nLuciano Mutasi Mba, known as Lucho to football fans, is still wondering why it happened to him last Sunday. The question spins around in his head with no resolution in sight. \"Why is being black, at the doorstep of the second decade of the 21st century, a reason to insult someone?\" he asks. The thing about irrational issues is that they never have an answer. Last Sunday, a group of CD Buñol fans targeted him for the color of his skin during the match against his team, Segorbe. He endured the insults for over 45 minutes. \"As soon as the second half started, with the score at 2-2, after competing for the ball on the wing, they began to call me \\'shitty black\\' and similar things, and they didn\\'t stop,\" recalls Lucho, a 28-year-old Guinean player signed by Segorbe last month. He had been playing in Malta\\'s first division. This week, CD Buñol was fined 1,500 euros by the RFEF Competition Committee for the racist insults directed at Lucho. Referee Yerai Fermosell Pérez documented everything in the match report. \"When they were insulting me, I put my finger to my ear, looking at the linesman to ask if he was hearing it. He said yes, and at least then I could be somewhat at ease,\" Lucho said. Specifically, the referee noted: \"During the second half of the match, more precisely between the 70th and 80th minutes and at the end of the game (identified as CD Buñol supporters by their chants and attire), a section of the audience repeatedly shouted \\'nigger, nigger\\' and \\'shitty black\\' whenever CD Segorbe player Luciano Mutasi Mba played the ball, aiming to offend the player.\" The 1,500 euros fine is the minimum amount stipulated by the regulations. Lucho disagrees with the punishment. He believes the club is not at fault. \"What they should have done is stop the match and call the police. Then, one by one, identify those who were insulting me,\" he explains. According to the Segorbe player, around 50 people ended up insulting him. \"Every time I touched the ball, they insulted me. They said \\'black son of a bitch, go home\\' or \\'look black, what are you doing here?\\'\" Lucho, who plays as a central defender or midfielder, knows Spanish football well. He has played in the Canary Islands\\' third division and the Aragonese division. \"They had never been racist with me here, nor in Malta, where many foreigners play.\"\\nThe sniper arrested and imprisoned for his intention to kill the Prime Minister, Pedro Sánchez, was hired as a security guard to \"exceptionally\" reinforce the surveillance of the Telecommunications Center (CTTI) of the Generalitat days before October 1st and until the December 21st elections. According to information from Rac-1 and confirmed by the Department of Digital Policies in a statement, Manuel Murillo was requested by the private company responsible for CTTI security to be part of the security reinforcement team for the organization from September 19th, when the Civil Guard searched several public buildings in an operation to prevent the referendum, until December 21st, the date of the parliamentary elections. The sniper, who is currently in pre-trial detention, was never part of the fixed security teams for the Telecommunications and Information Technology Center building, which has been managed by the company Enerpro SL since 2007, following a tender. Specifically, according to the Department of Digital Policies, Murillo was part of a security team contracted due to construction work in the building adjacent to the CTTI, which required additional reinforcement to ensure access and the flow of people to the premises. \\n\\nDuring those days, the Civil Guard visited the CTTI several times in search of information to try to abort the logistical support for October 1st. Murillo, the son of the last Francoist mayor of Rubí (Barcelona), always worked at the CTTI during night shifts as part of the reinforcement team, according to the Generalitat.'),\n", + " Document(page_content='\"The century of women\" Sánchez introduced several concrete proposals to advance the European Union, especially a novel one on gender equality. \"Spain formed the government with the highest number of women in the EU. A milestone. I propose that the EU adopt a binding gender equality strategy to combat inequality. It is the century of women,\" he explained. He also supported the creation of \"a true European army.\" \"We must show that we are a soft power by choice, not by weakness.\" Additionally, he called for \"eliminating the unanimity rule in foreign policy,\" advocated for more fiscal integration, a stabilization mechanism, and, above all, a European unemployment insurance. \"We must strengthen the euro before the next crisis,\" he proposed. The Spanish president also pushed for a global migration approach, offering a fervent defense of immigration, which was highly criticized by some MEPs from ultra-right groups. Many parliamentarians wanted to speak, although the chamber was half-empty, as is usual in this type of parliamentary address by presidents, and only filled up at the end of the debate when MEPs came in en masse because voting was scheduled right after Sánchez finished, the only time the enormous chamber is fully occupied. The debate heated up significantly around the issue of Catalonia. After resounding applause for his pro-European message, Sánchez received sharp blows from both sides, for governing with the support of pro-independence parties and for presiding over a country that, according to some MEPs, has \"political prisoners.\" Manfred Weber, spokesperson for the EPP, opened the criticism: \"You are a leader committed to Europe. This is good news for Spain. We are all in the same boat, the extreme right is a danger, but extremists have no color. Your government could not exist without the extreme left and the separatists.\" The popular Esteban González Pons went much further. “You can’t say ‘I will never negotiate with extremists’ when you are in government with the independents. You couldn’t defend the unity of Spain here with conviction. You failed here today. It pains me, but I endure it,\" he proclaimed. Several socialist MEPs like Elena Valenciano or José Blanco reproached the former PP spokesperson for the \"disloyalty\" of making that speech in front of the president after the PSOE supported Mariano Rajoy\\'s government in the most difficult moments of the independence challenge. The socialists backed Rajoy’s government in October 2017 in applying Article 155 of the Constitution in Catalonia, following Carles Puigdemont\\'s declaration of independence.\\n\\nSánchez tried to avoid responding to the harshest speeches questioning Spanish democracy, talking about \"political prisoners,\" and demanded that he work for their release: from José Bové, a historic representative of French farmers, to the more moderate Greens\\' spokesperson Ska Keller, who did not call them \"political prisoners\" but did say that \"there are former members of the European Parliament imprisoned for something that is not considered a crime either in Germany or Belgium.\" Sánchez made a general appeal for dialogue and asked the independence movement, with representatives in the European Hall like Ramón Tremosa, to admit that they do not have a majority to impose their project on the rest of the Catalans.'),\n", + " Document(page_content='\"Wouldn\\'t it be easier for us progressives to agree among ourselves?\" asked the leader of Podemos, citing the tripartite coalition in Catalonia, which once included the PSOE and ERC, acknowledging the plurinationality of the State. Specifically regarding Catalonia, he insisted that he does not agree with a unilateral referendum because it does not guarantee the right to decide and advocated for the plurinational model of the State to have \"legal translations.\" In his opinion, there are democratic solutions to the Catalan problem within the framework of the law, but negotiation is necessary, and he recalled that the 1978 Constitution already recognizes that Spain has regions and nationalities. \"United under different rules, we can be stronger,\" insisted Iglesias, who accused the PP of being the largest \"manufacturer of independentists\" with its unyielding policies.\\nTom MacMaster, the 40-year-old American who has confessed to being the author of the blog \\'A Gay Girl in Damascus,\\' defended on Monday the creation of this online diary about the lack of freedom in Syria and the repression by security forces to make people pay attention to the facts instead of the statements by leaders. MacMaster, who is studying for a master\\'s degree at the University of Edinburgh, created this blog in February, supposedly written by Amina Abdallah Araf al Omari, to explain \"what it\\'s like to be a lesbian here\" and garnered many followers in recent months with the rise of protests. Amina described how she participated in protests in the country, her forbidden loves, and even her escapes from persecution by security forces. MacMaster explained to the BBC that a few years ago, when he discussed the Middle East in the United States and provided real data and opinions, he was labeled as anti-American and anti-Jewish. \"So I made up a name through which I could speak to focus on the real issues,\" he indicated. MacMaster pointed out that he wanted people to pay attention to the facts and not to the individuals and leaders making the statements. \"From the very beginning, I never imagined getting as much attention as I have,\" he declared. \"When I started, I thought I would have four, five, maybe ten readers,\" he added. MacMaster acknowledges that his work has made the situation more difficult for Syrian activists. \"However, the truth is that I have been in contact with many people inside Syria, and I have followed things very closely,\" he assured.'),\n", + " Document(page_content='The city remains with the Palacio del Infantado, Salón Chino, the chapel of Luis de Lucena, the Palacio de Antonio de Mendoza, and the Torreón del Alamín. García de Paz documented the destruction inflicted upon part of Guadalajara\\'s heritage during the Civil War. A large part of the Municipal Archive of Zorita de los Canes was used to wrap groceries in Pastrana and its region\\'s shops, while in the Town Hall of Horche, ancient documents were discarded due to lack of storage space, including the town charter awarded in the 16th century. Artistic pieces from churches and castles were sold, and significant parts of the provincial monumental inventory were looted. The most iconic example is the 1931 transfer of part of the Óvila monastery to the USA, following the interventions of press magnate William Randolph Hearst, known for fabricating news during the Spanish-American War in Cuba. Óvila\\'s remains are still in the USA today.\\n\\nGuadalajara is a province where over 80% of municipalities have fewer than 1,000 residents. Despite this, almost all preserve monuments that are either legally protected with some artistic designation or are considered part of the province\\'s artistic reserves. Some of these jewels are paradigmatic of the poor condition in which Guadalajara\\'s architectural heritage remains. \\n\\nThe convent of San Antonio de Mondéjar and the castle of Zorita de los Canes, despite being national monuments, are not in optimal conservation states. The recent blockage by Podemos of the regional accounts for this year may suspend the investments the Junta had committed to rehabilitating two other singular heritage buildings, notably the monastery of Bonaval. Founded in 1164 and located in Retiendas, the monastery of Santa María de Bonaval remains in poor condition with only parts of its church surviving.\\n\\nThe Platform \\'Save Bonaval\\' has garnered the regional administration\\'s attention with their efforts to recover the building. The Junta committed to a comprehensive rehabilitation plan for the monastery, budgeted at 3 million euros across several phases. The first phase, which includes archaeological studies, site cleaning, and structural consolidation, is slated to begin this summer with nearly 400,000 euros in funding. Culture Counselor Ángel Felpeto mentioned that the intervention project is in the \"contracting\" phase and announced that guided public visits will be possible during the works to inform citizens about the conservation efforts.\\n\\nThe project to restore Don Juan Manuel\\'s castle in Cifuentes coincides with the 700th anniversary of its acquisition by the noble and writer. The Junta aims to rehabilitate this cultural asset through the Youth Guarantee Plan, which blends employment generation and heritage recovery. Directed at unemployed youth between 16 and 29, the 18-month employment workshop focuses on the fort\\'s sanitation and partial rehabilitation with 400,000 euros in funding.\\n\\nDeputy Mayor of Cifuentes, Marco Antonio Campos, believes the recent veto on regional budgets should not affect these plans. \"The training school project is already granted, and the rehabilitation funds for the castle are European,\" he says. Most of the project’s budget comes from the European Social Fund, which aims to integrate unemployed and unqualified youth into the labor market. The most endangered part of the structure is its keep, which is cracked and at risk of collapse. The municipality is seeking funding through the rural development plan to undertake necessary consolidation works.\\n\\nThe Castle of Cifuentes Association was founded in 2016 to advocate for the fortress\\'s recovery. President José Luis Poza highlights their efforts to secure financing to restore the castle, with immediate goals of making it a visitable ruin. The necessary investment to repair the keep\\'s threatening crack is around 100,000 euros.\\n\\nThe deplorable state of Villaescusa de Palositos\\' heritage, in the Alcarria Baja region, is iconic of the abandonment faced by many monuments in Guadalajara. Now uninhabited, Villaescusa treasures a 13th-century Romanesque church, declared a Cultural Interest Asset in 2012. Ownership by the Sigüenza Diocese and inclusion in the Romanesque Plan of Guadalajara during Barreda’s government have not prevented its current semi-ruin state. Conflict dates back to the 1970s when Villaescusa de Palositos became private property and was fenced off for hunting. Public access is restricted, preventing passage along historically significant routes like the Camino Real de Peralveche, part of the Santiago’s Way through Vías de la Lana.\\n\\nThe Friends of Villaescusa de Palositos Association has long demanded the consolidation of the crumbling church and reopened paths. They experienced government inaction during Cospedal\\'s mandate, but under Page’s administration, the provincial delegate pledged to address these issues. However, the association has received no follow-up from the Castilla-La Mancha Government.'),\n", + " Document(page_content='With the eleven arrests, police consider the clan dismantled, noting an increase in their professionalism and danger, as evidenced by their possession of high-power firearms. Police sources highlighted that the clan openly displayed the substantial profits from their activities, showcasing luxury cars, jewelry, and valuable items. Of those arrested, six have already been remanded in custody by the judicial authority.\\nThe Court of First Instance No. 12 of Valencia has once again summoned PP deputy Esteban González Pons for a conciliation act on July 11, following a lawsuit filed against him by the Platform of People Affected by Mortgages (PAH) related to the protest that took place at his residence in 2013. This is the second summoning for this issue—in which the PAH accuses the deputy of lying about the details of the protest he experienced—as the first one took place on June 12 and had to be suspended because González Pons’s summons was not properly recorded. In the new proceeding, to which Europa Press has had access, the magistrate has scheduled another conciliation act for July 11 at 10:00 AM and has agreed to send a summons notice to the \\'popular\\' deputy in a sealed envelope.\\n\\nConcurrently with this proceeding, the platform, represented by attorney Ricardo Cano, submitted a request to the court on Wednesday to avoid further suspensions by also sending the summons to González Pons\\'s \"theoretical usual place of employment, which is the Congress of Deputies,\" besides his home address. They mention that the Congress itself \"has notification protocols for deputies and can ensure his attendance at the next conciliation act as agreed.\"\\n\\nRegarding the suspension of the first act, the PAH emphasizes in their document that González Pons, \"demonstrating his civic spirit and willingness to cooperate with the Administration of Justice,\" allowed the notification at his home to \"expire,\" despite the postal notice.\\n\\nSince May, the platform submitted the lawsuit to the Registry Office of the City of Justice of Valencia in mid-May to schedule a conciliation act with González Pons, thus giving him the \"opportunity\" to retract his statements regarding the protest. If the deputy decides not to retract, the PAH has already announced they will file the corresponding lawsuit.\\n\\nIn the document submitted to the court, the PAH stated that González Pons, \"taking advantage of his status as a public political figure and with the intention of diverting attention from his personal involvement in the \\'Nóos case\\' scheme,\" contacted various debate programs in the media and made numerous statements \"to denigrate the people who participated in the protest around his home, and the PAH in general.\"'),\n", + " Document(page_content='These treasures date back more than eight centuries and are unanimously valued from an artistic standpoint, yet they are crumbling. Due to its border location, Guadalajara boasts more castles and picotas, the traditional pillars found in plazas symbolizing township. \"The problems with conserving Guadalajara\\'s heritage are mostly common with other provinces of Castilla-La Mancha: a wealth of heritage, sparse population, and limited resources to maintain both without regional, state, or European aid,\" wrote García de Paz in the magazine \\'Añil\\' in 2005.\\n\\nAntonio Herrera Casado, the official chronicler of the province, emphasized in \\'El Hexágono de Guadalajara\\': \"Something has happened in the minds of Spaniards for a medieval castle to be torn down or a book-worthy popular architecture building to be razed, and nothing to happen. What\\'s occurred is the devaluation of \\'old things,\\' now labeled as outdated, in an educational system that prioritizes interculturality and the magical gadgets of \\'new technologies.\\'\"\\n\\nThe province of Guadalajara has over fifty castles, most in poor condition, despite being legally protected as declared Assets of Cultural Interest (BIC). Additionally, the ruin of the San Antonio de Mondéjar monastery, the collapse of the Bonaval monastery, the abandonment of heritage in Villaescusa de Palositos, or even the dire state of the Alcázar in the provincial capital must be mentioned. Both the State Heritage Law of 1985 and the regional regulation, updated in 2013, oblige the owner of a historical asset, whether public or private, to safeguard, conserve, maintain, and under no circumstances, destroy it. However, the Administration – in this case, the regional government responsible for heritage matters – lacks the tools to effectively enforce the current legislation.\\n\\n\"The problem with heritage laws is that they are well-drafted and reflect the aspirations of heritage conservation, but there are no legal mechanisms to enforce them,\" states Raúl Conde, journalist, president of the Castle of Galve Association, and co-author, with ethnologist José Antonio Alonso, of \\'The Red List of Architectural Heritage of the Sierra de Guadalajara,\\' published by the Serranía Association of Guadalajara.\\n\\nThe historian Juan Antonio Gaya Nuño highlighted more than four decades ago the impact of the 20th century, especially in the wake of the Civil War, on the destruction of heritage, but stressed that what was destroyed during the fratricidal conflicts of the 19th and 20th centuries \"was notably less than what was lost in a century and a half of peace, in full awareness that it was an attack.\"\\n\\nIn Guadalajara\\'s capital, we can cite the cases of the houses of Cardinal Mendoza, the tower of San Bernardo, the Piety, and Santiago\\'s church. Another emblematic case showing perpetual neglect of heritage is the Palacio del Infantado, the most recognizable monument in Guadalajara. This building was burned down during an air raid on December 6, 1936. The then provincial chronicler, Francisco Layna Serrano, fervently requested its reconstruction post-war. Unfortunately, the city chose to rebuild the bullring before undertaking the Infantado\\'s restoration, which began in 1961, a quarter-century after the Civil War ended. By 2003, dampness began to appear, and today, while the façade and Patio de los Leones are well-preserved, the rest of the complex remains in poor condition despite initiatives to present Guadalajara\\'s candidature for UNESCO World Heritage status.\\n\\nThe degradation of Guadalajara\\'s historic center is not new. Today, the controversy revolves around the proliferation of vacant lots in the city\\'s core and the neglect of its oldest buildings and remains. This mistreatment is long-standing. Renowned architect Fernando Chueca Goitia highlighted in his work \\'The Destruction of the Urban Legacy,\\' published in 1973, that the city of the Mendozas \"has suffered more misfortunes than most\" due to the \"assault of the urban colossus that is Madrid.\" Chueca viewed this \"urban explosion\" as a \"pure disaster.\" Historically, Guadalajara had 52 palaces, 15 convents or monasteries, and many churches and hermitages. \"Guadalajara, alongside Soria, Valladolid, and Murcia, holds the unfortunate record for urbanistic destruction,\" Chueca Goitia told El País in 1977. Little has improved since then.')]" + ] + }, + "execution_count": 20, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "k_results = elastic_vector_search.similarity_search(query, k=10)\n", + "k_results" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "1ecaefc7-ca66-4e8d-bb25-0349c2e9bce6", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.12.1" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +}