public final class WikipediaDatasetCreatorDriver 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,
Class<? extends org.apache.lucene.analysis.Analyzer> analyzerClass)
Run the job
|
public static void main(String[] args) throws IOException, InterruptedException
Path where the input documents livePath where to write the classifier as a
SequenceFileIOExceptionInterruptedExceptionpublic static void runJob(String input, String output, String catFile, boolean exactMatchOnly, Class<? extends org.apache.lucene.analysis.Analyzer> analyzerClass) 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 stringIOExceptionInterruptedExceptionClassNotFoundExceptionCopyright © 2008–2013 The Apache Software Foundation. All rights reserved.