38
Who Speaks for Islam? Can NLP Solve and Age-old Question? Emad Mohamed

Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Who Speaks for Islam?Can NLP Solve and Age-old

Question?Emad Mohamed

Page 2: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Introduction

● There is no official authority in Islam: there is no equivalent to the Vatican

● There are different schools of thought, mostly of scholarly nature

● The sources of knowledge in Islam are the Qur ān, and ʾthe Prophetic Tradition (and sometimes how the companions of the Prophet behaved)

● There is more disagreement than agreement on the meanings of the Qur ān and the Tradition.ʾ

Page 3: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Introduction: Sunni Legal Schools of Thought

● Hanafi: Rationalist

● Maliki● Shafi’i● Hanbali: Literalist

Page 4: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Introduction: Theological Schools of Thought

● Mu’tazila: Human reasoning is the sole tool for understanding revelation.

● Maturidi:● Asha’ari:● Hanbali/Literalist: Revelation must be

accepted as is. Metaphorical interpretation should be minimized

Page 5: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Introduction: Fatwa

● When a non-scholar has a question, they approach a scholar.

● The scholar issues a fatwa: a non-binding response to the question.

● Fatwas are usually collected and (some are) treated as precedents

● Like everything nowadays, fatwas have gone digital.

Page 6: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Who speaks for Islam? Who explains to Muslims whether human rights are a legitimate concept “in Islam,” whether there is such a thing as “Islamic values” and what they consist of, and whether violence can ever be justified from a religious point of view? Who do Muslims turn to when they look for guidance? To what extent do individual scholars and preachers exert religious authority, and how can it be assessed? What is the role of the Cairo-based Azhar mosque and university, the Shi'i seminaries in Najaf and Qum or the great Islamic colleges in South Asia for Muslims in their respective countries and beyond, including the Muslim diaspora in the west? (Gudrun Krämer and Sabine Schmidtke, 2014: 12)

Page 7: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Methods

● Find the top fatwa websites● Rank them● Find references in these websites● Analyze the references

Page 8: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Find the top fatwa websites (easy)

● Compiled a list of the Fatwa websites● Used Alexa.com and SimilarWeb.com to rank these

websites by the number of visitors● Top Websites

– Islamweb.net : 20 million visitors a day– IslamQA: 8.5 million visitors a day– …..– Dar Al-Iftaa (Al-Azhar, Egypt): 150k visitors a day

Page 9: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

IslamWeb.net● Owned by Qatar

● “We do not belong to any specific school of thought. We respect all, but we choose what we believe is the most correct answer”

● 165 k fatwas covering (almost) everything: prayer, politics, Jihad, living in Canada, sex positions.

● Employs 50 - 100 researchers to reply to questioners’ concerns (personal contact with a former employee).

● Staff identity heavily guarded (sees itself as a “legal person”)

Page 10: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

IslamQA.info

● Saudi-owned (Not sure of official affiliation)● 24 k fatwas with very good coverage.● 15 languages (and a wonderful parallel

corpus)● Founded and run by Muhammad Al-

Munajjid

Page 11: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Find references in these websites (1)

● It is customary for Muslim scholars to support their opinions with evidence: citation from the Qur ān and the ʾtradition

● Since this evidence is often ambiguous, and can be interpreted in multiple ways, scholars quote or re-phrase the prominent scholars, the authorities in the field

● Since what counts as authority is usually subjective, if we know the names, we may be able to infer the school orientation.

Page 12: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Find references in these websites (2)

● Named Entity Recognition to find scholar names

● Match the name against a list of scholars by school.

Page 13: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

NER: Corpus

● No available module capable of the task. I have to annotate and train my own (Not a good idea)

● IslamWeb has solved the problem for me. See next slide.

Page 14: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school
Page 15: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Names are in red BUT,

● Problem 1: RED is more of a visual thing. Looks like the mufti has to pick the color from a html color picker. This results in various degrees of RED. Luckily, RED is designated specifically for people’s names and the answer intro, which can easily be discarded.

● Solution: searched for for all color tags used, picked red ones.

Page 16: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Names are in red BUT,

● Problem 2: Text selection is at times not very accurate. Some non-name material may be selected.

– .. and bill gates claimed that

– .. and bill gates claimed that

– .. and bill gates claimed that

● Solution: some preliminary pre-processing. Not properly handled yet, but the effect is not that bad.

Page 17: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Names are in red BUT,

● Problem 3: Conjoined names are one element: bythomas sonof nathan andwilliam andjacob

● Solution: Regular expressions do a good job here. Several rounds of trial and error.

Page 18: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Now we have a corpus

● 165469 documents most of them with IOB annotation (B-PERSON, I-PERSON, O)

● Randomly picked 5 % for development, 10% for testing and 85% for training.

● Another Test set: a small (actually tiny) corpus, hand-annotated, from IslamQA.info

Page 19: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Training and Testing

