├── LICENSE ├── README.md ├── Relationship Extraction Presentation - Hami.pptx ├── article_text_clean.csv └── relationship-extraction-hami-latest.ipynb /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 greninja_NSU 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # web-relationextraction 2 | 3 | This is a repository of my code to perform Relationship Extraction from any web article that you are interested in. The detailed Step-by-Step Guide is explained in the article [Relationship Extraction from Any Web Articles using spaCy and Jupyter Notebook in 6 Steps](https://hami-asmai.medium.com/relationship-extraction-from-any-web-articles-using-spacy-and-jupyter-notebook-in-6-steps-4444ee68763f). 4 | 5 | ## How to Use 6 | 7 | Just download relationship-extraction-hami-latest.ipynb and open it using Google Colaboratory: https://colab.research.google.com/. You can run each cells by clicking on the "play" button at the left hand side of each cell. 8 | 9 | ## Acknowledgement 10 | 11 | This project is part of the course requirement by Professor Anton Kolonin in Application aspects of social data processing (Social intelligence technologies or Social computing) at Novosibirsk State University. (Anton’s medium page: https://aigents.medium.com/) 12 | -------------------------------------------------------------------------------- /Relationship Extraction Presentation - Hami.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamiasmaiX/web-relationextraction/ce8ad96b22d3bd7b579a749c450153c26c9368e6/Relationship Extraction Presentation - Hami.pptx -------------------------------------------------------------------------------- /article_text_clean.csv: -------------------------------------------------------------------------------- 1 | sentence 2 | "The new Omicron variant of Covid-19 could cost the global oil market as much as 2.9 million barrels per day of demand in the first quarter of next year, bringing total demand down to 95.7 million barrels per day, if it triggers more lockdowns or restrictions." 3 | "That’s according to Rystad Energy, which warned that, if the variant spreads rapidly, oil demand could fall by 1.3 million barrels per day, to 97.8 million barrels per day, in December 2021 and by 4.2 million barrels per day, to 94.2 million barrels per day, in January 2022." 4 | "The company noted, however, that as countries and governments learn to live with the Omicron variant, or vaccine manufacturers adapt existing shots to counter the variant, the full-year impact will likely be less severe." 5 | "Average 2022 demand would fall to 98 million barrels per day, according to Rystad, which highlighted that this was a drop of 2.1 million barrels per day against its current base case scenario." 6 | "“The likelihood of increasing lockdowns in the coming months has risen dramatically due to the new Omicron variant, and this will undoubtedly impact global oil demand,” Claudio Galimberti, Rystad’s senior vice president of analysis, said in a company statement." 7 | "“Given the early stage of the variant outbreak and the unknowns related to contagiousness and vaccine efficacy, we can only hope this scenario turns out to be a false alarm." 8 | "Still, if the risk is real, the oil market will need to recalibrate accordingly,” he added in the statement." 9 | Omicron Product Impact 10 | "In the first quarter of 2022, demand for gasoline could fall by up to 1.3 million barrels per day to 24.2 million barrels per day due to Omicron, according to Rystad." 11 | That’s a five percent decrease from its base levels of 25.5 million barrels per day. 12 | "Jet fuel demand would also be “significantly impacted” as demand for flights and travel slows, Rystad warned." 13 | Estimates show jet fuel demand could drop six percent in the first quarter of 2022 from the expected 5.5 million barrels per day to 5.2 million barrels per day. 14 | "The second and third quarters would see a deeper plunge, according to Rystad, dropping 10 percent in the second quarter from 6.1 million barrels per day to 5.6 million barrels per day, and 11 percent in the third quarter from seven million barrels per day to 6.2 million barrels per day." 15 | "Omicron Regional Impact Rystad highlighted that countries and regions have reacted differently to the pandemic so far, and noted that it anticipates that trend to continue with the Omicron variant." 16 | "“For instance, countries in North and South America – such as the U.S., Brazil and Argentina – will likely try to weather the storm and prioritize economic activity,” Rystad said in a company statement." 17 | “Countries such as China and Australia have in the past displayed a zero-tolerance approach and are expected to continue with this strategy amid future waves. 18 | "European and Middle Eastern governments are likely to fall in between these two extremes as they try to find equilibrium between economic activity and preserving the health and safety of their populations,” Rystad added in the statement." 19 | "Rystad admitted that the status quo could change and said regional reactions will be dictated by vaccination rates, cultural attitudes towards risks and public sentiment." 20 | "“As with earlier outbreaks, restrictions may be primarily dictated by intensive care occupancy rates in hospitals and the availability of hospital beds more broadly,” Rystad said." 21 | “The pandemic has also impacted some regions and countries worse than others for myriad reasons. 22 | "Consequently, some countries may need to enact more frequent or sweeping lockdowns than before, whereas others may not be as stringent,” Rystad added." 23 | "Covid-19 Cases, Deaths, Vaccinations" 24 | "As of December 2, 5.51pm CET, there have been 262.8 million confirmed cases of Covid-19 globally, with 5.2 million deaths, according to the latest information from the World Health Organization (WHO)." 25 | "A total of 7.8 billion vaccine doses have been administered as of December 1, WHO data shows." 26 | "Global Covid-19 cases have risen for the past six consecutive weeks and deaths have risen in four out of the last six weeks, according to WHO figures." 27 | "The Americas is the worst affected region in terms of cases (97.1 million) and deaths (2.3 million), WHO highlights." 28 | "On November 26, WHO announced that it had designated the B.1.1.529 strain as a variant of concern named Omicron." 29 | "In an update posted on its website on November 28, WHO announced that it was coordinating with a large number of researchers around the world to better understand Omicron." 30 | "Studies currently underway, or underway shortly, include assessments of transmissibility, severity of infection, performance of vaccines and diagnostic tests, and effectiveness of treatments, WHO revealed." 31 | The B.1.1.529 variant was first reported to WHO from South Africa on November 24. 32 | " 33 | 34 | 35 | 36 | The Rigzone Energy Network is a new social experience created for you and all energy professionals to Speak Up about our industry, share knowledge, connect with peers and industry insiders and engage in a professional community that will empower your career in energy." 37 | " 38 | " 39 | --------------------------------------------------------------------------------