edu.umd.hooka
Class CorpusVocabNormalizerAndNumberizer.BitextCompilerMapper

java.lang.Object
  extended by org.apache.hadoop.mapred.MapReduceBase
      extended by edu.umd.hooka.CorpusVocabNormalizerAndNumberizer.BitextCompilerMapper
All Implemented Interfaces:
Closeable, JobConfigurable, Mapper<Text,Text,Text,PhrasePair>
Enclosing class:
CorpusVocabNormalizerAndNumberizer

public static class CorpusVocabNormalizerAndNumberizer.BitextCompilerMapper
extends MapReduceBase
implements Mapper<Text,Text,Text,PhrasePair>


Constructor Summary
CorpusVocabNormalizerAndNumberizer.BitextCompilerMapper()
           
 
Method Summary
 void close()
           
 void configure(JobConf job)
           
 int[] convertStrings(String[] s, Vocab v)
           
 void map(Text key, Text value, OutputCollector<Text,PhrasePair> oc, Reporter reporter)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorpusVocabNormalizerAndNumberizer.BitextCompilerMapper

public CorpusVocabNormalizerAndNumberizer.BitextCompilerMapper()
Method Detail

configure

public void configure(JobConf job)
Specified by:
configure in interface JobConfigurable
Overrides:
configure in class MapReduceBase

convertStrings

public int[] convertStrings(String[] s,
                            Vocab v)

close

public void close()
Specified by:
close in interface Closeable
Overrides:
close in class MapReduceBase

map

public void map(Text key,
                Text value,
                OutputCollector<Text,PhrasePair> oc,
                Reporter reporter)
         throws IOException
Specified by:
map in interface Mapper<Text,Text,Text,PhrasePair>
Throws:
IOException