● CRFSuite (Naoaki Okazak, 2007, http://www.chokkan.org/software/crfsuite/).

● The word, 4-letter prefix, 4-letter suffix, w-1, w-2, previous word bigram, w+1, following bigram

● More features (and a gazetteer) are still to be implemented.

Page 20: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Results on the Test Set

P R F

O 0.9998 0.9998 0.9998

B-PERSON 0.9951 0.9893 0.9922

I-PERSON 0.9814 0.9903 0.9858

Macro-average 0.994077 0.901096 0.936762

Accuracy 0.9994

Page 21: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Results on IslamQA

● I have only so far annotated 10 documents from IslamQA

● The results are more or less the same as on the gold corpus (sometimes better), which is a good indicator

Page 22: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Now What?

Page 23: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

The Scholar Module

● The aim is to build a citation network for scholars of Islam.

● 25000+ scholars so far● Extracted from various sources (various

Islamic sources, Wikipedia, and through our NER system

Page 24: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Muhammad bin Salih Al-Uthaymin (Various Sources)

● Born: 1929● Died: 2001● LivedIn: Saudi Arabia● School: Hanbali● Field: theology, law, exegesis● Teachers: Ibn Taymiya, Muhammad ibn Abd Al-Wahhab, Al-Si’di● Students: Salim Al-Tawil, Utham Al-Khamis, Muhammad Al-

Munajjid, Salman Al-Ouda● Authored: Book1, Book2, Book3

Page 25: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Book1

● Title: Impermissible Utterances● Author: Ibn Uthaimin● Editor: Fahad bin Nasser● Category: Theology, Principles of Faith,

Law● Year: 2010

Page 26: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school
Page 27: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

The Pipeline in Action

● Extract scholar names from the fatwas (We find e.g. Al-Uthaimin and Ibn Baz)

● Check the names in the scholar network to identify their affiliations and their references

● Check the Book Module to see which book is cited.

Page 28: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Sample Output: Fatwa # IQA14534

Author School Book Book Category

Ibn Hajar Al-’Asqalani

Shafi’i Commentary on Sahih Al-Bukhari

Prophetic Traditions

Ibn Qudama Hanbali Al-Mughni Law

Page 29: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Results: IslamQA CitationsScholar Freq % Cum% Scholar Freq % Cum%Al-Albani 2929 11.1982 11.2 Al-Dhahabi 563 2.1525 65.61

Ibm Uthaymin 2587 9.8907 21.09 Al-Tabarani 436 1.6669 67.28

Ibn Taymiyah 2377 9.0878 30.18 Al-Buhuti 431 1.6478 68.92

Saudi Fatwa 2021 7.7267 37.9 Ibn hanbal 349 1.3343 70.26

Al-Asqalani 1794 6.8588 44.76 Al-Mirdawi 285 1.0896 71.35

Ibn Qudama 1311 5.0122 49.77 Al-Si’ddi 274 1.0476 72.4

Ibn Al-Qayyim 1041 3.98 53.75 Al-Shawakani 238 0.9099 73.31

Ibn Baz 1025 3.9188 57.67 Ibn Abi Shayba 235 0.8985 74.2

Al-Nawawi 798 3.0509 60.72 Al-Tabari 233 0.8908 75.1

Ibn Kathir 715 2.7336 63.46 AlQurtubi 226 0.864 75.96

Page 30: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Results: IslamWeb CitationsScholar Freq % Cum% Scholar Freq % Cum%

Muslim 21392 8.3556 8.4 Ibn Uyhaymin 4582 1.7897 46

Al-Bukhari 14986 5.8535 14.2 Ibn Al-Qayyim 4351 1.6995 48

Ibn Hanbal 14036 5.4824 19.7 Al-Asqalani 3281 1.2815 49

Al-Albani 12391 4.8399 24.5 Al-Hakim 3138 1.2257 50

Al-Tirmithi 11092 4.3325 28.7 Ibn Kathir 3046 1.1898 51

Al-Nawawi 8740 3.4138 32.3 Malik 2951 1.1526 52

Ibn Qudama 8644 3.3763 35.7 Khalil 2797 1.0925 53.5

Abu Dawood 8445 3.2986 39 Al-Nasaii 2794 1.0913 54.6

Ibn Taymiya 8176 3.1935 42 Al-Bayhaqi 2380 0.9296 55.5

Ibn Maja 4995 1.951 44 Al-Qurtubi 2346 0.9163 56.47

Page 31: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Results● In both IslamWeb and IslamQA, the references are

predominantly Hanbali (literalist)● Other schools of Islamic theology are wrong, innovators,

and (sometimes) unbelievers (Collocation Analysis)● Scholars of other schools of Islamic law are cited only for

their collections of tradition, not for their opinions (which are usually wrong)

● Al-Azhar’s teachings are innovations and should be avoided by pious Muslims

Page 32: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Problems

● Partial Matching and Evaluation (most partial matching is useful for the purpose)

● Various forms of the name (Ibn Taymiya, Ahmad ibn Taymiyah, etc.)

Page 33: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Examples

The Canadian Fatwas

Page 34: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Is it permissible to apply for residency in Canada?

(IslamWeb:3497)Only in unavoidable necessities can a Muslim immigrate to the Land of Unbelief. Muslim preachers can go there to spread Islam as long as they are safe from the corruption common there.

Page 35: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Is it permissible to use Google AdSense (IslamWeb:80472)

No. Google AdSense shows ads for music and songs, and it shows improperly dressed women.

Page 36: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Democracy

3 questions on IslamQA and 42 on IslamWeb. The answer is that democracy is against Islam and is a form of polytheism.

Page 37: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Jihad

The idea that Jihad is only for defense is ridiculous. The muftis support their argument with a fatwa by Sheikh Ibn Baz in which he concludes that the rule on Jihad differs according to how powerful Muslims are. When weak, they defend themselves, but when Muslims “have enough power, might, and weaponry that allows them to fight all unbelievers, they (must) declare unrelenting war against all”

Page 38: Who Speaks for Islam? Can NLP Solve and Age-old Question?dic.uqam.ca/upload/files/seminaires/authority_uqam.pdfIslamWeb.net Owned by Qatar “We do not belong to any specific school

Future Work: Network Analysis

● Network Analysis shows that in matters of theology Ibn Taymiya is the most important reference, and in matters of law, Ibn Qudama is the key person. Both are Hanbali.

● Network Analysis is still partial, we need more work done, but the scholar affiliations are almost complete

● We are now better prepared to answer the initial questions