public final class WikipediaToSequenceFile extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Takes in two arguments:
The input
Path where the input documents live
The output Path where to write the classifier as a
SequenceFile
|
static void |
runJob(String input,
String output,
String catFile,
boolean exactMatchOnly,
boolean all)
Run the job
|
public static void main(String[] args) throws IOException
Path where the input documents livePath where to write the classifier as a
SequenceFileIOExceptionpublic static void runJob(String input, String output, String catFile, boolean exactMatchOnly, boolean all) throws IOException, InterruptedException, ClassNotFoundException
input - the input pathname Stringoutput - the output pathname StringcatFile - the file containing the Wikipedia categoriesexactMatchOnly - if true, then the Wikipedia category must match exactly instead of simply containing the
category stringall - if true select all categoriesIOExceptionInterruptedExceptionClassNotFoundExceptionCopyright © 2008–2013 The Apache Software Foundation. All rights reserved.