Skip to main content Accessibility help
×
Hostname: page-component-76fb5796d-qxdb6 Total loading time: 0 Render date: 2024-04-25T14:01:26.909Z Has data issue: false hasContentIssue false

Appendix B - Technical Appendix

Published online by Cambridge University Press:  07 November 2017

Richard A. Nielsen
Affiliation:
Massachusetts Institute of Technology
Get access

Summary

ALGORITHM FOR WIKIPEDIA SPIDER

Wikipedia lists can be used to identifyWikipedia articles about clerics. Inspired by Gong (n.d.), I implement an automated search through Wikipedia that simultaneously finds candidate entries and classifies whether each entry is the biography of a cleric. This methodology allows me to identify all of the Wikipedia articles about clerics. For this approach, I train a statistical text classification model to distinguish articles about clerics from other types of articles. I develop a program called a “spider” that moves from link to link within Wikipedia. The program starts by visiting a set of initial Wikipedia entries that I specify (I start with a list of approximately forty clerics from my data set). The program uses a statistical text classifier called a random forest (Breiman 2001) to classify each page it visits as “cleric” or “not.” For each of the Wikipedia entries classified as “cleric,” the program then follows every hyperlink from that entry, visits each of them, and repeats the same classification process on the resulting pages’ links. The program continues until all links in the resulting network have been visited.

The statistical text classifier is key to the success of this procedure so it is worth explaining a few of the details. The classifier is trained on a training corpus that I generated from the Wikipedia pages about clerics in my data set. I went to each of these pages, collected all of the links, and classified 727 outgoing links to other Wikipedia articles by hand as either pointing to an article about a cleric or not. I use the text of these hand-coded pages as the training set. This has some practical limitations – because the training set is derived from the entries of clerics, it is most accurate when the links it is classifying come from a cleric entry. However, if the classifier mistakenly classifies an entry as a cleric biography when in fact it is not, then the next set of articles that the classifier faces comes from a different distribution than the training set, making misclassification more likely.

Type
Chapter
Information
Deadly Clerics
Blocked Ambition and the Paths to Jihad
, pp. 202 - 212
Publisher: Cambridge University Press
Print publication year: 2017

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Technical Appendix
  • Richard A. Nielsen, Massachusetts Institute of Technology
  • Book: Deadly Clerics
  • Online publication: 07 November 2017
  • Chapter DOI: https://doi.org/10.1017/9781108241700.009
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Technical Appendix
  • Richard A. Nielsen, Massachusetts Institute of Technology
  • Book: Deadly Clerics
  • Online publication: 07 November 2017
  • Chapter DOI: https://doi.org/10.1017/9781108241700.009
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Technical Appendix
  • Richard A. Nielsen, Massachusetts Institute of Technology
  • Book: Deadly Clerics
  • Online publication: 07 November 2017
  • Chapter DOI: https://doi.org/10.1017/9781108241700.009
Available formats
×