[PYTHON] [Language processing 100 knocks 2020] Chapter 3: Regular expressions

Introduction

2020 version of 100 knocks of language processing, which is famous as a collection of problems of natural language processing, has been released. This article summarizes the results of solving Chapter 3: Regular Expressions out of Chapters 1 to 10 below. ..

-Chapter 1: Preparatory Movement -Chapter 2: UNIX Commands --Chapter 3: Regular Expressions -Chapter 4: Morphological analysis -Chapter 5: Dependency Analysis -Chapter 6: Machine Learning --Chapter 7: Word Vector --Chapter 8: Neural Net --Chapter 9: RNN, CNN --Chapter 10: Machine Translation

Advance preparation

We use Google Colaboratory for answers. For details on how to set up and use Google Colaboratory, see this article. The notebook containing the execution results of the following answers is available on github.

Chapter 3: Regular Expressions

There is a file jawiki-country.json.gz that exports Wikipedia articles in the following format.

--One article information is stored in JSON format per line --In each line, the article name is stored in the "title" key and the article body is stored in the dictionary object with the "text" key, and that object is written out in JSON format. --The entire file is gzipped

Create a program that performs the following processing.

First, download the specified data. If you execute the following command on the cell of Google Colaboratory, the target compressed file will be downloaded to the current directory.

!wget https://nlp100.github.io/data/jawiki-country.json.gz

[Wget] command-Download file by specifying URL

Unzip and check the contents.

!gunzip ./jawiki-country.json.gz
#Check the number of lines
!wc -l ./jawiki-country.json

output


248 ./jawiki-country.json
#Check the first line
!head -1 ./jawiki-country.json

output


