edu.umd.cloud9.collection
Class ExtractHTMLFieldCollection
java.lang.Object
org.apache.hadoop.conf.Configured
edu.umd.cloud9.util.PowerTool
edu.umd.cloud9.collection.ExtractHTMLFieldCollection
- All Implemented Interfaces:
- Configurable, Tool
public class ExtractHTMLFieldCollection
- extends PowerTool
Tool for generating 'per-field' collections from HTML documents. The output of this
tool is a new collection, in TREC format (in the form of a SequenceFile)
that only consists of the text contained within the target tag. This is useful for various
document structure and/or field-based retrieval tasks.
- Author:
- fangyue, metzler
RequiredParameters
public static final String[] RequiredParameters
ExtractHTMLFieldCollection
public ExtractHTMLFieldCollection(Configuration conf)
getRequiredParameters
public String[] getRequiredParameters()
- Specified by:
getRequiredParameters in class PowerTool
runTool
public int runTool()
throws Exception
- Specified by:
runTool in class PowerTool
- Throws:
Exception
recursivelyAddInputPaths
public static void recursivelyAddInputPaths(Job job,
String path)
throws IOException
- Throws:
IOException
main
public static void main(String[] args)
throws Exception
- Throws:
Exception