edu.washington.cs.knowitall.extractor.mapper
Class JunkRemover

java.lang.Object
  extended by edu.washington.cs.knowitall.extractor.mapper.Mapper<T>
      extended by edu.washington.cs.knowitall.extractor.mapper.IndependentMapper<String>
          extended by edu.washington.cs.knowitall.extractor.mapper.JunkRemover

public class JunkRemover
extends IndependentMapper<String>

Author:
schmmd

Constructor Summary
JunkRemover()
           
JunkRemover(String junk)
          Constructs a new JunkRemover object.
 
Method Summary
 String doMap(String sent)
          Remove strange characters.
static void main(String[] args)
          Applies the JunkRemover mapper to each line in standard input and prints the result.
 
Methods inherited from class edu.washington.cs.knowitall.extractor.mapper.IndependentMapper
doMap
 
Methods inherited from class edu.washington.cs.knowitall.extractor.mapper.Mapper
disable, enable, isEnabled, map
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JunkRemover

public JunkRemover(String junk)
Constructs a new JunkRemover object.


JunkRemover

public JunkRemover()
Method Detail

doMap

public String doMap(String sent)
Remove strange characters.

Specified by:
doMap in class IndependentMapper<String>

main

public static void main(String[] args)
                 throws IOException
Applies the JunkRemover mapper to each line in standard input and prints the result.

Parameters:
args -
Throws:
IOException


Copyright © 2010-2012 University of Washington CSE. All Rights Reserved.