{"title": "Egypt", "text": "{{otheruses|主To現代ofEgypt・アラブRepublic|Ancient|AncientEgypt}}\n{{Basic information Country\n|Abbreviated name=Egypt\n|Kanji writing=Dust\n|Japanese country name=Egypt・アラブRepublic\n|Official country name={{lang|ar|'''جمهورية مصر العربية'''}}\n|National flag image=Flag of Egypt.svg\n|National emblem image=[[File:Coat_of_arms_of_Egypt.svg|100px|EgyptofNational emblem]]\n|National emblem link=([[EgyptofNational emblem|National emblem]])\n|Motto=None\n|Position image=Egypt (orthographic projection).svg\n|Official terminology=[[Arabic]]\n|capital=[[File:Flag of Cairo.svg|24px]] [[Cairo]]\n|Largest city=Cairo\n|Head of state title=[[近代EgyptofHead of Stateofone覧|President]]\n|Name of head of state=[[Abdel Fattah Al-Cic]]\n|Prime Minister's title={{ill2|EgyptofPrime Minister|en|Prime Minister of Egypt|label=Prime Minister}}\n|Prime Minister等氏名 ={{Temporary link|Mustafa Madboury|ar|مصطفى مدبولي|en|Moustafa Madbouly}}\n|Area ranking=29\n|Area size=1 E12\n|Area value=1,010,408\n|Water area ratio=0.6%\n|Demographic year=2012\n|Population ranking=\n|Population size=1 E7\n|Population value=100 million people\n|Population density value=76\n|GDP statistics year yuan=2018\n|GDP value source=4 trillion 4,37.4 billion<ref name=\"economy\">IMF Data and Statistics Retrieved February 3, 2020 ([https://www.imf.org/external/pubs/ft/weo/2019/02/weodata/weorept.aspx?sy=2017&ey=2024&scsm=1&ssd=1&sort=country&ds=.&br=1&c=469&s=NGDP%2CNGDPD%2CPPPGDP%2CNGDPDPC%2CPPPPC&grp=0&a=&pr.x=57&pr.y=4])</ref>\n|GDP Statistics Year MER=2018\n|GDP ranking MER=45\n|GDP value MER=2,49.6 billion<ref name=\"economy\" />\n|GDP statistical year=2018\n|GDP ranking=21\n|GDP value=1 trillion 2,95.4 billion<ref name=\"economy\" />\n|GDP/Man=13,358<ref name=\"economy\" />\n|Founding form=[[Independence]]<br />&nbsp;-&nbsp;date\n|Founding date=[[England]]Than<br />[[1922]][[February 28]]\n|currency=[[Egypt・lb]](£)\n|Currency code=EGP\n|Time zone= +2\n|Daylight saving time=None\n|National anthem=[[Egyptof国歌|{{lang|ar|بلادي، بلادي، بلادي}}]]{{ar icon}}<br>''My homeland''<br>{{center|[[file:Bilady, Bilady, Bilady.ogg]]}}\n|ISO 3166-1 = EG / EGY\n|ccTLD =[[.eg]]\n|International call number=20\n|Note=\n}}\n'''Egypt・アラブRepublic'''(Egypt・アラブきょうわこく、{{lang-ar|جمهورية مصر العربية}}), Commonly known'''Egypt'''Is[[Middle East]]([[Arab world]])and[[North africa]]It is in[[Republic]]。[[capital]]Is[[Cairo]]。\n\n[[African continent]]soIs北東端To位置し、西To[[Libya]]To the south[[Sudan]], Northeast[[Sinai Peninsula]]soIs[[Israel]]、[[Gaza Strip]]When[[Border]]を接To do。北Is[[Mediterranean]]、東Is[[Red Sea]]Facing. Flowing north and south[[Nile]]of[[Kawatani]]When[[delta|delta]]Zone (zone[[ナイル・delta]])ofほかIs国土of大部分of95%More than[[Desert]]Is<ref>[https://kotobank.jp/word/Egypt-36404 Egypt]Hiroshi Fujii "Encyclopedia Nipponica" Shogakukan, viewed February 1, 2020</ref>。ナイル河口of東ToMediterraneanWhenRed Seaを結ぶ[[Suez Canal]]There is.\n\n==Country code==\n正式名称Is[[Arabic]]so{{lang|ar|'''جمهورية مصر العربية'''}}(Latin[[Transliteration]]: {{transl|ar|DIN|Ǧumhūrīyah Miṣr al-ʿarabīyah}})。通称Is {{lang|ar|'''مصر'''}}([[Husher|Standard language]]: {{transl|ar|DIN|Miṣr}}Missle,[[ArabicEgypt方言|Egypt方言]]ほか、口語Arabic: {{IPA|mɑsˤɾ}}Muscle).[[Coptic]]: {{Lang|cop|Ⲭⲏⲙⲓ}}(Khemi Khemi).\n\nArabicof名称'''Missle'''IsAncientFrom[[Semitic|Semitic]]soこof地を指did名称Is。なお、Semiticofone派Is[[Hebrew]]soIs[[Dual]]of'''Miss Lime'''({{lang|he|מצרים}}, ミツライム)Whenなる。\n\n公式ofEnglish表記Is '''Arab Republic of Egypt'''.. Known as'''Egypt''' {{IPA-en|ˈiːdʒɨpt|}}。形容詞IsEgyptian {{IPA-en|ɨˈdʒɪpʃ''ə''n|}}。Egyptof呼称IsAncient[[Egypt語]]ofフート・カア・Ptah([[Ptah]]神of魂of神殿)From転じてこof地を指すようToなったギリシャ語of単語Is、[[Greek Mythology]]of[[Aegyptus(Greek mythology)|Aegyptus]]Named after.\n\n[[Japanese]]of表記IsEgypt・アラブRepublic。通称[[wikt:Egypt|Egypt]]。[[Chinese characters]]soIs'''Dust'''When表記し、'''dust'''When略す。こof[[国名ofChinese characters表記one覧|Chinese characters表記]]Is[[Chinese writing]]ButそofままJapaneseOr[[Chinese]]SuchTo輸入されたもofIs。EnglishsoIs「イージプト」When呼ばれる。\n\n* [[1882]] - 1922 ({{Temporary link|England領Egypt|en|History of Egypt under the British}})\n* 1922 -1953[[Egypt王国]]\n*1953-1958[[EgyptRepublic]]\n*1958-1971[[アラブ連合Republic]]\n*1971- 現在 Egypt・アラブRepublic\n\n==history==\n{{Main|Egyptof歴史}}\n\n=== AncientEgypt ===\n[[File:All Gizah Pyramids.jpg|thumb|300px|right|[[Giza|Giza]]of[[Three major pyramids]]]]\n[[File:Egyptiska hieroglyfer, Nordisk familjebok.png|thumb|260px|right|[[Hieroglyph]]]]\n{{Main|AncientEgypt}}\n\n「EgyptIsナイルof賜物」Whenいう[[Ancientギリシア]]of[[Historian]][[Herodotus]]of言葉so有名なようTo、EgyptIs豊かな[[Nile]]of[[delta|delta]]Supported by[[AncientEgypt|AncientEgyptcivilization]]を発展させてきた。Egypt人Is[[3000 BC]]ごろToIs早くも中央集権国家を形成し、[[pyramid]]Or[[王家of谷]]、[[Hieroglyph]]Advanced that is well known worldwide through[[civilization]]Developed.\n\n===Achaemenid Persia===\n3000年Toわたる諸王朝of盛衰of末、[[525 BC]]To[[Achaemenid Empire]]ペルシアTo支配Was done.\n\n===Hellenistic culture===\n[[332 BC]]ToIs[[Alexander the Great|Alexander the Great]]To征服Was done.そof後、[[Greek|Greek]]of[[Ptolemaic dynasty]]Is established,[[Hellenistic]]cultureof中心ofひWhenつWhenして栄えた。\n\n===Roman empire===\nPtolemaic dynastyIs[[30 BC]]To滅ぼBe done,EgyptIs[[Roman empire]]of[[Province]]Whenなり[[Egypt]]When呼ばれた。Roman empireof統治下soIs[[Christianity]]Spread,[[Coptic Church]]But生まれた。Roman empireof分割後Is[[東Roman empire]]To属し、豊かな[[grain]]生産soそof繁栄を支えた。\n\n===Islamic dynasty===\n7世紀To[[Islam|Islamization]]。[[639]]To[[Islamic empire]]of[[Shogun]][[Amr ibn al-earth]]Toよって征服Be done,[[Umayyad Caliphate]]and[[Abbasid]]ofone部Whenなった。Abbasidof支配But衰えるWhen、そofEgypt[[Governor]]Independent from[[Tulunids]]、[[Ifseed morning]]of短い支配を経て、[[969]]To現在of[[Tunisia]]It was born in[[Fatimid morning]]Toよって征服Was done.これ以来、[[Ayyubid dynasty]]、[[Mamluk dynasty]]WhenEgyptを本拠地Whenして[[Historical syria|Syria]]まso版図To組み入れた[[Islamic dynasty]]But500年以上Toわたって続く。特To250年間続いたMamluk dynastyof下so[[Central Asia]]Or[[Caucasus]]SuchArab worldof外FromOrってきた[[Mamluk]](奴隷軍人)Toよる支配体制But確立did。\n\n===Ottoman Empire===\n[[1517]]To、Mamluk dynastyを滅ぼしてEgyptをProvinceWhendid[[Ottoman Empire]]ofもWhensoもMamluk支配Is温存された({{Temporary link|Egypt・エヤレト|en|Egypt Eyalet}})。\n\n===Muhammad Ali Dynasty===\n[[File:ModernEgypt, Muhammad Ali by Auguste Couder, BAP 17996.jpg|thumb|180px|[[Muhammad Ali]]]]\n[[1798]]、[[France]]of[[Napoleon Bonaparte]]Toよる[[Egypt・Syria戦役|Egypt遠征]]をきっかけTo、EgyptIs[[Modern nation]]形成of時代を迎える。France軍撤退後、混乱を収拾して権力を掌握didofIsOttoman EmpireBut派遣did[[Albanians]]部隊of隊長WhenしてEgyptToOrってきた軍人、[[Muhammad Ali]]soあった。彼Is実力ToよってEgyptGovernorTo就任To doWhen、Mamlukを打倒してGovernorToよる中央集権化を打ち立て、[[Economy]]・[[Military]]of近代化を進め、EgyptをOttoman EmpireFrom半ばIndependenceさせるこWhenTo成功did。アルバニア系Muhammad Ali家Toよる[[Hereditary]]Established a government ([[Muhammad Ali朝]])。しかし、当時of世界To勢力を広げた[[Europe]][[Great power]]IsEgyptofIndependenceを認めず、また、Muhammad Ali朝of急速な近代化政策Toよる社会矛盾Is結局、EgyptをGreat powerToEconomy的To従属させるこWhenToなった。\n\n=== Englandof進出 ===\nMuhammad AliIs[[Cotton]]を主体WhenTo do農産物[[Monopoly system]]をWhenっていたBut、1838年To宗主Ottoman EmpireBut[[England]]When自由貿易協定を結んだ。Muhammad AliBut1845年Todeltaof堰堤を着工。死後ToMonopoly systemBut崩壊し、また堰堤of工期も延びて3回も支配者of交代を経た1861年、ようOrくone応of完工をみた。1858年末ToIs国庫債券を発行しなければならないほどEgypt財政Is窮迫していた。[[Suez Canal会社]]To払い込む出資金of不足分Isシャルル・ラフィット([[:fr:Charles Laffitte|Charles Laffitte]])When割引銀行(現・[[BNP Paribas]])From借り、国庫債券so返済To doこWhenTodid。[[Isma'il Pasha]]But出資of継続を認めたWhenき、Franceof[[Napoleon III]]of裁定ToThan契約責任を問われ、違約金But[[Bicycle operation]]To拍車をかけた。[[1869]]、EgyptIsFranceWhenWhenもTo[[Suez Canal]]を開通させた。こof前後(1862 - 1873年)To8回も[[Foreign bonds]]But起債Be done,額面も次第To巨額Whenなっていた。EgyptIsOrむなくSuez Canal会社持分を398万[[Sterling pound|lb]]soEnglandTo売却didBut、1876年4月To[[Default]]did<ref>Susumu Nishitani, "[https://doi.org/10.20624/sehs.37.2_113 one九世紀後半Egypt国家財政of行詰まりWhenForeign bonds (one)]」 『社会Economy史学』197137巻 2号 p.113-134,216\n, {{doi|10.20624/sehs.37.2_113}}</ref>。\n\n英仏But負債of償還をめぐって争い、Egyptof蔵相Is追放Was done.[[Italy]]Or[[Austria]]も交えた負債委員会But組織Was done.2回目ofリスケジュールsoイスマーイールone族of直轄地Butすべて移管されたBut、土地税収But滞った<ref>Susumu Nishitani, "[https://doi.org/10.20624/sehs.37.3_283 one九世紀後半Egypt国家財政of行詰まりWhenForeign bonds (two)]」 社会Economy史学197137巻 3号 p.283-311,330-33, {{doi|10.20624/sehs.37.3_283}}</ref>。\n\n[[1882]]、[[Ahmed Olabi]]But中心Whenなって起きた反英運動([[Urabi Revolution]])ButEnglandToよって武力鎮圧Was done.EgyptIsEnglandof[[Protectorate]]Whenなる。結果Whenして、政府ofeducation支出But大幅カットされるSuchdid。[[1914]]ToIs[[第one次世界大戦]]ToよってEnglandButEgyptof名目上of[[Suzerainty]]IsOttoman EmpireWhen開戦didため、EgyptIsOttoman Empireof宗主権From切り離Was done.さらTo[[Saad Zaghloul]]of逮捕・国外追放Toよって反英Independence運動たる[[Egypt革命 (1919)|1919Egypt革命]]But勃発し、英国Than主政of国WhenしてIndependencedid。\n\n=== Independence・Egypt王国 ===\n第one次大戦後of[[1922]][[February 28]]To'''[[Egypt王国]]'''Is established,翌年EnglandIsそof[[Independence]]を認めたBut、そof後もEnglandof間接Typical支配体制Is続いた。\n\nEgypt王国Is[[Constitutional monarchy]]を布いて議会を設置し、緩Orかな近代化を目指did。[[第two次世界大戦]]soIs[[Axis powers]]ButItaly領LibyaFrom侵攻didBut、英軍But撃退did([[North africa戦線]])。第two次世界大戦前後From[[Palestinian issue]]of深刻化Or、1948年From1949年of[[Palestinian war]]([[第one次Middle East戦争]])soof[[Israel]]へof敗北、Economy状況of悪化、[[Muslim Brotherhood]]Such政治ofIslamization([[Islamism]])を唱える社会勢力of台頭Toよって次第To動揺していった。\n\n=== EgyptRepublic ===\nこof状況を受けて[[1952]]、軍内部of秘密組織[[Free Officers Movement]]But[[Coup d'etat]]Wake up and the king[[Farouk I(Egypt王)|Farouk I]]を亡命To追い込み、Muhammad Ali朝を打倒did([[Egypt革命 (1952)|Egypt革命]]<ref>片山正人『現代Africa・Coup d'etat全史』叢文社 Year 2005 ISBN 4-7947-0523-9 p49</ref>)。生後わずか半年of[[Fuad II(Egypt王)|Fuad II]]Enthroned,[[Free Officers Movement]]団長of[[Mohamed Naguib]]ButPrime MinisterTo就任して権力を掌握did。さらTo翌年of1953年、国王を廃位して共和政へWhen移行、[[Mohamed Naguib|Nagive]]ButPrime Ministerを兼務didまま初代PresidentWhenなり、'''EgyptRepublic'''But成立did。\n\n===Nasser administration===\n[[File:Gamal Nasser.jpg|thumb|180px|right|[[Gamal Abdel Nasser]]。[[第two次Middle East戦争]]To勝利し、Suez Canalを国有化did。ナーセルof下soEgyptIs[[Pan-Arabism]]of中心Whenなった]]\n[[1956]]、第2代PresidentTo就任did[[Gamal Abdel Nasser]]ofもWhensoEgyptIs[[Cold war]]下soof中立外交When[[Pan-Arabism|Pan-Arabism(アラブ民族主義)]]を柱WhenTo do独自of政策を進め、[[Third world]]・[[Arab countries]]of雄Whenして台頭To do。同年ToEgyptIs[[Suez Canal国有化宣言|Suez Canal国有化]]を断行し、これToよって勃発did[[第two次Middle East戦争]](Suez戦争)so政治的To勝利を収めた。[[1958]]ToIs[[Syria]]When連合して'''[[アラブ連合Republic]]'''Was established. However[[1961]]ToIsSyriaBut連合From脱退し、[[Confederation]]Whenしてofアラブ連合RepublicIsわずか3年so事実上崩壊did。さらTo[[1967]]of[[第三次Middle East戦争]]Is惨敗To終わり、これToよってナーセルof権威Is求心力を失った。\n\n===Sadat administration===\n[[1970]]To急死didナーセルof後任Whenなった[[Anwar Sadat]]Is自ら主導did[[第四次Middle East戦争]]後To[[Soviet Union]]When対立して[[United States of America]]Such[[Western countries]]To接近。[[Socialism]]的Economy政策of転換、[[Israel]]Whenof融和Such、ナーセル体制of切り替えを進めた。[[1971]]ToIsConfederation崩壊後もEgyptof国号Whenして使用されてきた「アラブ連合Republic」of国号を捨てて'''Egypt・アラブRepublic'''To改称did。また、サーダートIsEconomyof開放SuchTo舵を切るうえso、左派To対抗させるべくイスラーム主義勢力をone部容認did。しかしサーダートIsIsraelWhenof和平を実現させたこWhenof反発を買い、[[1981]]To[[Islamic extremists]]of[[Egyptian Islamic Jihad]]Toよって[[assassination]]Was done.\n\n===Mubarak administration===\n[[File:Hosni Mubarak ritratto.jpg|thumb|180px|[[アラブof春]]so失脚To doまso30年以上Toわたり長期administrationを維持did[[Hosni Mubarak]]]]\n[[Iraq]]of[[Invasion of Kuwait]]IsEgyptof国際収支を悪化させた。サーダートTo代わって副PresidentFromPresidentTo昇格did[[Hosni Mubarak]]Is対米協調外交を進めるone方、[[Developmental dictatorship]]Typical[[administration]]を20年以上Toわたって維持did。\n\nムバラクadministrationIs1990年12月To「1000日計画」When称To doEconomy改革案を発表did。クウェート解放を目指す[[Gulf war]]soIs[[Multinational army]]へ2万人を派兵し、これToThan約130億ドルも[[対Foreign bonds務]]を減らすWhenいう外交成果を得た。累積債務Is500億ドル規模soあった。Military貢献ToThan帳消しWhenなった債務Isクウェート、[[Saudi Arabia]]To対To doもofWhen、さらTo対米Military債務67億ドルsoあった。1991年5月ToIs[[International Monetary Fund]]ofスタンDubaiクレジットand[[World Bank]]of構造調整借款(SAL)But供与Be done,[[Paris club]]Toおいて200億ドルof債務削減But合意Was done.EgyptEconomyof構造調整so画期的だったofIsドル・ペッグToよる為替レートone本化soあった<ref>『EgyptofEconomy発展of現状When課題』 [[海外Economy協力基金]]Development Assistance Research Institute 1998 p. 23</ref>。\n\n海外of[[Institutional investor]]To有利な条件But整えられていった。Islamism運動Is厳しく[[Repression]]Be done,[[Zakat|Disposal]]of精神Is失われていった。[[1997]]ToIs[[Islamic group]]Toよる[[Luxor case]]But発生している。1999年ToIslamic groupIs武装闘争放棄を宣言し、近年、観光客を狙った事件Is起こっていない。しかし、ムバーラクButPresident就任When同時To発令did[[Emergency law]]Is彼But追放されるまso30年以上Toわたって継続された<ref>[http://www.cnn.co.jp/world/30001719.html Egypt副PresidentButOpposition代表者らWhen会談、譲歩示す]</ref>。\n\n2002年6月、Egypt政府Is15億ドルof[[Eurobond]]を起債didBut、2002年From2003年To為替差損を被り、対Foreign bonds務を増加させた<ref>IMF, ''Arab Republic of Egypt: Selected Issues'', 2005, [https://books.google.co.jp/books?id=aZDSd_fjJzkC&pg=PT49&dq=reschedule+egypt+eurobond&hl=ja&sa=X&ved=0ahUKEwiD0qHpn8DbAhWLWbwKHXRrDGQQ6AEIJzAA#v=onepage&q=reschedule%20egypt%20eurobond&f=false]</ref>。\n\n=== ムルシーadministration ===\n[[File:Mohamed Morsi-05-2013.jpg|thumb|180px|民主化後初ofPresidentだった[[Mohamed Morsi]]]]\n{{Main|Egypt革命 (2011)|year 2012EgyptPresident選挙}}\n[[Tunisia]]of[[Jasmine Revolution]]To端を発did近隣諸国of民主化運動ButEgyptToおいても波及し、[[2011]]January、30年以上ToわたってDictatorship体制を敷いてきたムバーラクPresidentof辞任を求める大規模なデモBut発生did。同2月ToIsPresident支持派Toよるデモも発生して騒乱Whenなり、国内主要都市Toおいて大混乱を招いた。President辞任を求める声Is日To日To高まり、February 11、ムバーラクIsPresidentを辞任し、全権But[[EgyptSupreme Council of the Armed Forces]]To委譲Was done.同年12月7日ToIs{{Temporary link|Kamal Gansuri|en|Kamal Ganzouri}}を暫定Prime MinisterWhenTo doadministrationBut発足did。そof後、201112月From翌年JanuaryToかけてPeople's Assembly選挙But、またyear 20125月From6月ToかけてPresident選挙But実施され[[Mohamed Morsi]]But当選し、同年June 30ofPresidentTo就任didBut、People's AssemblyIsPresident選挙決選投票直前To、選挙法But違憲Whenof理由socourtFrom解散命令を出されており、立法権IsSupreme Council of the Armed ForcesBut有To doこWhenWhenなった。\n\nyear 20121January以降、新Constitutionof制定Suchをめぐって反政府デモOr暴動But頻発did({{Temporary link|year 2012-13年Egypt抗議運動|en|2012–13 Egyptian protests}})。ムルシーadministrationIsadministrationへof不満But大規模な暴動To発展To doToつれて、当初of警察改革を進める代わりTo既存of組織を温存To do方向To転換did。{{Temporary link|Muhammad Ibrahim Mustafa|ar|محمد إبراهيم مصطفى|label=Muhammad Ibrahim}}But内相To就任did[[2013]]January以降、Security forcesToよる政治家Orデモ隊へof攻撃But激化。January末ToIs当局Whenof衝突soデモ参加者Such40人More than死亡didBut、Security forcesへof調査Or処罰Is行われていない<ref>「『アラブof春』of国so繰り返される悪夢」 エリン・カニンガム 『Newsweek[[Newsweek]]日本版』 20133月5日号</ref>。イブラヒーム内相Is「国民But望むならば辞任To do用意Butある」When2月To述べている<ref>{{Cite news\n|url=http://english.ahram.org.eg/News/63894.aspx\n|title=I will leave my position if people want: Egypt's interior minister\n|newspaper=Aharam Online\n|date=2013-02-02\n|accessdate=2013-05-08\n}}</ref>.. Fall[[Egypt・lb]]ButWhenめどなく[[United States of Americaドル|US dollar]]To交換Be done,[[Foreign currency reserves]]を減らすような混乱But同月10日of[[Reuters]]so報じられている。下落IsJanuaryFrom起きており、同月ToIs[[Dubai]]ofエミレーツNBD([[:en:Emirates NBD|Emirates NBD]])But[[BNP Paribas]]ofEgypt支店を完全買収did。[[Oil money]]ButEgyptEconomyを我But物ToTo do社会現象But起こっていた。さらTo『[[Financial Times]]』ButJanuary19日To報じたofIs[[Ethiopia]]Butナイルof川上To48億ドルof予算をかけて[[dam]]を造るWhenいう計画soあった。混乱中ofEgyptBut水紛争so負ければ大きな水ストレスBut生じるだろうWhen予測Was done.\n\n20134月、[[Egypt中央銀行]]Is[[Libya]]From20億ドルof預金を得た。Libya側But利害を説明didWhenころToよるWhen、LibyaIsEgypt株を100億ドル近く保有しているWhenいう。LibyaIs[[Global financial crisis]]of時From欧米of[[Mega bank]]When癒着を疑われている。\n\nムルシーadministrationIs発足後約1年後of[[2013EgyptCoup d'etat|20137月3日、軍部ToよるCoup d'etat]]Toよって終焉を迎えた<ref>{{Cite news\n|url=http://middleeast.asahi.com/watch/2013070800008.html\n|title=EgyptofCoup d'etatTo至る過程:Asahi Shimbun記事再録\n|work=asahi.com\n|newspaper=[[Asahi Shimbun]]\n|date=2013-07-09\n|accessdate=2013-07-13\n}}</ref>。8月下旬ToムバラクBut釈放Be done,国内銀行But平常運転To復帰did。8月30日of[[CNN]]soIs[[Sinopec]]But米国[[Houston]]ofアパッチ([[:en:Apache Corporation|Apache Corporation]])WhenEgypt内[[Oil field]]事業を提携didこWhenBut報じられた。10月下旬、[[United Arab Emirates]]ButEgyptTo50億ドルof支援を申し出た。Egyptエリートof売国Whenソブリン危機Is翌年4月まso深化していった。\n\n Note、イブラヒームIsCoup d'etat後To成立did[[Hazem El Beblawee|Bebra Wee]]The provisional cabinet is also continuing to invest.\n\n=== アッ=シーシーadministration ===\n[[File:Abdel_Fattah_el-Sisi_September_2017.jpg|thumb|180px|[[Abdel Fattah Al-Cic]]。2013ofCoup d'etatを主導し、PresidentTo就任did]]\n May 26, 2014- 28日To行われたPresident選挙soIs2013ofCoup d'etatof主導者[[Abdel Fattah Al-Cic]]But当選して6月8日、PresidentTo就任し<ref>http://www.afpbb.com/articles/-/3017089 Egyptofシシ新PresidentBut就任、前Presidentof追放Fromほぼ1年</ref>、8月5日FromIs[[新Suez Canal]]of建設Such大規模なプロジェクトを推し進めた。[[2015]][[March 13]]ToIs[[Cairo]]of東側To向こう5 - 7年so、450億ドルを投じて新しい行政capitalof建設も計画しているこWhenを明らかTodid<ref>http://jp.reuters.com/article/topNews/idJPKBN0MC0B720150316 Egypt、Cairoof東To新行政capital建設へ=住宅相(Reuters)</ref>。行政WhenEconomyof中心Whenなる新capitalIsCairoWhenRed Seaof間To建設Be done,広さIs約700平方キロメートルso、米[[New York]]of[[Manhattan]]ofおよそ12倍of面積of予定soあり<ref>http://jp.wsj.com/articles/SB10030317691824024149004580519060782977390 Egypt、新capital建設を計画―CairoWhenRed Seaof間To</ref>、President府SuchEgyptof行政を担う地区Is当初覚書を交わdid[[United Arab Emirates]](UAE)of[[Emaar Properties]]Or[[中華人民Republic|China]]of[[China建築|China建築股份有限公司]]Whenof破談Isあったもofof[[2016]]4月To地元CompanyToよって工事を開始し<ref>{{Cite news|url=http://www.xinhuanet.com/english/2016-04/02/c_135246252.htm|tile=Egypt kicks off 1st phase of building new capital|work= [[Xinhua]]|date=2016-04-02|accessdate=2018-06-25}}</ref>、代わりToEgypt政府Butpyramid<ref>{{Cite news|url= https://zhuanlan.zhihu.com/p/41444500|title=Dust总理表示,将新capitalCBD项目建成“金字塔”one样的地标|work=Zhihu|date=2018-08-06|accessdate=2018-08-18}}</ref>To匹敵To doone大事業of[[Landmark]]When位置づけている、AfricasoもっWhenも高いビルも建設予定IsEconomyを担う[[Central business district]]をChinaCompanyBut請け負って[[2018]]3月To着工did<ref>{{Cite news|url=http://www.xinhuanet.com/english/2017-10/12/c_136672905.htm|tile=Chinese firm finalizes deal for building huge business district in Egypt's new capital|work= amwalalghad|date=2017-10-12|accessdate=2018-07-28}}</ref><ref>{{Cite news|url=http://en.amwalalghad.com/china-to-build-egypt-africa-tallest-tower-in-new-capital-spokesperson/|tile=China to build Egypt-Africa tallest tower in new capital: spokesperson|work= amwalalghad|date=2018-06-28|accessdate=2018-06-29}}</ref><ref>{{Cite news|url=https://www.bloomberg.com/news/articles/2018-03-18/china-to-finance-majority-of-new-egypt-capital-s-tower-district|tile=China to Finance Majority of New Egypt Capital's Tower District|work= [[Bloomberg(Company)|Bloomberg]]|date=2018-03-18|accessdate=2018-07-28}}</ref><ref>{{Cite news|url= http://eg.mofcom.gov.cn/article/todayheader/201803/20180302720170.shtml|title=中建Dust新行政capitalCBD项目开工仪式在开罗举行|work= 中華人民Republic駐Egypt大使館|date=2018-03-21|accessdate=2018-06-25}}</ref>。\n\nUAEOrChinaWhen破談did背景ToIs通貨不安But存在To do。20161January3日、Egypt中央銀行But[[Floating exchange rate system]]を採用To doWhen発表did。Egypt・lbBut売られるofを革命of影響だけso片付けるToIsこof不安Is長引きすぎている。同行Is6日後、国際金融機関From20億ドルof[[Shadow banking system#Repo market|Repo borrowing]]を始めた。4月To[[International Monetary Fund]]Fromも120億ドルを借りている。EgyptIsEconomy主権を失っている。[[Guardian]]But10月4日To報じたWhenころsoIs国際金融機関of[[Barclays]]ButEgypt事業を[[Danone#Wafa Bank|Wafa Bank]]To売却did。\n\n2017年末、政府But[[World Bank]]To対し、Ethiopiaofdam事業を差し止めるようTo要請did。世銀Is5月ToEgyptへ10億ドルを追加融資しており、EgyptIs厳しい立場It is in。翌2018January中旬ToEthiopiaWhenof水紛争But妥協To至った。5月末ToEgyptof対Foreign bonds務累積額Is829億ドルsoあった。9月、ムバラクof息子ら2人([[:en:Gamal Mubarak|Gamal]] and [[:en:Alaa Mubarak|Alaa]])ButEgyptof株価を操作did疑いso逮捕Was done.\n\n==Politics==\n{{Egyptof政治}}\n{{Main2|詳細Is{{Temporary link|Egyptof政治|en|Politics of Egypt|ar|السياسة في مصر}}and[[近代EgyptofHead of Stateofone覧]]}}\n\n===Polity===\n[[Republic]]\n=== President ===\n[[Head of State]]ofPresidentIs立法・行政・司法of三権Toおいて大きな権限を有To do。また国軍([[Egypt軍]])of[[General Commander|HQ Commander]]soもある。Presidentof選出Is[[Direct election]]Toよる。任期Is4年so、三選禁止Whenなった<ref>{{Cite journal|Japanese book|author =Emi Suzuki|coauthors = |title = Egypt革命以後of新体制形成過程Toおける軍of役割|journal =Area studies|volume = 12|issue = 1|pages = 135-147|publisher =Center for Southeast Asian Studies, Kyoto University|location = |date = 2012-03-28|language = |url = http://www.cias.kyoto-u.ac.jp/publish/?cat=4|jstor = |issn = 1349-5038 |isbn =978-4-8122-1178-6|doi = |id = |naid = |accessdate = 2012-06-17}}</ref>。最高President選挙委員会(The Supreme Presidential Election Commission, SPEC)委員長Is最高Constitutional court長官But兼任していたBut、現在Is副長官Butそof任を負う。\n\n第2代President[[Gamal Abdel Nasser]]以来、事実上of終身制But慣例so、第4代President[[Hosni Mubarak]]Is[[1981]]of就任以来、約30年Toわたって[[Dictatorship]]体制を築いた。ムバーラクof[[Pro-US]]·parent[[Israel]]路線But欧米諸国Toよって評価されたためTo、DictatorshipBut見逃されてきた面There is.当時Is任期6年、多選可。議会But候補者を指名し、国民Is[[Confidence vote]]を行っていた。ただし、Year 2005Is複数候補者ToよるPresident選挙But実施Was done.\n\n[[2011]]9月ToPresident選But予定されていたBut、2011JanuaryTo騒乱状態Whenなり、[[February 11]]、ムバーラクIs国民of突き上げを受ける形so辞任did。翌日Than[[Minister of Defense]]so[[EgyptSupreme Council of the Armed Forces|Supreme Council of the Armed Forces]]議長of[[Mohamed Hussein Tanterwe]]But元首代行を務め、それIs[[year 2012EgyptPresident選挙]]of当選者[[Mohamed Morsi]]But[[June 30]]ToPresidentTo就任To doまso続いた。2011[[March 19]]、[[Constitutional amendment]]To関To do[[Referendum]]But行われ、承認された<ref name=jpnmofa>{{Cite web|title = Egypt・アラブRepublic 基礎データ|work =Country: Regional situation|publisher =Ministry of Foreign Affairs (Japan)|url = http://www.mofa.go.jp/mofaj/area/egypt/data.html|accessdate =2016-10-01}}</ref><ref>{{Cite web|title = Egypt基礎情報~政治・外交|work = Egypt情報|publisher = 在Egypt日本国大使館|date = 2011-07-30|url = http://www.eg.emb-japan.go.jp/j/egypt_info/basic/seiji.htm|accessdate =2016-10-01}}</ref>。\n\nしかしムルシーadministration発足Fromわずか1年後of2013、[[2013EgyptCoup d'etat|MilitaryCoup d'etat]]But勃発。ムルシーIs解任Be done,EgyptIs再び軍Toよる統治へWhen逆戻りdid。2014年JanuaryTo再びConstitutionBut修正され<ref name=jpnmofa />、同年5月ofPresident選挙を経て再び民政へWhen復帰did。\n\n===Parliament===\n議会Is[[one院制]]of'''People's Assembly'''(マジュリス・アッ=シャアブ)。全508議席so、498議席Is公選、10議席IsPresident指名枠<ref>201112月現在soIs定数498議席ofうち、3分of2(332 seats)ButPolitical party(連合)リストToよる[[Proportional representation system]]so、3分of1(166 seats)But[[Single-seat constituency system]]so選出される</ref>。任期5年。これWhenIs別To、'''Advisory Council'''(シューラ)But1980年設置されたBut、立法権Is有さないPresidentof諮問機関Is<ref>{{Cite web| author =Emi Suzuki\n | coauthors =\n | title = Egypt\n | work = Middle East・イスラーム諸国of民主化\n | publisher =NIHU Program Islamic Area Studies, University of Tokyo\n | date =\n | url = http://www.l.u-tokyo.ac.jp/~dbmedm06/me_d13n/database/egypt/egypt_all.html\n | format =\n | doi =\n | accessdate = 2012-06-15}}</ref>。全270議席so、180議席But公選、90議席ButPresident指名枠。\n\n===election===\n2011[[November 21]]、[[Essam Sharaf]]暫定内閣IsデモWhen中央[[Security forces]]of衝突so多数of死者But出たこWhenof責任を取りSupreme Council of the Armed Forcesへ辞表を提出did。Supreme Council of the Armed Forces議長TantaウィーIs[[November 22]]テレビso演説し、「28日FromofPeople's Assembly選挙を予定通り実施し、次期President選挙をyear 20126月末まsoTo実施To do」When表明did<ref>[http://www.asahi.com/special/meastdemo/TKY201111220122.html Egypt・シャラフ内閣But総辞職表明 デモof混乱so引責] 『Asahi Shimbun』 2011November 22</ref><ref>[http://www.asahi.com/special/meastdemo/TKY201111230004.html Egypt軍議長「近く挙国one致内閣」Whenテレビ演説] 『Asahi Shimbun』 20111January23日</ref><ref>[http://www.asahi.com/special/meastdemo/TKY201111250136.html Egypt軍議長、元Prime MinisterTo組閣要請 選挙管理内閣を想定] 『Asahi Shimbun』 20111January25日</ref>。People's Assembly選挙Is2011[[November 28]]From[[year 2012]][[January]]まsoTo、行政区ごWhenTo3回To分けて、また、投票日を1日so終わりToせず2日間をWhenり、大勢of投票soof混乱を緩和し実施、Advisory Council選挙も[[March 11]]まsoTo実施Was done.また[[May 23]]When[[May 24|24th]]To[[year 2012EgyptPresident選挙|President選挙]]of投票But実施Was done.\n\n But[[June 14]]To最高[[Constitutional court]]But出did「現行of議会選挙法Is違憲so無効(3分of1of議員Toついて当選を無効When認定)」Whenof判決を受け<ref>[http://www.asahi.com/international/reuters/RTR201206150031.html「Egypt議会選Is無効」、Constitution裁ButPresident選直前To違法判断] 『Asahi Shimbun』 year 20126月15日</ref><ref>[http://www.news24.jp/articles/2012/06/15/10207632.html Egypt議会、解散へ President選Toも影響か] [[NTV NEWS24]] year 20126月15日</ref>、[[June 16|16th]]まsoToTantaウィー議長IsPeople's Assembly解散を命じた<ref>{{Cite news\n  | author = Cairo共同\n | title = Egypt、軍But議会To解散命令 Constitutional courtof判断so\n | newspaper = 47NEWS\n | location =\n | pages = 6\n | language =\n | publisher =Kyodo news\n | date = 2012-06-18\n | url = http://www.47news.jp/CN/201206/CN2012061701001315.html\n | accessdate = 2012-06-18}}</ref>。President選挙of決選投票IsJune 16When[[June 17|17th]]To実施Be done,Islamism系of[[Mohamed Morsi]]But当選did。\n\n===Political party===\n{{main|EgyptofPolitical party}}\n\n20113月28日To改正Political party法But公表Be done,EgyptsoIs[[religion]]を基盤Whendid[[Political party]]But禁止Was done.そofため、[[Muslim Brotherhood]](事実上of最大[[Opposition]]soあった)SuchIs非合法化Be done,初めてof選挙(People's Assembly選挙)soIsMuslim Brotherhoodを母体WhenTo do[[Freedom and Justice Party]]({{lang-ar|حزب الحرية والعدالة}} - {{lang|en|Ḥizb Al-Ḥurriya Wal-’Adala}}, {{lang-en-short|Freedom and Justice Party}})But結成Was done.また、[[Al-Nour Party]]([[Salafiism]], Islamic conservatives),[[New Wafd Party]](Egypt最古ofPolitical party)、[[Political party連合]]{{Temporary link|Egypt・ブロック|en|Egyptian Bloc}}(Including[[自由Egypt人党]](Secular),[[Egypt社会民主党]](Center-left),[[国民進歩統one党]](Left)),[[WasatParty]]、{{Temporarylink|Politicalparty連合革命継続|en|TheRevolutionContinuesAlliance}}、{{Temporarylink|JusticeParty|en|JusticeParty(Egypt)|label=Justiceparty}}({{lang-ar|حزبالعدل}}-{{lang|en|HizbElAdl}},{{lang-en-short|JusticeParty}}、今回of革命of中心を担った青年活動家ToよるPoliticalparty)Such、全部so50以上ofPoliticalpartyBut参加していた<ref>{{Citeweb\n|last=\n|first=\n|authorlink=\n|coauthors=\n|title=Egypt・アラブRepublic基礎データ\n|work=Country:Regionalsituation\n|publisher=MinistryofForeignAffairs(Japan)\n|date=\n|url=http://www.mofa.go.jp/mofaj/area/egypt/data.html\n|format=\n|doi=\n|accessdate=2012-06-17}}</ref><ref>{{Citeweb\n|last=\n|first=\n|authorlink=\n|coauthors=\n|title=Egypt基礎情報~政治・外交\n|work=Egypt情報\n|publisher=在Egypt日本国大使館\n|date=2011-07-30\n|url=http://www.eg.emb-japan.go.jp/j/egypt_info/basic/seiji.htm\n|format=\n|doi=\n|accessdate=2012-06-17}}</ref>。\n\n===government===\n*{{Temporarylink|EgyptofPrimeMinister|en|PrimeMinisterofEgypt|label=PrimeMinister}}・{{Temporarylink|MustafaMadboury|en|MoustafaMadbouly}}20186月就任。\n*{{Temporarylink|EgyptofMinisterofDefenseofone覧|en|ListofMinistersofDefenceofEgypt|label=MinisterofDefense}}・{{Temporarylink|SedokiSobhi|en|SedkiSobhi}}2014年3月就任、Egypt軍GeneralCommander。\n\n==Judiciary==\n{{Main2|詳細Is[[Egyptof法]]}}\n[[NapoleonicCode]]When[[Islamiclaw]]To基づく、混合did法システム<ref>{{Citeweb|title=Egypt|publisher=CIA-TheWorldFactbook|url=https://www.cia.gov/library/publications/the-world-factbook/geos/eg.html|accessdate=2012-06-15}}</ref>。FranceWhen同じく、司法訴訟When行政訴訟Is別of系統ofcourtBut担当Todo。{{Temporarylink|FranceToおけるcourtoftwo元性|fr|DualitédesordresdejuridictionenFrance}}reference.\n*{{Temporarylink|最高Constitutionalcourt|en|SupremeConstitutionalCourtofEgypt}}-法律But違憲か否かを判断Todo。1979年設立。長官Isアドリー・マンスール(20137月1日-)<ref>{{Citeweb|title=AperçuHistorique|publisher=最高Constitutionalcourt\n|url=http://www.hccourt.gov.eg/About/history.asp\n|accessdate=2013-08-27}}</ref>。ほか、10人of判事Is1998年From20137月まsoTo着任している<ref>{{Citeweb|title=CurrentMembersoftheCourt|publisher=最高Constitutionalcourt\n|date=\n|url=http://www.hccourt.gov.eg/CourtMembers/CurrentCourt.asp\n|accessdate=2013-08-27}}</ref>。長官Is[[最高President選挙委員会]](TheSupremePresidentialElectionCommission,SPEC)of委員長を兼任していた<ref>{{Citenews\n|author=KinhiroKanto\n|title=Egypt司法But逆襲ムバラク裁判「判決批判許さん」\n|newspaper=AsahiShimbun|date=2012-06-09\n|url=http://digital.asahi.com/articles/TKY201206080567.html?ref=comkiji_txt_end\n|accessdate=2012-06-15}}</ref>But、year20129月ToIs副長官ハーティム・バガートゥーBut務めていた<ref>{{Citeweb\n|title=MiddleEast要人講演会\n|newspaper=MiddleEast調査会|date=\n|url=http://www.meij.or.jp/members/20120903124551000000.pdf\n|accessdate=2012-09-09}}</ref>。\n*[[MinistryofJustice]]管轄ofone般of[[court]]-[[最高court]]([[CourtofCassation]]、1931年設立)When以下of[[下級court]]([[CourtofAppeals]]、[[第one審]]court、[[地区court]]and[[家庭court]]-2004設立)Fromなる。\n*[[StateCouncil]]管轄of[[行政court]]-[[Conseild'Eta]]-Establishedin1946<ref>{{Citeweb|title=JudiciaryAuthority|publisher=EgyptStateInformationService\n|url=http://www.sis.gov.eg/En/Templates/Categories/tmpListArticles.aspx?CatID=248\n|accessdate=2013-08-29}}</ref>。2011[[February19]]、従来of[[Politicalparty委員会]](政府運営)of申請却下To対Todo不服申し立てを認めた形of判決so、[[Politicalparty]]of許認可<ref>{{Citeweb|title=EgyptsoイスラームPoliticalpartyBut認可|work=[MiddleEast研ニュースリポート]|publisher=[[日本エネルギーEconomy研究所]]MiddleEast研究センター|date=February21\n|url=http://jime.ieej.or.jp/htm/extra/ronbun/003pol.htm\n|format=\n|doi=\n|accessdate=2012-05-19}}</ref>,[[4月16th]]、[[Rulingparty]]・[[DemocraticPartyforthePeople(Egypt)|DemocraticPartyforthePeople]](NDP)of解散を裁定did。\n\n==Internationalrelations==\n{{main|{{Temporarylink|Egyptof国際関係|en|ForeignrelationsofEgypt}}}}\n国力、culture的影響力Suchof面FromArabworldofリーダーWhenなっている。GamalAbdelNasser時代ToIs[[Non-alignedcountries]]of雄WhenしてアラブTo限らない影響力を持ったBut、ナーセル死後Isそof影響力Is衰えた。ナーセル時代Is親ソ連だった外交Isサーダート時代To入ってPro-US路線Whenなり、さらToそれTo伴いIsraelWhenof外交関係But進展。1978年of[[CampDavidAccords]]Whenそof翌年ofIsraelDiplomaticrelations回復ToよってPro-US路線Is確立didBut、これIsIsraelを仇敵WhenTodoArabcountriesof憤激を買い、ほWhenんどofArabcountriesFrom断交されるこWhenWhenなった。そof後、[[1981]]ToサーダートButassassinationされたあWhenToadministrationを握ったムバーラクIsPro-US路線を堅持Todoone方、ArabcountriesWhenof関係回復を進め、1988ToIs[[Syria]]、[[Lebanon]]、[[Libya]]を除くすべてofArabcountriesWhenof関係But回復did<ref>"EncyclopediaofAfrica",Heibonsha,ISBN4-582-12623-5February6,1989Firstedition,firstprintp.58</ref>。以降Isアラブof大国Whenして域内諸国When協調Todoone方、Africaofone国Whenして20049月ToIs[[UnitedNationsSecurityCouncil]]of[[Permanentmembercountry]]入りを目指すこWhenを表明did。[[2011]]、[[Palestine]]of[[Gaza]]of[[BorderBordercrossing|Bordercrossing]]を開放did。また、[[Iran]]Whenof関係を修復しようWhenしている<ref>[http://www.asyura2.com/11/lunchbreak47/msg/284.htmlEgypt:Gaza、出入り自由ToBordercrossing開放、外交転換鮮明To]</ref>。\n\nシーシーadministrationIsMuslimBrotherhoodadministration時代ofこうdid外交政策WhenIsone線を画している。欧米Or日本、Pro-USArabcountries、Israelofほか、ChinaOr[[Russia]]<ref>[https://www.nikkei.com/article/DGXMZO24487270R11C17A2FF2000/「RussiaButMiddleEastTo接近プーチンPresident、EgyptToMilitary協力米ofMiddleEast政策of揺らぎつく」][[日本Economy新聞]]ニュースサイト(2017年1February11)2019年January9日閲覧。</ref>SuchWhen広範な協力関係を築いている。\n\n[[Qatardiplomaticcrisis2017]]soIsSaudiArabiaWhenWhenもTo、MuslimBrotherhoodを支援してきたカタールWhen[[Diplomaticrelations]]を断絶did国ofひWhenつWhenなった。またSaudiArabiaWhenIs[[GulfofAqaba]]口To架橋して陸上往来を可能WhenTodoプロジェクトBut話し合われた([[TiranIsland]]See).\n\n===日本国Whenof関係===\n{{Main|日本WhenEgyptof関係}}\n\n==Military==\n[[File:AbramsinTahrir.jpg|thumb|Armyof主力戦車[[M1Abrams]]]]\n{{Main|Egypt軍}}\nMiddleEast有数ofMilitary大国soあり、IsraelWhenMilitary的To対抗soきる数少ないアラブ国家IsWhen目されている。2010年1January見積もりof総兵力Is46万8,500people.[[Reserve]]479,000人。兵員数Is[[Army]]340,000people([[Militarypolice]]including),[[Navy]]18,,500people([[Coastguard]]including),[[AirForce]]30,000people,[[防AirForce]]80,000people<ref>{{Citebook\n|title=TheMiddleEastandNorthAfrica2012\n|publisher=Routledge\n|edition=58th\n|date=2011\n|page=380\n|isbn=978-1-85743-626-6}}</ref>。内務省管轄of中央[[Securityforces]]、[[Border警備隊]]When国防省管轄of革命[[NationalGuard]](President[[Guards]])of[[準Military組織]]But存在Todo。\n\nIsraelWhenIs4度Toわたる[[MiddleEast戦争]]so毎回干戈を交えたBut、[[第two次MiddleEast戦争]]so政治Typical勝利を得、[[第四次MiddleEast戦争]]of緒戦so勝利を収めたほかIs劣勢ofまま終わっている。そof後IsIsraelWhen接近し、シーシーadministration下soIsSinaiPeninsulaso活動Todo[[Islamicextremists]]([[ISIS]])To対Todo掃討作戦so、[[IsraelAirForce]]Toよる[[bombing]]を容認しているこWhenを公式To認めた<ref>[http://www.tokyo-np.co.jp/article/world/list/201901/CK2019010602000123.html「対ISIsraelWhen協力」EgyptPresident治安重視]『[[TokyoShimbun]]』朝刊2019年January6日(国際面)2019年January9日閲覧。</ref>。\n\nMilitary的ToIsアメリカWhen協力関係Itisinため、[[NorthAtlanticTreatyOrganization]](NATO)ofメンバーsoIsないもofof同機構WhenIs親密な関係を保っている。また、RussiaOrChinaFromも武器of供給を受けており、中露of主導Todo[[ShanghaiCooperationOrganization]]へof参加も申請している<ref>{{Citeweb|date=2015-07-11|url=http://jp.sputniknews.com/politics/20150710/556387.html|title=ShanghaiCooperationOrganization事務総長:機構Isカラー革命Such恐れていない|publisher=SputnikJapan|accessdate=2019-08-18}}</ref><ref>{{Citeweb|date=2015-07-27|url=http://arab.rbth.com/news/2015/07/27/30859.html|title=وزيرالخارجيةالمصري:مصرلاتستبعدعضويتهافيمنظمة\"شنغهاي\"للتعاونفيالمستقبل|روسياماوراءالعناوين|publisher=RussiaNOWArabic版|accessdate=2019-08-18}}</ref><ref>{{Citeweb|date=2016-06-23|url=http://www.interfax.com/newsinf.asp?id=683491|title=Syria,Israel,EgyptwillingtojoinSCO'sactivity-president'sspecialenvoy|publisher=[[Interfaxcommunication]]|accessdate=2019-08-18}}</ref>。\n\n==Localadministrativedivision==\n[[File:GovernoratesofEgypt.svg|thumb|right|280px|Egyptof行政区画]]\n{{Main|EgyptofPrefecture}}\nEgyptof最上級of地方行政単位Is29あるムハーファザ({{lang|ar|محافظة}},'''Prefecture'''、'''state'''When訳されるこWhenもある)Is。[[Governor]]Is中央政府From派遣される官選Governorso、内務省of管轄下Toおいて中央集権体制をWhenる。極端な行政区分soNile流域Orナイル下流Is非常To細分化されているToもかかわらず、南部Is非常To大まかTo分けられている。これIsナイル流域以外But全域Desertsoあり、居住者ButほWhenんどいないこWhenToよるもofIs。\n\n===Majorcities===\n{{Main|Egyptof都市ofone覧}}\n{{Main|EgyptofPrefecture}}\n{{Col-begin}}\n{{Col-break}}\n*[[Asyut]]\n*[[Aswan]]\n*[[Malawi]]\n*[[AbuSimbel]]\n*[[Alexandria]]\n*[[Ismailia]]\n*[[Inverba]]\n*[[Esna]]\n*[[Edfu]]\n*[[ElAlamein]]\n*[[Cairo]]\n{{Col-break}}\n*[[Kena]]\n*[[Giza]]\n*[[KomOmbo]]\n*[[Zagazig]]\n*[[Saqqara]]\n*[[SharmelSheikh]]\n*[[Suez]]\n*[[SubraElKhaymah]]\n*[[SohagPrefecture|Sohag]]\n*[[Damanhour]]\n*[[Tanta]]\n{{Col-break}}\n*[[Damietta]]\n*[[Hurghada]]\n*[[Faiyum]]\n*[[BeniSuef]]\n*[[PortSaid]]\n*[[El-MahallaEl-Cobra|MahallahCubler]]\n*[[Mansoura]]\n*[[MiniyaーPrefecture|Miniya]]\n*[[Memphis(Egypt)]]\n*[[Luxor]]\n*[[Rosetta(Egypt)|Rosetta]]\n{{Col-end}}\n<!--Inalphabeticalorder-->\n\n==Geography==\n{{Main2|詳細Is{{Temporarylink|Egyptof地理|en|GeographyofEgypt}}}}\n[[File:EgyptTopography.png|thumb|200px|Egyptof地形図]]\n[[File:Egypt2010populationdensity1.png|thumb|200px|Egyptof人口分布図]]\n[[Africancontinent]]北東隅To位置し、国土面積Is100万2,450㎢so、世界so30番目of大きさIs。国土of95%IsDesertso、Nileof西側ToIs[[サハラDesert]]ofone部Is西部Desert([[LibyaDesert]])、東側ToIs[[RedSea]]When[[Suez湾]]To接Todo[[東部Desert]]({{lang|ar|الصحراءالشرقية}}-シャルキーヤDesert)Thereis.西部DesertToIs海抜0m以下Whenいう地域But多く、面積18,,000km<sup>2</sup>of広さをもつ[[QattaraDepression]]Is海面Than133mも低く、[[Djibouti]]of[[LakeAssal]]To次いsoAfricancontinentso2番目To低い地点Is。[[SinaiPeninsula]]of北部IsDesert、南部Is山地Toなっており、Egypt最高峰of[[MountCatherine]](2,637m)Or、[[TheOldTestament]]so[[Moses]]But[[MosesofTenCommandments|TenCommandments]]を授かったWhenいわれる[[MountSinai]](2,285m)Thereis.SinaiPeninsulaWhenナイルKawataniWhenof間Is[[Suez湾]]But大きく湾入して細くくびれており、ここBut[[Africancontinent]]When[[Eurasia]]of境目Whenされている。こof細い部分Is低地Isため、[[SuezCanal]]But建設Bedone,RedSeaWhenMediterranean、ひいてIsEuropeWhenAsiaを結ぶ大動脈Whenなっている。\n[[File:SF-E-CAMERON2006-10-EGYPT-LUXOR-0439.JPG|thumb|left|200px|[[Nile]]]]\n[[Nile]]Is南隣of[[Sudan]]so[[白Nile]]When[[青Nile]]But合流し、Egypt国内を南北1,545KmToもわたって北上し、河口so広大な[[delta|delta]]Form[[Mediterranean]]Toそそぐ。[[Aswan]]以北Is人口稠密なKawataniBut続くBut、幅Is5KmほどWhenさほど広くない。上Egypt中部ofキーナsoof湾曲以降IsOrOr幅But広Butり<ref>『朝倉世界地理講座AfricaI』初版所収「Nileof自然形態」春山成子、2007年4月10日(朝倉書店)p198</ref>、[[Asyut]]近辺so分岐of支流But[[Faiyum]]近郊of[[Qarunlake|QarunLake]]({{lang|ar|BirketQarun}}、かつてof[[Qarunlake]])へWhen流れ込む。こof支流Toよって、QarunLake近辺Is肥沃な{{Temporarylink|Faiyum・oasis|en|FaiyumOasis}}Formいる。one方、本流Is[[Cairo]]近辺so典型Typical扇状deltaWhenなる'''[[ナイル・delta]]'''IsMediterraneanTo向かって約250Kmも広Butっている。かつてIsNileToよって運ばれる土so、delta地域Is国内soもっWhenも肥沃な土地だったBut、[[Aswan・ハイ・dam]]ToよってNileof水量But減少didため、MediterraneanFrom逆To塩水But入りこむようToなった。ナイルKawataniIs古くFrom[[下Egypt]]When[[上Egypt]]Whenいう、Cairoを境Todid2つof地域To分けられている。前者Isdelta地域を指し、後者IsCairoFrom上流of谷を指している。ナイルKawataniIs世界soももっWhenも[[Populationdensity]]of高い地域ofひWhenつIs。\n\nナイルKawatani以外ToIsほWhenんど人Is住まず、わずかな人But[[oasis]]To集住しているofみIs。乾燥But激しく地形Butなだらかなため、特ToLibyaDesert側ToIs[[Wadi]](Drippingriver)But全くない。[[シワ・oasis|Shiwa]]、[[Farafra(Egypt)|Farahula]]、[[Kharga]]、バハレイヤ、ダフラWhenいった[[oasis]]But点在している<ref>"MillioneWorldEncyclopedia"Volume10AfricaI([[Gakken]]、1980年1January)p206</ref>。ナイル以東ofシャルキーヤDesertIs地形ButOrOr急峻soあり、WadiButいくつか存在Todo。RedSea沿岸も降雨IsほWhenんどないBut、ナイルWhen[[ArabianPeninsula]]を結ぶ重要な交通路To位置しているため、いくつかof小さな港But存在Todo。\n\n===Border===\n1885年ToGreatpowerBut[[Germany]]of[[Berlin]]so開いた会議so、それまsoTo植民地化していたAfricaof分割を確定did。LibyaBorderof大部分so[[25thmeridianeastline|25degreeseastlongitude]]To、SudansoIs[[22ndparallelnorth|22degreesnorthlatitude]]To定めたため、BorderBut直線的Is。\n\nSudanWhenof間soIsEgyptBut[[Effectivecontrol]]Todo[[Hala'ibTriangle]]To対してSudanも領有権を主張している。one方、そof西Itisin[[BirTawil]]Is両国Whenも領有権を主張していない[[Terranullius]]Is。\n\n===climate===\n{{Main2|詳細Is{{Temporarylink|Egyptof気候|en|ClimateofEgypt}}}}\n国土of全域But[[Desert気候]]so人口IsナイルKawataniand[[delta地帯]]、[[SuezCanal]]付近To集中し、国土of大半Is[[サハラDesert]]To属Todo。夏ToIs日中of気温Is40℃を超え、50℃ToなるこWhenもある。降雨IsわずかTo[[Mediterranean|Mediterranean岸]]ItisinToすぎない。冬of平均気温Is下Egyptso13-14℃、上Egyptso16℃程度Is。201312月ToIsCairo市内soも降雪・積雪ButあったBut、観測史上初WhenいうこWhenso注目Wasdone.\n\n==Economy==\n{{Main2|詳細Is{{Temporarylink|EgyptofEconomy|en|EconomyofEgypt}}}}\n[[File:ViewfromCairoTower31march2007.jpg|thumb|left|220px|CairoIsbusiness、culture、政治Suchを総合評価did[[Worldcities#世界When指数|Worldcities格付け]]soAfrica第1位of都市When評価された<ref>[http://www.atkearney.com/documents/10192/4461492/Global+Cities+Present+and+Future-GCI+2014.pdf/3628fd7d-70be-41bf-99d6-4c8eaf984cd52014GlobalCitiesIndexandEmergingCitiesOutlook](PublishedinApril2014)</ref>]]\n\n2018ofEgyptof[[GDP]]Is約2,49.6billionドル(約27兆円)、one人当たりsoIs2,573ドルIs<refname=\"economy\"/>。AfricasoIs屈指ofEconomy規模soあり、[[BRICs]]of次ToEconomy発展But期待soきるWhenされている[[NEXT11]]ofone国Toも数えられている。しかし、one人当たりofGDPsoみるWhen、MiddleEastOrNorthafrica諸国of中soIs最低水準soあり、[[Turkey]]of約4分of1、[[Iran]]of半分To過ぎず、更To同じNorthafrica諸国Is[[Tunisia]]Or[[Morocco]]To比べても、水準Is低い<refname=\"EgyptEconomyof現状When今後of展望\">{{Citereport|author=HorieMasato|date=2019-01-08|title=EgyptEconomyof現状When今後of展望 ~Economyof復調But注目されるMiddleEastNorthafricaof大国Egypt~|url=https://www.murc.jp/report/economy/analysis/research/report_190108/|publisher=[[MitsubishiUFJResearch&consulting|MitsubishiUFJResearch&consulting株式会社]]|accessdate=2020-02-03}}</ref>。\n\n[[SuezCanal]]収入When[[Tourismindustry]]収入、更ToIs在外労働者Fromof送金of3大外貨収入of依存But大きく、Egypt政府Isそれらof手段To安易To頼っている<refname=\"EgyptEconomyof現状When今後of展望\"/>。更To政情To左右されOrすい。\n\nかつてIs[[Cotton]]of世界的生産地soあり、Nileofもたらす肥沃な土壌Whenあいまって農業But重要な役割を果たしていた。しかし、通年灌漑of導入Toよってナイルof洪水To頼るこWhenBut減り、Aswan・ハイ・damof建設Toよって、上流Fromof土壌Butせき止められるようToなった。そofため、damToよる水位コントロールToよって農地But大幅To拡大did。農業生産高But格段To上ButったToもかかわらず、[[fertilizer]]of集中投入SuchBut必要Toなったため、コストBut増大し、近年代表Typical農業製品Is綿製品Is価格競争Toおいて後塵を拝している。\n\n[[1970代]]To農業of機械化and各種生産業Toおける機械へof転換ToThan、地方soof労働力of過剰供給But見受けられ、労働力Is都市部To流出し、治安・衛生of悪化及び社会政策費of増大を招いた。80年代ToIs[[oil]]産業従事者of増大To伴い、農業Toおいて労働力不足But顕著Whenなる。こofためCottonand綿製品of価格上昇を招き、国際競争力を失った。1990年代From、[[InternationalMonetaryFund|IMF]]of支援を受けEconomy成長率5%を達成TodoBut、社会福祉政策of低所得者向け補助of増大andunemployment率10%前後When支出of増大To加え、資源To乏しく食料も輸入To頼るため、2004ToIs物価上昇率10%To達TodoSuchof構造的問題を抱えている。現状、中小Company育成Toよる国際競争力of強化、雇用創生To取り組んsoいるBut、結果But出ていない。[[2004]]ofナズィーフ内閣But成立後Is国営Companyof民営化and税制改革To取り組んsoいる。[[2008]]、世界Typical食料高騰ToよるデモBut発生did。\n\nAlso,"[[アラブof春]]」ToThan、year2012~2014年of間Is2~3%台Whenone時低迷していたBut、そof後政情of安定化ToThan、2015ToIs4%台To回復している。また[[IMF]]of勧告を受け、2016To[[exchangerate]]of大幅切り下げOr[[Subsidy]]削減Suchof改革をdidこWhenso、Economy健全化へof期待感Than、外国Fromof資本流入But拡大していき、Economyof復調を遂げている<refname=\"EgyptEconomyof現状When今後of展望\"/>。\n\n農業Is農薬Suchを大量To使っているため世界oneコストof高い農業WhenなっているButそれなりof自給率を保っているし果物Is日本ToもジャムSuchTo加工され輸出されている。工業IsoilSuchof資源IsないBut様々な工業But発展しており今後も成長But見込まれる。近年ITIC産業But急速To成長している。\nしかしなButらGDPof約半分But軍関連CompanyBut占めていて主To農業 建築業Suchof工業を担っている。\n金融Isイスラーム銀行も近代式銀行of両方Whenも発達しており投資家層も厚くトランプadministrationToIsEgyptof敏腕女性投資家But起用されている。\n\n==traffic==\n{{Main|Egyptof交通}}\nEgyptof交通of柱Is歴史上常To[[Nile]]soあった。[[Aswan・ハイ・dam]]of建設後、Nileof流れIs穏OrかToなり、交通路Whenして安定性But増did。しかし貨物輸送Isトラック輸送But主Whenなり、内陸水運of貨物国内シェアIs2%Toすぎない。[[Farruca]]Whenいう伝統Typical[[Sailingship]]Or、観光客用ofリバークルーズSuchof運航もある。\n\n[[Railroad]]Is国有of[[EgyptRailroad]]But運営している。営業キロIs5,063キロToofぼり、Cairoを起点Whenして[[Niledelta]]Or[[ナイルKawatani]]of主要都市を結んsoいる。\n\n航空Is[[Flagcarrier]]Is[[Egypt航空]]を筆頭Toいくつもof航空会社But運行している。[[Cairo国際空港]]Isこof地域of[[Hubairport]]ofoneつIs。\n\n==People==\n{{Main2|詳細Is{{Temporarylink|Egyptof人口統計|en|DemographicsofEgypt}}}}\n[[File:Cairomosques.jpg|thumb|left|220px|[[Cairo]]of[[Mosque]]]]\n===Populationcomposition===\n[[File:Egyptpopulationpyramid2005.svg|thumb|[[Year2005]]of人口pyramid。30歳以下of若年層But非常To多く、若者ofunemploymentBut深刻な問題Whenなっている]]\n[[File:Egyptdemography.png|thumb|400px|[[FoodandAgricultureOrganizationoftheUnitedNations]]ofYear2005データToよるEgypt人口of推移。1960年of3,000万人弱From人口But急増しているofBut読み取れる]]\nEgyptof人口Is8,254万人(2013January現在)so、近年急速To増大し続けている。年齢構成Is0From14歳But33%、15From64歳But62.7%、65歳Morethan4.3%(2010年)so、若年層But非常To多く、pyramid型of人口構成をしている。しかし、若年層IsさらTo増加傾向ItisinToもかかわらず、EconomyIsそれほど拡大していないため、若者of[[unemployment]]But深刻な問題Whenなっており、[[2011Egypt騒乱]]of原因ofひWhenつWhenもなった。年齢of中央値Is24歳Is。人口増加率Is2.033%。\n\n===People===\n{{Seealso|Egypt民族}}\n住民Is[[Muslim|Islam徒]]When[[Christianity徒]]([[CopticChurch]]、[[EasternOrthodoxChurch]]Such)Fromなる[[Arab]]ButほWhenんどを占め、そofほかTo[[Bedouin]](遊牧民)Or[[Berber]]、{{Temporarylink|Nubian|en|Nubianpeople}}、[[Armenian]]、[[Turkey人]]、[[Greek]]SuchButいる。遺伝的To見れば、Egypt住民ofほWhenんどButAncientEgypt人of直系soあり、[[Egypt民族]]Whenof呼称soも呼ばれる所以Is。また、Egypt人of大半Isイスラム勢力ofEgypt征服WhenそれTo続くイスラム系国家of統治of間To言語学的Toアラブ化し、本来ofEgypt語を捨てた人々IsWhenTodo見解Thereis.それだけsoIsなく、長いイスラーム統治時代of人的交流When都市Whenしてof重要性From、多くofArabBut流入・定住していったofも事実Is。1258年ToAbbasidBut崩壊did際、[[Caliph]]周辺を含む多くof人々ButEgypt(おもToCairo近郊)へ移住didWhenいう史実IsMiddleEast地域one帯Toおける交流But盛んsoあったこWhenを示すone例Is。現代ToおいてCairoIs[[Worldcities]]Whenなっており、また歴史的Toも[[Al-AzharUniversity]]IsIslam[[Sunni]]so最高権威を有Todoeducation機関Whenして、MiddleEast・イスラム圏各地From人々But参集Todo。\n\nNote[[AncientEgypt]]civilizationof印象ButあまりTo大きいためか、特To現代EgyptTo対Todo知識を多く持たない人Is現代ofEgypt人をAncientEgypt人そofままToイメージしているこWhenBut多い。すなわち、[[Gizaof大スフィンクス]]Or[[Gizaof大pyramid]]を建て、太陽神Orさまざまな神を信仰([[Egypt神話]])していたAncientEgypt人,現代ofEgypt人Toもそofまま当てIsめているこWhenBut多い。しかし、上述ofWhenおり現代Egypt人of9割IsIslam徒soあり、Arabicを母語WhenTodoArabIs。それもArabworldof中so比較的主導Typical立場To立つ、代表TypicalArabofひWhenつIs。\n\n===language===\n{{Main2|詳細Is{{Temporarylink|Egyptof言語|en|LanguagesofEgypt}}}}\n現在ofEgyptsoIs[[Arabic]]But[[Officialterminology]]Is。これIsイスラムof征服当時Toもたらされたもofso、EgyptofIslamizationWhen同時To普及していった。ただし、OfficialterminologyWhenなっているofIs[[正則Arabic]](Husher)だBut、実際To用いられているofIs[[ArabicEgypt方言]]Is{{Citationneeded|date=year20128月}}<!--実際To「通用」of意味か?行政等of用語Is?-->。\n\nAncientEgyptofOfficialterminologysoあった[[Egypt語]](4世紀以降of近代Egypt語Is[[Coptic]]of名so知られる)Is現在soIs少数ofChristianity徒But典礼言語Whenして使用TodoほかIsEgyptof歴史To興味を持つ知識層But学んsoいるだけsoあり、これを話せる国民Isきわめて少ない。日常言語WhenしてCopticを使用Todo母語話者Is数十名程度Is<ref>[http://www.dailystaregypt.com/article.aspx?ArticleID=106TheDairyStarofEgypt2007年January23日]</ref>。他ToIs地域的To[[Nubianlanguages]]、[[education]]・[[business]]To[[English]]、[[culture_(代表Typicalトピック)|culture]]ToおいてIs[[France語]]Suchも使われている。\n\n===religion===\n{{Main2|詳細Is{{Temporarylink|Egyptofreligion|en|ReligioninEgypt}}}}\n{{barbox\n|title=religion構成(Egypt)\n|titlebar=#ddd\n|width=300px\n|float=right\n|bars=\n{{barpercent|Islam(Sunni)|green|90}}\n{{barpercent|Christianityそof他|blue|10}}\n}}\nreligionIs[[Islam]]But90%(ほWhenんどBut[[Sunni]])soあり、[[Constitution]]soIs[[statereligion]]To指定されている(既述of通り、現在soIsreligionPoliticalpartyof活動ならびToIslamism活動Is禁止されている)<refname=2010cia/>。そof他of宗派soIsEgypt土着of[[Christianity会]]Is[[CopticChurch]]of信徒But9%、そof他ofChristianity徒But1%Whenなる<refname=2010cia/>。\n\n===marriage===\n多くof場合、婚姻時To女性Is改姓しない([[Marriedcouple'ssurname]])But、改姓Todo女性もいる<ref>[https://culturalatlas.sbs.com.au/egyptian-culture/naming-9bdb9e00-ffa6-4f6f-9b29-1616ec7bb952#naming-9bdb9e00-ffa6-4f6f-9b29-1616ec7bb952EgyptianCulture],CulturalAtlas.</ref>。\n\n===education===\n{{Main2|詳細Is{{Temporarylink|Egyptofeducation|en|EducationinEgypt}}}}\n[[File:Bibalex-egypt.JPG|thumb|180px|[[新Alexandria図書館]]]]\nEgyptofeducation制度Is1999年From[[primaryschool]]of課程But1年延び、日本When同じくprimaryschool6年・[[Juniorhighschool]]3years·[[highschool|highschool]]3years·[[University]]4年of6・3・3・4制Whenなっている<ref>[http://www.mofa.go.jp/mofaj/toko/world_school/07africa/infoC70400.html諸外国of学校情報(国of詳細情報)日本国外務省]</ref>。[[義務education]]IsprimaryschoolWhenJuniorhighschoolof9年Is。[[1923]]ofEgyptIndependence時To初等educationIsすsoTo無料WhenBedone,以後段階的To無料education化But進み、[[1950]]ToIs著名な作家soもあった文部大臣[[TahaHussein]]Toよって中等educationBut無料化Bedone,1952ofEgypt革命Toよって高等educationも含めたすべてof公的機関ToよるeducationBut無料化Wasdone.しかし、公立学校of[[Teacher]]But給料of少なさSuchFrom個人of[[Tutor]]を兼任TodoこWhenBut広く行われており、社会問題化している<ref>[http://www.fukuoka-pu.ac.jp/kiyou/kiyo15_1/1501_tanaka.pdf『福岡Prefecture立University人間社会学部紀要』田中哲也]</ref>。高額な授業料を取る代わりToeducationカリキュラムof充実did私立学校も多数存在Todo。Egypt国内ToIs20万以上of小Juniorhighschool、1,000万人以上of学生、13of主要University、67of[[Normalschool]]Thereis.\n\n[[2018]]Than「Egypt日本学校(EJS=Egypt-JapanSchool)」But35校、開校did<ref>[https://www.jica.go.jp/publication/mundi/1904/201904_03_01.html「日本式education」so、子どもたちBut変わる! Egypt]</ref>\n<ref>[https://www.jica.go.jp/press/2018/20181004_01.html「Egypt・日本学校」35校But開校:日本式educationをEgyptへ本格導入]</ref>。これIs2017年To[[JICA]]But技術協力「学びof質向上ofためof環境整備プロジェクト」を開始しdidこWhenTo始まるもofso、[[日本of学校education]]so行われている[[Classmeeting]]Or生徒Toよる清掃SuchをEgyptofeducationTo取り入れようWhenTodoeducation方針Is<ref>[https://www.nippon.com/ja/japan-topics/g00727/EgyptofprimaryschoolTo「日本式education」、協調性Such成果も]</ref>。試験的To導入did際ToIscultureTypical違いFrom反発も見受けられたBut、校内soof暴力But減った、子供But家soも掃除をTodoようToなったSuch、徐々To成果But見えるようToなり本格的To導入されるこWhenToなった<ref>[https://www.huffingtonpost.jp/entry/egypt-japan-school_jp_5cdba4c0e4b0c39d2a13534f「日本式education」IsEgyptofeducation現場をどう変えたか。「掃除Is社会階層But低い人But行うもof」Whenいう反発を乗り越えて]</ref><ref>[https://egyptcesbtokyo.wordpress.com/2018/10/10/「Egypt・日本学校」Toついて/「Egypt・日本学校」(EJS)Toついて]</ref>。\n\nYear2005of推計Toよれば、15歳以上of国民of[[Literacyrate]]Is71.4%(Male:83%,Female:59.4%)Is<refname=2010cia>[https://www.cia.gov/library/publications/the-world-factbook/geos/za.htmlCIAWorldFactbook\"Egypt\"]2010年January31日閲覧。</ref>。2006年ToIsGDPof4.2%ButeducationTo支出された<refname=2010cia/>。\n\nおもな高等education機関WhenしてIs[[Al-AzharUniversity]](988p?)、[[SakujiYoshimura]]、[[YurikoKoike]]らBut出身of[[CairoUniversity]](1908年~)SuchBut存在Todo。\n\n国立図書館Whenして[[新Alexandria図書館]]But存在Todo。\n\n==culture==\n[[File:NecipMahfuz.jpg|thumb|[[Nagive・マフフーズ]]Is[[1988]]To[[NobelPrizeinLiterature]]を受賞did]]\n{{Main2|詳細Is{{Temporarylink|Egyptofculture|en|CultureofEgypt}}}}\n\n*[[AncientEgypt]]of建造物so有名。\n*[[Boardgame]]Or[[Cardgame]]of発祥of地Whenしても知られている。\n*座った時To足を組むWhen、相手To敵意ButあるWhen受けWhenられる。\n\n===食culture===\n{{Main|Egypt料理}}\n\n===literature===\n{{Main|AncientEgypt文学|Arabic文学|Egypt文学}}\nAncientEgyptToおいてIs[[papyrus]]To[[Hieroglyph]]so創作ButなBedone,[[AncientEgypt文学]]ToIs『[[死者of書(AncientEgypt)|死者of書]]』Or『[[シヌヘof物語]]』Suchof作品But現代Toも残っている。7世紀Toアラブ化didあWhenもEgyptIs[[Arabic文学]]ofひWhenつof中心地Whenなった。近代of文学者Whenして[[TahaHussein]]of名But挙げられ、現代of作家Is[[Nagive・マフフーズ]]Is1988To[[NobelPrizeinLiterature]]Hasbeenawarded.\n{{clear}}\n\n===Sports===\n*[[サッカーEgypt代表]]of[[MohamedSalah]]Is[[PremierLeague]]so得点王、[[PFAPlayers'PlayeroftheYearAward]]Acquired,[[UEFAChampionsLeague2018-19|2018-19seasons]]To[[UEFAChampionsLeague]]優勝を果たdid。\n*[[squash(Sports)|squash]]soIs[[21stCentury]]To入ってFromワールドオープン([[:en:WorldSquashChampionships]])so男女WhenもTo多くof優勝者を輩出している。\n\n===worldHeritage===\n{{Main|EgyptofworldHeritage}}\nEgypt国内ToIs[[国際連合education科学culture機関|UNESCO]]of[[worldHeritage]]リストTo登録されたculture遺産But6件、自然遺産But1件登録されている。\n\n<gallerywidths=\"180\"heights=\"120\">\nFile:Egypt.Giza.Sphinx.01.jpg|[[メンフィスWhenそof墓地遺跡|メンフィスWhenそof墓地遺跡-GizaFromダハシュールまsoofpyramid地帯]](1979年、culture遺産)\nFile:SF-E-CAMERON2006-10-EGYPT-KARNAK-0002.JPG|Ancient都市[[Thebes]]Whenそof墓地遺跡(1979年、culture遺産)\nFile:Abousimbelface.jpg|[[AbuSimbel]]From[[Philae]]まsoof[[NubianMonuments]]群(1979年、culture遺産)\nFile:AlAzhar,Egypt.jpg|[[Cairo|Cairo歴史地区]](1979年、culture遺産)\nFile:KatharinenklosterSinaiBW2.jpg|*[[St.Catherine'sMonastery|St.Catherine'sMonasteryArea]](2002年、culture遺産)\nFile:Whaleskeleton2.jpg|[[WadialHitan]](Year2005、自然遺産)\n</gallery>\n\n==References==\n*鈴木恵美編著『現代Egyptを知るためof60章』、[[AkashiShoten]]、year2012ISBN4750336483\n{{Knotstub}}\n\n==footnote==\n{{Footnotehelp}}\n{{Reflist|2}}\n\n==Relateditem==\n*[[Egypt民族]]\n*[[Egypt美術]]\n*[[Egypt神話]]\n*[[Egypt軍]]\n*[[EgyptNavy艦艇one覧]]\n*[[Egypt革命(2011)]]\n* [[Egyptof法]]\n* [[Egypt関係記事ofone覧]]\n\n==External link==\n{{Wiktionary}}\n{{Commons&cat|Egypt|Egypt}}\n{{Wikivoyage|Egypt|Egypt{{en icon}}}}\n{{osm box|r|1473947}}\n{{Wiki portal link|Africa|[[image:Africa_satellite_orthographic.jpg|36px|Wiki portal link Africa]]}}\n;government\n:* [http://www.egypt.gov.eg/arabic/home.aspx Egypt政府サービス・ポータル] {{ar icon}}\n:* [http://www.egypt.gov.eg/english/home.aspx Egypt政府サービス・ポータル] {{en icon}}\n:* [http://www.egypt.or.jp/index.html 在日Egypt大使館 Egypt学・観光局] - 「観光情報」When「基本情報」{{ja icon}}\n:\n;Japanese goverment\n:* [https://www.mofa.go.jp/mofaj/area/egypt/ 日本外務省 HP>各国・地域情勢>Africa>Egypt・アラブRepublic] {{ja icon}}\n:* [https://www.eg.emb-japan.go.jp/itprtop_ja/index.html 在Egypt日本国大使館] {{ja icon}}\n:** [https://www.eg.emb-japan.go.jp/itpr_ja/00_000035.html 在Egypt日本国大使館>Egypt情報]\n:\n; そof他\n:* [https://www.jica.go.jp/index.html Independence行政法ManJICA 国際協力機構]\n:** [https://www.jica.go.jp/egypt/ HP>各国Toおける取り組み>Middle East>Egypt生活情報]\n:** [https://libportal.jica.go.jp/fmi/xsl/library/public/ShortTermStayInformation/MiddleEast/Egypt-Short.pdf HP>世界of現状を知る>世界of様子(国別生活情報)>Middle East>Egypt短期滞在者用国別情報(2011)]\n:* [https://www.jetro.go.jp/world/africa/eg/ Independence行政法ManJETRO 日本貿易振興機構 HP>海外business情報>Information by country / region>Africa>Egypt]\n:* [https://www.jccme.or.jp/08/08-07-08.html 財団法ManJCCME Middle East協力センター HP>Middle East各国情報>Egypt]\n:* [https://wikitravel.org/ja/%E3%82%A8%E3%82%B8%E3%83%97%E3%83%88 Wikitravel Travel Guide- Egypt] {{ja icon}}\n:* {{Wikiatlas|Egypt}} {{en icon}}\n:* {{CIA World Factbook link|eg|Egypt}} {{en icon}}\n:* {{dmoz|Regional/Africa/Egypt}} {{en icon}}\n\n{{Africa}}\n{{Asia}}\n{{OIC}}\n{{OIF}}\n{{NATOTo加盟していない米国of同盟国}}\n{{Authority control}}\n{{Coord|30|2|N|31|13|E|type:city|display=title}}\n\n{{Defaultソート:えしふWhen}}\n[[Category:Egypt|*]]\n[[Category:Republic]]\n[[Category:Militaryadministration]]\n[[Category:Francophony member countries]]"}

20. Read JSON data

Read the JSON file of the Wikipedia article and display the article text about "UK". In problems 21-29, execute on the article text extracted here.

import json 

filename = 'jawiki-country.json'
with open(filename, mode='r') as f:
  for line in f:
    line = json.loads(line)
    if line['title'] == 'England':
      text_uk = line['text']
      break

#Verification
print(text_uk)

output


{{redirect|UK}}
{{redirect|United Kingdom|The princes of the Spring and Autumn period|English(Spring and autumn)}}
{{Otheruses|European country|Local cuisine of Nagasaki and Kumamoto prefectures|England}}
{{Basic information Country
|Abbreviated name=England
・ ・ ・

Reading / writing JSON files / strings with Python

21. Extract rows containing category names

Extract the line that declares the category name in the article.

By default, ^ matches only the beginning of the entire string. This time I want to check all the lines, so I use the MULTILINE option to match ^ to the beginning of each line.

import re

pattern = r'^(.*\[\[Category:.*\]\].*)$'
result = '\n'.join(re.findall(pattern, text_uk, re.MULTILINE))
print(result)

output


[[Category:England|*]]
[[Category:Commonwealth of Nations]]
[[Category:Commonwealth Kingdom|*]]
[[Category:G8 member countries]]
[[Category:European Union member states|Former]]
[[Category:Maritime nation]]
[[Category:Existing sovereign country]]
[[Category:Island country]]
[[Category:A nation / territory established in 1801]]

How to use Python regular expression module re Concatenate and combine strings with Python

22. Extraction of category name

Extract the article category names (by name, not line by line).

In order not to pick up after | of "category name | symbol" included in some category names, use the regular expression in parentheses that matches but does not pick up (?: ...) I am.

pattern = r'^.*\[\[Category:(.*?)(?:\|.*)?\]\].*$'
result = '\n'.join(re.findall(pattern, text_uk, re.MULTILINE))
print(result)

output


England
Commonwealth of Nations
Commonwealth Kingdom
G8 member countries
European Union member states
Maritime nation
Existing sovereign country
Island country
A nation / territory established in 1801

23. Section structure

Display the section name and its level (for example, 1 if "== section name ==") included in the article.

The groups of ('=='), ('section name'), ('==') are extracted, and the level is also displayed based on the length of =.

pattern = r'^(\={2,})\s*(.+?)\s*(\={2,}).*$'
result = '\n'.join(i[1] + ':' + str(len(i[0]) - 1) for i in re.findall(pattern, text_uk, re.MULTILINE))
print(result)

output


Country name:1
history:1
Geography:1
Major cities:2
climate:2
・ ・ ・

24. Extracting file references

Extract all media files referenced from the article.

The MULTILINE option is removed because it appears in places other than the beginning of each line.

pattern = r'\[\[File:(.+?)\|'
result = '\n'.join(re.findall(pattern, text_uk))
print(result)

output


Royal Coat of Arms of the United Kingdom.svg
Descriptio Prime Tabulae Europae.jpg
Lenepveu, Jeanne d'Arc au siège d'Orléans.jpg
London.bankofengland.arp.jpg
Battle of Waterloo 1815.PNG
・ ・ ・

25. Template extraction

Extract the field names and values of the "basic information" template included in the article and store them as a dictionary object.

#Template extraction
pattern = r'^\{\{Basic information.*?$(.*?)^\}\}'
template = re.findall(pattern, text_uk, re.MULTILINE + re.DOTALL)
print(template)

#Store field names and values in dictionary objects
pattern = r'^\|(.+?)\s*=\s*(.+?)(?:(?=\n\|)|(?=\n$))'
result = dict(re.findall(pattern, template[0], re.MULTILINE + re.DOTALL))
for k, v in result.items():
  print(k + ': ' + v)

output


・ ・ ・
Motto: {{lang|fr|[[Dieu et mon droit]]}}<br />([[French]]:[[Dieu et mon droit|God and my rights]])
National anthem: [[Her Majesty the Queen|{{lang|en|God Save the Queen}}]]{{en icon}}<br />''God save the queen''<br />{{center|[[File:United States Navy Band - God Save the Queen.ogg]]}}
Map image: Europe-UK.svg
Position image: United Kingdom (+overseas territories) in the World (+Antarctica claims).svg
Official terminology: [[English]]
・ ・ ・

Dictionary creation in Python dict () and curly braces, dictionary comprehension

26. Removal of highlighted markup

Remove MediaWiki emphasis markup (weak emphasis, emphasis, strong emphasis) from the template value and convert it to text when processing> 25.

After that, we will process the result created in 25.

def remove_markup(text):
  #Removal of highlighted markup
  pattern = r'\'{2,5}'
  text = re.sub(pattern, '', text)
  
  return text

result_rm = {k: remove_markup(v) for k, v in result.items()}
for k, v in result_rm.items():
    print(k + ': ' + v)

output


・ ・ ・
Motto: {{lang|fr|[[Dieu et mon droit]]}}<br />([[French]]:[[Dieu et mon droit|God and my rights]])
National anthem: [[Her Majesty the Queen|{{lang|en|God Save the Queen}}]]{{en icon}}<br />God save the queen<br />{{center|[[File:United States Navy Band - God Save the Queen.ogg]]}}
Map image: Europe-UK.svg
Position image: United Kingdom (+overseas territories) in the World (+Antarctica claims).svg
Official terminology: [[English]]
・ ・ ・

Define / call a function in Python

27. Removal of internal links

In addition to processing> 26, remove MediaWiki's internal link markup from the template value and convert it to text.

def remove_markup(text):
  #Removal of highlighted markup
  pattern = r'\'{2,5}'
  text = re.sub(pattern, '', text)

  #Removal of internal link markup
  pattern = r'\[\[(?:[^|]*?\|)??([^|]*?)\]\]'
  text = re.sub(pattern, r'\1', text)

  return text

result_rm = {k: remove_markup(v) for k, v in result.items()}
for k, v in result_rm.items():
    print(k + ': ' + v)

output


・ ・ ・
Motto: {{lang|fr|Dieu et mon droit}}<br />(French:God and my rights)
National anthem: [[Her Majesty the Queen|{{lang|en|God Save the Queen}}]]{{en icon}}<br />God save the queen<br />{{center|File:United States Navy Band - God Save the Queen.ogg}}
Map image: Europe-UK.svg
Position image: United Kingdom (+overseas territories) in the World (+Antarctica claims).svg
Official terminology:English
・ ・ ・

28. Removal of MediaWiki markup

In addition to processing> 27, remove MediaWiki markup from the template values as much as possible and format the basic country information.

def remove_markup(text):
  #Removal of highlighted markup
  pattern = r'\'{2,5}'
  text = re.sub(pattern, '', text)

  #Removal of internal link markup
  pattern = r'\[\[(?:[^|]*?\|)??([^|]*?)\]\]'
  text = re.sub(pattern, r'\1', text)

  #Removal of external link markup
  pattern = r'https?://[\w!?/\+\-_~=;\.,*&@#$%\(\)\'\[\]]+'
  text = re.sub(pattern, '', text)

  #Removal of html tags
  pattern = r'<.+?>' 
  text = re.sub(pattern, '', text)

  #Template removal
  pattern = r'\{\{(?:lang|Temporary link)(?:[^|]*?\|)*?([^|]*?)\}\}' 
  text = re.sub(pattern, r'\1', text)
  
  return text

result_rm = {k: remove_markup(v) for k, v in result.items()}
for k, v in result_rm.items():
    print(k + ': ' + v)

output


・ ・ ・
Motto:Dieu et mon droit (French:God and my rights)
National anthem: [[Her Majesty the Queen|God Save the Queen]]{{en icon}}God save the queen{{center|File:United States Navy Band - God Save the Queen.ogg}}
Map image: Europe-UK.svg
Position image: United Kingdom (+overseas territories) in the World (+Antarctica claims).svg
Official terminology:English
・ ・ ・

29. Get the URL of the national flag image

Use the contents of the template to get the URL of the national flag image. (Hint: Call imageinfo in the MediaWiki API to convert file references to URLs)

import requests

def get_url(text):
    url_file = text['National flag image'].replace(' ', '_')
    url = 'https://commons.wikimedia.org/w/api.php?action=query&titles=File:' + url_file + '&prop=imageinfo&iiprop=url&format=json'
    data = requests.get(url)
    return re.search(r'"url":"(.+?)"', data.text).group(1)

print(get_url(result))

output


https://upload.wikimedia.org/wikipedia/commons/a/ae/Flag_of_the_United_Kingdom.svg

Replace strings with Python How to use Python, Requests

in conclusion

100 Language Processing Knock is designed so that you can learn not only natural language processing itself, but also basic data processing and general-purpose machine learning. Even those who are studying machine learning in online courses will be able to practice very good output, so please try it.

Recommended Posts

[Language processing 100 knocks 2020] Chapter 3: Regular expressions
100 language processing knocks 2020: Chapter 3 (regular expression)
100 Language Processing Knock 2020 Chapter 3: Regular Expressions
100 natural language processing knocks Chapter 3 Regular expressions (first half)
100 language processing knocks ~ Chapter 1
100 language processing knocks Chapter 2 (10 ~ 19)
100 natural language processing knocks Chapter 3 Regular expressions (second half)
100 Language Processing Knock Regular Expressions Learned in Chapter 3
100 language processing knocks 03 ~ 05
100 language processing knocks (2020): 40
100 language processing knocks (2020): 32
100 language processing knocks (2020): 47
100 language processing knocks (2020): 39
100 natural language processing knocks Chapter 4 Commentary
[Language processing 100 knocks 2020] Chapter 6: Machine learning
100 language processing knocks (2020): 22
100 language processing knocks (2020): 26
100 language processing knocks (2020): 34
100 language processing knocks 2020: Chapter 4 (morphological analysis)
[Language processing 100 knocks 2020] Chapter 5: Dependency analysis
100 language processing knocks (2020): 42
100 language processing knocks (2020): 29
100 language processing knocks (2020): 49
100 language processing knocks 06 ~ 09
100 language processing knocks (2020): 43
100 language processing knocks (2020): 24
[Language processing 100 knocks 2020] Chapter 1: Preparatory movement
100 language processing knocks (2020): 45
100 language processing knocks (2020): 10-19
[Language processing 100 knocks 2020] Chapter 7: Word vector
100 language processing knocks (2020): 30
100 language processing knocks (2020): 00-09
100 language processing knocks (2020): 31
[Language processing 100 knocks 2020] Chapter 8: Neural network
100 language processing knocks (2020): 48
[Language processing 100 knocks 2020] Chapter 2: UNIX commands
100 language processing knocks (2020): 44
100 language processing knocks (2020): 41
100 language processing knocks (2020): 37
[Language processing 100 knocks 2020] Chapter 9: RNN, CNN
100 language processing knocks (2020): 25
100 language processing knocks (2020): 23
100 language processing knocks (2020): 33
100 language processing knocks (2020): 20
100 language processing knocks (2020): 27
[Language processing 100 knocks 2020] Chapter 4: Morphological analysis
100 language processing knocks (2020): 46
100 language processing knocks (2020): 21
100 language processing knocks (2020): 36
I tried to solve the 2020 version of 100 language processing knocks [Chapter 3: Regular expressions 20 to 24]
100 language processing knocks Chapter 4: Morphological analysis 31. Verbs
100 amateur language processing knocks: 41
100 amateur language processing knocks: 56
100 amateur language processing knocks: 24
100 amateur language processing knocks: 50
100 amateur language processing knocks: 59
100 amateur language processing knocks: 70
100 amateur language processing knocks: 62
100 Language Processing Knock 2020 Chapter 1
100 amateur language processing knocks: 92
100 amateur language processing knocks: 06