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<java.lang.String>
          extended by edu.washington.cs.knowitall.extractor.mapper.JunkRemover

public class JunkRemover
extends IndependentMapper<java.lang.String>

Author:
schmmd

Constructor Summary
JunkRemover()
          Constructs a new JunkRemover object.
 
Method Summary
 java.lang.String doMap(java.lang.String sent)
          Remove strange characters.
static void main(java.lang.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()
Constructs a new JunkRemover object.

Method Detail

doMap

public java.lang.String doMap(java.lang.String sent)
Remove strange characters.

Specified by:
doMap in class IndependentMapper<java.lang.String>

main

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

Parameters:
args -
Throws:
java.io.IOException