edu.umd.cloud9.collection.wikipedia
Class DemoCountWikipediaPages
java.lang.Object
org.apache.hadoop.conf.Configured
edu.umd.cloud9.collection.wikipedia.DemoCountWikipediaPages
- All Implemented Interfaces:
- Configurable, Tool
public class DemoCountWikipediaPages
- extends Configured
- implements Tool
Tool for counting the number of pages in a particular Wikipedia XML dump file. This program keeps
track of total number of pages, redirect pages, disambiguation pages, empty pages, actual
articles (including stubs), stubs, and non-articles ("File:", "Category:", "Wikipedia:", etc.).
This also provides a skeleton for MapReduce programs to process the collection. Specify input
path to the Wikipedia XML dump file with the -input flag.
- Author:
- Jimmy Lin
DemoCountWikipediaPages
public DemoCountWikipediaPages()
run
public int run(String[] args)
throws Exception
- Specified by:
run in interface Tool
- Throws:
Exception
main
public static void main(String[] args)
throws Exception
- Throws:
Exception