edu.umd.cloud9.collection.trec
Class TrecDocnoMappingBuilder
java.lang.Object
org.apache.hadoop.conf.Configured
edu.umd.cloud9.collection.trec.TrecDocnoMappingBuilder
- All Implemented Interfaces:
- DocnoMapping.Builder, Configurable, Tool
public class TrecDocnoMappingBuilder
- extends Configured
- implements Tool, DocnoMapping.Builder
Tool that builds the mapping from TREC docids (String identifiers) to docnos
(sequentially-numbered ints). Run without any arguments for help. The guava jar must be included
using -libjar.
- Author:
- Jimmy Lin
TrecDocnoMappingBuilder
public TrecDocnoMappingBuilder()
- Creates an instance of this tool.
build
public int build(Path src,
Path dest,
Configuration conf)
throws IOException
- Specified by:
build in interface DocnoMapping.Builder
- Throws:
IOException
run
public int run(String[] args)
throws IOException
- Runs this tool.
- Specified by:
run in interface Tool
- Throws:
IOException
main
public static void main(String[] args)
throws Exception
- Dispatches command-line arguments to the tool via the
ToolRunner.
- Throws:
Exception